net: Add extack to upper device linking
Add extack arg to netdev_upper_dev_link and netdev_master_upper_dev_link Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
33eaf2a6eb
commit
42ab19ee90
@@ -1217,14 +1217,15 @@ static enum netdev_lag_tx_type bond_lag_tx_type(struct bonding *bond)
|
||||
}
|
||||
}
|
||||
|
||||
static int bond_master_upper_dev_link(struct bonding *bond, struct slave *slave)
|
||||
static int bond_master_upper_dev_link(struct bonding *bond, struct slave *slave,
|
||||
struct netlink_ext_ack *extack)
|
||||
{
|
||||
struct netdev_lag_upper_info lag_upper_info;
|
||||
int err;
|
||||
|
||||
lag_upper_info.tx_type = bond_lag_tx_type(bond);
|
||||
err = netdev_master_upper_dev_link(slave->dev, bond->dev, slave,
|
||||
&lag_upper_info);
|
||||
&lag_upper_info, extack);
|
||||
if (err)
|
||||
return err;
|
||||
rtmsg_ifinfo(RTM_NEWLINK, slave->dev, IFF_SLAVE, GFP_KERNEL);
|
||||
@@ -1710,7 +1711,7 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev,
|
||||
goto err_detach;
|
||||
}
|
||||
|
||||
res = bond_master_upper_dev_link(bond, new_slave);
|
||||
res = bond_master_upper_dev_link(bond, new_slave, extack);
|
||||
if (res) {
|
||||
netdev_dbg(bond_dev, "Error %d calling bond_master_upper_dev_link\n", res);
|
||||
goto err_unregister;
|
||||
|
Reference in New Issue
Block a user