Lines Matching refs:primary
109 static char *primary; variable
151 module_param(primary, charp, 0);
152 MODULE_PARM_DESC(primary, "Primary network device to use");
2145 if (bond_uses_primary(bond) && bond->params.primary[0]) { in bond_enslave()
2147 if (strcmp(bond->params.primary, new_slave->dev->name) == 0) { in bond_enslave()
2746 struct slave *slave, *primary, *active; in bond_miimon_commit() local
2779 primary = rtnl_dereference(bond->primary_slave); in bond_miimon_commit()
2795 if (!active || slave == primary || slave->prio > active->prio) in bond_miimon_commit()
3911 struct slave *slave = bond_slave_get_rtnl(slave_dev), *primary; in bond_slave_netdev_event() local
3926 primary = rtnl_dereference(bond->primary_slave); in bond_slave_netdev_event()
3985 !bond->params.primary[0]) in bond_slave_netdev_event()
3988 if (slave == primary) { in bond_slave_netdev_event()
3991 } else if (!strcmp(slave_dev->name, bond->params.primary)) { in bond_slave_netdev_event()
3999 primary ? slave_dev->name : "none"); in bond_slave_netdev_event()
6277 if (primary && !bond_mode_uses_primary(bond_mode)) { in bond_check_params()
6282 primary, bond_mode_name(bond_mode)); in bond_check_params()
6283 primary = NULL; in bond_check_params()
6286 if (primary && primary_reselect) { in bond_check_params()
6363 params->primary[0] = 0; in bond_check_params()
6387 if (primary) in bond_check_params()
6388 strscpy_pad(params->primary, primary, sizeof(params->primary)); in bond_check_params()