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)
commit35cc3cefc4de90001c9137e2d01dd9d06b11acfb
treeb7937759d6c916ac896be9f1ed97d65be6812c03
parentd4b60e94e9bbe8c3b57e9cd126bed4a411ac5f6e
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