]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: cls_flower: Remove old entries from rhashtable
authorRoi Dayan <roid@mellanox.com>
Wed, 19 Dec 2018 16:07:56 +0000 (18:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Dec 2018 00:36:55 +0000 (16:36 -0800)
commit907da48b7ac2722429763a97b1fa5bc51abe2613
treed2532ae49ed11038ed6cba17df6548c4b12a44a2
parente7bc063f669c13deaef90cf7b24725644b7d2750
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: 5c63702d116d ("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>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_flower.c