]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: stmmac: reset residual action in L3L4 filters on delete
authorNazim Amirul <muhammad.nazim.amirul.nazle.asmade@altera.com>
Tue, 14 Jul 2026 02:37:16 +0000 (19:37 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 23 Jul 2026 10:32:15 +0000 (12:32 +0200)
commita448f821289934b961dd9d8d0beb006cc8937ba2
tree678a2776f46a88dda93a0d44ef5fb1b4b9620cb8
parent5536d7c843637e9430279b94935fcf7df98babb3
net: stmmac: reset residual action in L3L4 filters on delete

When deleting an L3/L4 flower filter entry, the action field is not
reset. If a filter was previously configured with a drop action, that
action may persist and affect subsequent filter configurations
unintentionally.

Clear the action field when the filter entry is deleted.

Fixes: 425eabddaf0f ("net: stmmac: Implement L3/L4 Filters using TC Flower")
Signed-off-by: Rohan G Thomas <rohan.g.thomas@altera.com>
Signed-off-by: Nazim Amirul <muhammad.nazim.amirul.nazle.asmade@altera.com>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/20260714023716.29865-5-muhammad.nazim.amirul.nazle.asmade@altera.com
Reviewed-by: Jakub Raczynski <j.raczynski@samsung.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c