Lines Matching defs:primary
388 .name = "primary",
399 .desc = "Reselect primary slave once it comes up",
1329 "prio updated, but will not affect failover re-selection as primary slave have been set\n");
1339 char *p, *primary = newval->string;
1345 p = strchr(primary, '\n');
1348 /* check to see if we are clearing primary */
1349 if (!strlen(primary)) {
1350 netdev_dbg(bond->dev, "Setting primary slave to None\n");
1352 memset(bond->params.primary, 0, sizeof(bond->params.primary));
1358 if (strncmp(slave->dev->name, primary, IFNAMSIZ) == 0) {
1359 slave_dbg(bond->dev, slave->dev, "Setting as primary slave\n");
1361 strcpy(bond->params.primary, slave->dev->name);
1369 netdev_dbg(bond->dev, "Setting primary slave to None\n");
1373 strscpy_pad(bond->params.primary, primary, IFNAMSIZ);
1375 netdev_dbg(bond->dev, "Recording %s as primary, but it has not been enslaved yet\n",
1376 primary);