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)
commitc77bbc648faf4a6647c4f4446ca82e231475ffb5
treeadc2ee2c7d07e148eec330aa9bf501c8bd2c45b1
parent51446780fc33e45cb790c05a7fa2c5bf7e8bc53b
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