]> git.baikalelectronics.ru Git - kernel.git/commit
cls_flower: Fix comparing of old filter mask with new filter
authorPaul Blakey <paulb@mellanox.com>
Sun, 3 Jun 2018 07:06:14 +0000 (10:06 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jun 2018 21:03:37 +0000 (17:03 -0400)
commit61dd0aa87df30afbb792468bb3bcc8e14c471d25
tree31d6061da1dd7b2b27eb10a479e7bdc5a7ee7067
parent3533a14d6c45bc8a8734758cc7dbe9f9bcf01fc7
cls_flower: Fix comparing of old filter mask with new filter

We incorrectly compare the mask and the result is that we can't modify
an already existing rule.

Fix that by comparing correctly.

Fixes: 07fcd89c44b1 ("cls_flower: Support multiple masks per priority")
Reported-by: Vlad Buslov <vladbu@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_flower.c