]> 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)
commita35cf35058cbe6a0d72b95d7ea90e4eea11bcc4a
treeebcbb501ccaa2c2aa9da54a9894c12ec5b90e684
parent76096d27240768be685a7a7d331364f64eac5b80
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