diff options
author | David Ahern <dsa@cumulusnetworks.com> | 2017-04-16 12:48:24 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-17 15:35:38 -0400 |
commit | c21ef3e343ae916ad3cfd4dc6ef6791c1f80a010 (patch) | |
tree | babe94fe139a27e7c998ef76ca6e0791d835a78c /net/bridge | |
parent | af3b5158b89d3bab9be881113417558c71b71ca4 (diff) |
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>
Diffstat (limited to 'net/bridge')
-rw-r--r-- | net/bridge/br_mdb.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/bridge/br_mdb.c b/net/bridge/br_mdb.c index 993626a7fc3b..b0845480a3ae 100644 --- a/net/bridge/br_mdb.c +++ b/net/bridge/br_mdb.c | |||
@@ -569,7 +569,8 @@ static int __br_mdb_add(struct net *net, struct net_bridge *br, | |||
569 | return ret; | 569 | return ret; |
570 | } | 570 | } |
571 | 571 | ||
572 | static int br_mdb_add(struct sk_buff *skb, struct nlmsghdr *nlh) | 572 | static int br_mdb_add(struct sk_buff *skb, struct nlmsghdr *nlh, |
573 | struct netlink_ext_ack *extack) | ||
573 | { | 574 | { |
574 | struct net *net = sock_net(skb->sk); | 575 | struct net *net = sock_net(skb->sk); |
575 | struct net_bridge_vlan_group *vg; | 576 | struct net_bridge_vlan_group *vg; |
@@ -663,7 +664,8 @@ unlock: | |||
663 | return err; | 664 | return err; |
664 | } | 665 | } |
665 | 666 | ||
666 | static int br_mdb_del(struct sk_buff *skb, struct nlmsghdr *nlh) | 667 | static int br_mdb_del(struct sk_buff *skb, struct nlmsghdr *nlh, |
668 | struct netlink_ext_ack *extack) | ||
667 | { | 669 | { |
668 | struct net *net = sock_net(skb->sk); | 670 | struct net *net = sock_net(skb->sk); |
669 | struct net_bridge_vlan_group *vg; | 671 | struct net_bridge_vlan_group *vg; |