Skip to content

Commit 7b49765

Browse files
committed
HSD #16027944589: net: stmmac: Reset residual action set in L3L4 filters
When deleting an L3/L4 flower filter entry, the action field is not being reset. So if a filter was previously configured with a drop action, that action may persist and affect subsequent configurations unintentionally. This commit ensures action field is cleared when the filter is deleted. Fixes: 425eabd ("net: stmmac: Implement L3/L4 Filters using TC Flower") Signed-off-by: Rohan G Thomas <[email protected]>
1 parent 3d3ddca commit 7b49765

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,7 @@ static int tc_del_flow(struct stmmac_priv *priv,
701701
entry->in_use = false;
702702
entry->cookie = 0;
703703
entry->is_l4 = false;
704+
entry->action = 0;
704705
return ret;
705706
}
706707

0 commit comments

Comments
 (0)