* [PATCH net] net/sched: cls_flower: Remove old entries from rhashtable
@ 2018-12-19 16:07 Roi Dayan
2018-12-19 20:01 ` Or Gerlitz
2018-12-20 0:37 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Roi Dayan @ 2018-12-19 16:07 UTC (permalink / raw)
To: netdev
Cc: davidm, Jiri Pirko, Or Gerlitz, Paul Blakey, Vlad Buslov, Roi Dayan
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: 35cc3cefc4de ("net/sched: cls_flower: Reject duplicated rules also under skip_sw")
Signed-off-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Vlad Buslov <vladbu@mellanox.com>
---
net/sched/cls_flower.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/net/sched/cls_flower.c b/net/sched/cls_flower.c
index 71312d7bd8f4..208d940464d7 100644
--- a/net/sched/cls_flower.c
+++ b/net/sched/cls_flower.c
@@ -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);
}
--
2.7.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net] net/sched: cls_flower: Remove old entries from rhashtable
2018-12-19 16:07 [PATCH net] net/sched: cls_flower: Remove old entries from rhashtable Roi Dayan
@ 2018-12-19 20:01 ` Or Gerlitz
2018-12-20 0:37 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Or Gerlitz @ 2018-12-19 20:01 UTC (permalink / raw)
To: Roi Dayan
Cc: Linux Netdev List, davidm, Jiri Pirko, Or Gerlitz, Paul Blakey,
Vlad Buslov
On Wed, Dec 19, 2018 at 9:41 PM Roi Dayan <roid@mellanox.com> wrote:
>
> 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: 35cc3cefc4de ("net/sched: cls_flower: Reject duplicated rules also under skip_sw")
> Signed-off-by: Roi Dayan <roid@mellanox.com>
> Reviewed-by: Vlad Buslov <vladbu@mellanox.com>
Acked-by: Or Gerlitz <ogerlitz@mellanox.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net] net/sched: cls_flower: Remove old entries from rhashtable
2018-12-19 16:07 [PATCH net] net/sched: cls_flower: Remove old entries from rhashtable Roi Dayan
2018-12-19 20:01 ` Or Gerlitz
@ 2018-12-20 0:37 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2018-12-20 0:37 UTC (permalink / raw)
To: roid; +Cc: netdev, davidm, jiri, ogerlitz, paulb, vladbu
From: Roi Dayan <roid@mellanox.com>
Date: Wed, 19 Dec 2018 18:07:56 +0200
> 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: 35cc3cefc4de ("net/sched: cls_flower: Reject duplicated rules also under skip_sw")
> Signed-off-by: Roi Dayan <roid@mellanox.com>
> Reviewed-by: Vlad Buslov <vladbu@mellanox.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-12-20 0:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-19 16:07 [PATCH net] net/sched: cls_flower: Remove old entries from rhashtable Roi Dayan
2018-12-19 20:01 ` Or Gerlitz
2018-12-20 0:37 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.