net: rtnetlink: plumb extended ack to doit function
Add netlink_ext_ack arg to rtnl_doit_func. Pass extack arg to nlmsg_parse for doit functions that call it directly. This is the first step to using extended error reporting in rtnetlink. >From here individual subsystems can be updated to set netlink_ext_ack as needed. Signed-off-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
af3b5158b8
commit
c21ef3e343
+2
-2
@@ -1282,11 +1282,11 @@ static int vrf_fib_rule(const struct net_device *dev, __u8 family, bool add_it)
|
||||
/* fib_nl_{new,del}rule handling looks for net from skb->sk */
|
||||
skb->sk = dev_net(dev)->rtnl;
|
||||
if (add_it) {
|
||||
err = fib_nl_newrule(skb, nlh);
|
||||
err = fib_nl_newrule(skb, nlh, NULL);
|
||||
if (err == -EEXIST)
|
||||
err = 0;
|
||||
} else {
|
||||
err = fib_nl_delrule(skb, nlh);
|
||||
err = fib_nl_delrule(skb, nlh, NULL);
|
||||
if (err == -ENOENT)
|
||||
err = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user