]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: cls_flower: Disallow duplicate internal elements
authorPaul Blakey <paulb@mellanox.com>
Mon, 16 Jan 2017 08:45:13 +0000 (10:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jan 2017 20:05:44 +0000 (15:05 -0500)
commite1ada93194e7bc817a0a72f02934743e8e7a391d
treeebcbb501ccaa2c2aa9da54a9894c12ec5b90e684
parent901a79ffb8d4afd01d8df922de6a90d22f38bef3
net/sched: cls_flower: Disallow duplicate internal elements

Flower currently allows having the same filter twice with the same
priority. Actions (and statistics update) will always execute on the
first inserted rule leaving the second rule unused.
This patch disallows that.

Signed-off-by: Paul Blakey <paulb@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_flower.c