• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/bonding/

Lines Matching refs:slave

155 			       struct net_device *slave)
160 /* first, create a link from the slave back to the master */
161 ret = sysfs_create_link(&(slave->dev.kobj), &(master->dev.kobj),
165 /* next, create a link from the master to the slave */
166 sprintf(linkname, "slave_%s", slave->name);
167 ret = sysfs_create_link(&(master->dev.kobj), &(slave->dev.kobj),
174 struct net_device *slave)
178 sysfs_remove_link(&(slave->dev.kobj), "master");
179 sprintf(linkname, "slave_%s", slave->name);
190 struct slave *slave;
195 bond_for_each_slave(bond, slave, i) {
203 res += sprintf(buf + res, "%s ", slave->dev->name);
229 pr_warning("%s: doing slave updates when interface is down.\n",
252 pr_info("%s: Adding slave %s.\n", bond->dev->name, dev->name);
257 pr_info("%s: Removing slave %s.\n", bond->dev->name, dev->name);
1040 * Show and set the primary slave. The store function is much
1064 struct slave *slave;
1073 pr_info("%s: Unable to set primary slave; %s is in mode %d\n",
1076 bond_for_each_slave(bond, slave, i) {
1078 (slave->dev->name, buf,
1079 strlen(slave->dev->name)) == 0) {
1080 pr_info("%s: Setting %s as primary slave.\n",
1081 bond->dev->name, slave->dev->name);
1082 bond->primary_slave = slave;
1083 strcpy(bond->params.primary, slave->dev->name);
1089 /* if we got here, then we didn't match the name of any slave */
1092 pr_info("%s: Setting primary slave to None.\n",
1097 pr_info("%s: Unable to set %.*s as primary slave as it is not a slave.\n",
1210 struct slave *curr;
1228 struct slave *slave;
1229 struct slave *old_active = NULL;
1230 struct slave *new_active = NULL;
1239 pr_info("%s: Unable to change active slave; %s is in mode %d\n",
1242 bond_for_each_slave(bond, slave, i) {
1244 (slave->dev->name, buf,
1245 strlen(slave->dev->name)) == 0) {
1247 new_active = slave;
1250 pr_info("%s: %s is already the current active slave.\n",
1252 slave->dev->name);
1260 pr_info("%s: Setting %s as active slave.\n",
1262 slave->dev->name);
1266 pr_info("%s: Could not set %s as active slave; either %s is down or the link is down.\n",
1268 slave->dev->name,
1269 slave->dev->name);
1276 /* if we got here, then we didn't match the name of any slave */
1279 pr_info("%s: Setting active slave to None.\n",
1284 pr_info("%s: Unable to set %.*s as active slave as it is not a slave.\n",
1307 struct slave *curr;
1434 struct slave *slave;
1442 bond_for_each_slave(bond, slave, i) {
1451 slave->dev->name, slave->queue_id);
1468 struct slave *slave, *update_slave;
1504 /* Search for thes slave and check for duplicate qids */
1506 bond_for_each_slave(bond, slave, i) {
1507 if (sdev == slave->dev)
1510 * slave for dups, since we're overwriting it
1512 update_slave = slave;
1513 else if (qid && qid == slave->queue_id) {
1521 /* Actually set the qids for the slave */
1560 struct slave *slave;
1581 bond_for_each_slave(bond, slave, i) {
1582 if (slave->state == BOND_STATE_BACKUP) {
1584 slave->dev->priv_flags &= ~IFF_SLAVE_INACTIVE;
1586 slave->dev->priv_flags |= IFF_SLAVE_INACTIVE;