]> git.kernelconcepts.de Git - karo-tx-linux.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)
commita3308d8fd1f58c67aaae52d9468791c2082ab2c7
treeebcbb501ccaa2c2aa9da54a9894c12ec5b90e684
parenta50a05f497a2a6e772900ffe93246fb7243d86d8
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