]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
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)
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

index 1f8c9f47306b971c525b0e20f84dedbc72b9b299..14cabe76e53ec86e719cb571d820937f31beb44b 100644 (file)
@@ -661,6 +661,7 @@ static int tc_del_flow(struct stmmac_priv *priv,
        entry->in_use = false;
        entry->cookie = 0;
        entry->is_l4 = false;
+       entry->action = 0;
        return ret;
 }