Lines Matching defs:primary

109 static char *primary;
151 module_param(primary, charp, 0);
152 MODULE_PARM_DESC(primary, "Primary network device to use");
154 MODULE_PARM_DESC(primary_reselect, "Reselect primary slave "
157 "1 for only if speed of primary is "
879 * old active slaves (if any). Modes that are not using primary keep all
880 * slaves up date at all times; only the modes that use primary need to call
1033 * bond_choose_primary_or_current - select the primary or high priority slave
1036 * - Check if there is a primary link. If the primary link was set and is up,
1039 * - If primary link is not set or down, find the highest priority link.
1040 * If the highest priority link is not current slave, set it as primary
2106 if (bond_uses_primary(bond) && bond->params.primary[0]) {
2107 /* if there is a primary slave, remember it */
2108 if (strcmp(bond->params.primary, new_slave->dev->name) == 0) {
2195 /* If the mode uses primary, then the following is handled by
2477 /* If the mode uses primary, then this case was handled above by
2707 struct slave *slave, *primary, *active;
2740 primary = rtnl_dereference(bond->primary_slave);
2756 if (!active || slave == primary || slave->prio > active->prio)
3872 struct slave *slave = bond_slave_get_rtnl(slave_dev), *primary;
3887 primary = rtnl_dereference(bond->primary_slave);
3944 /* we don't care if we don't have primary set */
3946 !bond->params.primary[0])
3949 if (slave == primary) {
3950 /* slave's name changed - he's no longer primary */
3952 } else if (!strcmp(slave_dev->name, bond->params.primary)) {
3953 /* we have a new primary slave */
3955 } else { /* we didn't change primary - exit */
3960 primary ? slave_dev->name : "none");
6234 if (primary && !bond_mode_uses_primary(bond_mode)) {
6235 /* currently, using a primary only makes sense
6238 pr_warn("Warning: %s primary device specified but has no effect in %s mode\n",
6239 primary, bond_mode_name(bond_mode));
6240 primary = NULL;
6243 if (primary && primary_reselect) {
6320 params->primary[0] = 0;
6344 if (primary)
6345 strscpy_pad(params->primary, primary, sizeof(params->primary));