Lines Matching refs:slave_dev
844 struct net_device *slave_dev; in bond_option_active_slave_set() local
849 slave_dev = NULL; in bond_option_active_slave_set()
851 slave_dev = __dev_get_by_name(dev_net(bond->dev), ifname); in bond_option_active_slave_set()
852 if (!slave_dev) in bond_option_active_slave_set()
856 if (slave_dev) { in bond_option_active_slave_set()
857 if (!netif_is_bond_slave(slave_dev)) { in bond_option_active_slave_set()
858 slave_err(bond->dev, slave_dev, "Device is not bonding slave\n"); in bond_option_active_slave_set()
862 if (bond->dev != netdev_master_upper_dev_get(slave_dev)) { in bond_option_active_slave_set()
863 slave_err(bond->dev, slave_dev, "Device is not our slave\n"); in bond_option_active_slave_set()
870 if (!slave_dev) { in bond_option_active_slave_set()
876 struct slave *new_active = bond_slave_get_rtnl(slave_dev); in bond_option_active_slave_set()