]> git.baikalelectronics.ru Git - kernel.git/commit
fib_rules: match rules based on suppress_* properties too
authorJason A. Donenfeld <Jason@zx2c4.com>
Mon, 25 Jun 2018 23:39:32 +0000 (01:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Jun 2018 01:33:05 +0000 (10:33 +0900)
commit3ec50ed9a0b00b9db96c67c99ead9e3db5563cf4
treea932270839a4134a2788b654500cdb3fe533c0cf
parent9ebb757c4768a300094751257b91f4c578f0e942
fib_rules: match rules based on suppress_* properties too

Two rules with different values of suppress_prefix or suppress_ifgroup
are not the same. This fixes an -EEXIST when running:

   $ ip -4 rule add table main suppress_prefixlength 0

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Fixes: c53378ff0354 ("fib_rules: move common handling of newrule delrule msgs into fib_nl2rule")
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/fib_rules.c