fib_rules: move common handling of newrule delrule msgs into fib_nl2rule
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Sat, 21 Apr 2018 16:41:30 +0000 (09:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Apr 2018 14:21:24 +0000 (10:21 -0400)
commitf9d4b0c1e9695e3de7af3768205bacc27312320c
tree44b185d34dc936e052ff312b14f101979b696c3e
parenta56e6bcd34b55182159d16fcf6d6105578dfa192
fib_rules: move common handling of newrule delrule msgs into fib_nl2rule

This reduces code duplication in the fib rule add and del paths.
Get rid of validate_rulemsg. This became obvious when adding duplicate
extack support in fib newrule/delrule error paths.

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/fib_rules.c