Lines Matching refs:slave_dev
895 struct net_device *slave_dev; in bond_option_active_slave_set() local
900 slave_dev = NULL; in bond_option_active_slave_set()
902 slave_dev = __dev_get_by_name(dev_net(bond->dev), ifname); in bond_option_active_slave_set()
903 if (!slave_dev) in bond_option_active_slave_set()
907 if (slave_dev) { in bond_option_active_slave_set()
908 if (!netif_is_bond_slave(slave_dev)) { in bond_option_active_slave_set()
909 slave_err(bond->dev, slave_dev, "Device is not bonding slave\n"); in bond_option_active_slave_set()
913 if (bond->dev != netdev_master_upper_dev_get(slave_dev)) { in bond_option_active_slave_set()
914 slave_err(bond->dev, slave_dev, "Device is not our slave\n"); in bond_option_active_slave_set()
921 if (!slave_dev) { in bond_option_active_slave_set()
927 struct slave *new_active = bond_slave_get_rtnl(slave_dev); in bond_option_active_slave_set()
1320 slave = bond_slave_get_rtnl(newval->slave_dev); in bond_option_prio_set()
1322 netdev_dbg(newval->slave_dev, "%s called on NULL slave\n", __func__); in bond_option_prio_set()