mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
net/sched: cls_flower: Remove old entries from rhashtable
When replacing a rule we add the new rule to the rhashtable
but only remove the old if not in skip_sw.
This commit fix this and remove the old rule anyway.
Fixes: 35cc3cefc4 ("net/sched: cls_flower: Reject duplicated rules also under skip_sw")
Signed-off-by: Roi Dayan <[email protected]>
Reviewed-by: Vlad Buslov <[email protected]>
Acked-by: Or Gerlitz <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
c6ec179a00
commit
599d2570b2
1 changed files with 3 additions and 4 deletions
|
|
@ -1258,10 +1258,9 @@ static int fl_change(struct net *net, struct sk_buff *in_skb,
|
|||
fnew->flags |= TCA_CLS_FLAGS_NOT_IN_HW;
|
||||
|
||||
if (fold) {
|
||||
if (!tc_skip_sw(fold->flags))
|
||||
rhashtable_remove_fast(&fold->mask->ht,
|
||||
&fold->ht_node,
|
||||
fold->mask->filter_ht_params);
|
||||
rhashtable_remove_fast(&fold->mask->ht,
|
||||
&fold->ht_node,
|
||||
fold->mask->filter_ht_params);
|
||||
if (!tc_skip_hw(fold->flags))
|
||||
fl_hw_destroy_filter(tp, fold, NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue