diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2017-06-25 23:55:59 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-26 23:13:21 -0400 |
commit | 7a3f4a185169b195c33f1c54f33a44eba2d6aa96 (patch) | |
tree | 71b125722dcdfba64d75c96b07d65a7d2a4ed194 /drivers/net/ipvlan/ipvtap.c | |
parent | dacdbb4dfc1a1a1378df8ebc914d4fe82259ed46 (diff) |
net: add netlink_ext_ack argument to rtnl_link_ops.newlink
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 'drivers/net/ipvlan/ipvtap.c')
-rw-r--r-- | drivers/net/ipvlan/ipvtap.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/ipvlan/ipvtap.c b/drivers/net/ipvlan/ipvtap.c index 2b713b63b62c..22f133ea8d7b 100644 --- a/drivers/net/ipvlan/ipvtap.c +++ b/drivers/net/ipvlan/ipvtap.c @@ -73,10 +73,9 @@ static void ipvtap_update_features(struct tap_dev *tap, netdev_update_features(vlan->dev); } -static int ipvtap_newlink(struct net *src_net, - struct net_device *dev, - struct nlattr *tb[], - struct nlattr *data[]) +static int ipvtap_newlink(struct net *src_net, struct net_device *dev, + struct nlattr *tb[], struct nlattr *data[], + struct netlink_ext_ack *extack) { struct ipvtap_dev *vlantap = netdev_priv(dev); int err; @@ -98,7 +97,7 @@ static int ipvtap_newlink(struct net *src_net, /* Don't put anything that may fail after macvlan_common_newlink * because we can't undo what it does. */ - err = ipvlan_link_new(src_net, dev, tb, data); + err = ipvlan_link_new(src_net, dev, tb, data, extack); if (err) { netdev_rx_handler_unregister(dev); return err; |