Lines Matching defs:primary
101 static char *primary;
143 module_param(primary, charp, 0);
144 MODULE_PARM_DESC(primary, "Primary network device to use");
146 MODULE_PARM_DESC(primary_reselect, "Reselect primary slave "
149 "1 for only if speed of primary is "
838 * old active slaves (if any). Modes that are not using primary keep all
839 * slaves up date at all times; only the modes that use primary need to call
1979 if (bond_uses_primary(bond) && bond->params.primary[0]) {
1980 /* if there is a primary slave, remember it */
1981 if (strcmp(bond->params.primary, new_slave->dev->name) == 0) {
2066 /* If the mode uses primary, then the following is handled by
2304 /* If the mode uses primary, then this case was handled above by
2531 struct slave *slave, *primary;
2560 primary = rtnl_dereference(bond->primary_slave);
2575 if (!bond->curr_active_slave || slave == primary)
3457 struct slave *slave = bond_slave_get_rtnl(slave_dev), *primary;
3472 primary = rtnl_dereference(bond->primary_slave);
3529 /* we don't care if we don't have primary set */
3531 !bond->params.primary[0])
3534 if (slave == primary) {
3535 /* slave's name changed - he's no longer primary */
3537 } else if (!strcmp(slave_dev->name, bond->params.primary)) {
3538 /* we have a new primary slave */
3540 } else { /* we didn't change primary - exit */
3545 primary ? slave_dev->name : "none");
5251 if (primary && !bond_mode_uses_primary(bond_mode)) {
5252 /* currently, using a primary only makes sense
5255 pr_warn("Warning: %s primary device specified but has no effect in %s mode\n",
5256 primary, bond_mode_name(bond_mode));
5257 primary = NULL;
5260 if (primary && primary_reselect) {
5335 params->primary[0] = 0;
5359 if (primary) {
5360 strncpy(params->primary, primary, IFNAMSIZ);
5361 params->primary[IFNAMSIZ - 1] = 0;