diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2017-06-25 23:56:00 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-26 23:13:22 -0400 |
commit | ad744b223c521b1e01752a826774545c3e3acd8e (patch) | |
tree | f2682748db1aba4e605b90943600d9105d314792 /net/bridge | |
parent | 7a3f4a185169b195c33f1c54f33a44eba2d6aa96 (diff) | |
download | lwn-ad744b223c521b1e01752a826774545c3e3acd8e.tar.gz lwn-ad744b223c521b1e01752a826774545c3e3acd8e.zip |
net: add netlink_ext_ack argument to rtnl_link_ops.changelink
Add support for extended error reporting.
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Acked-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
-rw-r--r-- | net/bridge/br_netlink.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c index 39c1fa104c8d..37e4ec2953b2 100644 --- a/net/bridge/br_netlink.c +++ b/net/bridge/br_netlink.c @@ -960,7 +960,8 @@ static const struct nla_policy br_policy[IFLA_BR_MAX + 1] = { }; static int br_changelink(struct net_device *brdev, struct nlattr *tb[], - struct nlattr *data[]) + struct nlattr *data[], + struct netlink_ext_ack *extack) { struct net_bridge *br = netdev_priv(brdev); int err; @@ -1229,7 +1230,7 @@ static int br_dev_newlink(struct net *src_net, struct net_device *dev, if (err) return err; - err = br_changelink(dev, tb, data); + err = br_changelink(dev, tb, data, extack); if (err) unregister_netdevice(dev); return err; |