]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: cls_flower: Reject duplicated rules also under skip_sw
authorOr Gerlitz <ogerlitz@mellanox.com>
Sun, 9 Dec 2018 16:10:24 +0000 (18:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 9 Dec 2018 19:55:08 +0000 (11:55 -0800)
commit5c63702d116d23aee5142b7eabc3107bf106c2b1
treeb7937759d6c916ac896be9f1ed97d65be6812c03
parentff854edbc3b7c98670bb4a7239094dee7d29b04d
net/sched: cls_flower: Reject duplicated rules also under skip_sw

Currently, duplicated rules are rejected only for skip_hw or "none",
hence allowing users to push duplicates into HW for no reason.

Use the flower tables to protect for that.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reported-by: Chris Mi <chrism@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_flower.c