]> 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)
commit5ff9d5eef96aad190071eb6abb4ea8c9377bcc33
treeadc2ee2c7d07e148eec330aa9bf501c8bd2c45b1
parentdee212409185286e5b75edef97feb92ece3de3bd
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