]> git.baikalelectronics.ru Git - kernel.git/commit
net: rules: Move l3mdev attribute validation to a helper
authorDavid Ahern <dsahern@gmail.com>
Wed, 25 Apr 2018 01:36:07 +0000 (18:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Apr 2018 17:26:12 +0000 (13:26 -0400)
commit3f02f5b045a4618048b4b8a7678d16fcd65e95d4
treeadc2ee2c7d07e148eec330aa9bf501c8bd2c45b1
parent3a00b20d015e54fbc20f15f99bd1d093a346f999
net: rules: Move l3mdev attribute validation to a helper

Move the check on FRA_L3MDEV attribute to helper to improve the
readability of fib_nl2rule. Update the extack messages to be
clear when the configuration option is disabled versus an invalid
value has been passed.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/fib_rules.c