Lines Matching refs:ifname
81 static struct net_device *bond_get_by_name(struct bond_net *bn, const char *ifname) in bond_get_by_name() argument
86 if (strncmp(bond->dev->name, ifname, IFNAMSIZ) == 0) in bond_get_by_name()
107 char *ifname; in bonding_store_bonds() local
111 ifname = command + 1; in bonding_store_bonds()
113 !dev_valid_name(ifname)) in bonding_store_bonds()
117 pr_info("%s is being created...\n", ifname); in bonding_store_bonds()
118 rv = bond_create(bn->net, ifname); in bonding_store_bonds()
121 pr_info("%s already exists.\n", ifname); in bonding_store_bonds()
123 pr_info("%s creation failed.\n", ifname); in bonding_store_bonds()
130 bond_dev = bond_get_by_name(bn, ifname); in bonding_store_bonds()
132 pr_info("%s is being deleted...\n", ifname); in bonding_store_bonds()
135 pr_err("unable to delete non-existent %s\n", ifname); in bonding_store_bonds()
244 char *ifname; in bonding_store_slaves() local
253 ifname = command + 1; in bonding_store_slaves()
255 !dev_valid_name(ifname)) in bonding_store_slaves()
258 dev = __dev_get_by_name(dev_net(bond->dev), ifname); in bonding_store_slaves()
261 bond->dev->name, ifname); in bonding_store_slaves()
1048 char ifname[IFNAMSIZ]; in bonding_store_primary() local
1062 sscanf(buf, "%15s", ifname); /* IFNAMSIZ */ in bonding_store_primary()
1065 if (!strlen(ifname) || buf[0] == '\n') { in bonding_store_primary()
1075 if (strncmp(slave->dev->name, ifname, IFNAMSIZ) == 0) { in bonding_store_primary()
1085 strncpy(bond->params.primary, ifname, IFNAMSIZ); in bonding_store_primary()
1090 bond->dev->name, ifname, bond->dev->name); in bonding_store_primary()
1225 char ifname[IFNAMSIZ]; in bonding_store_active_slave() local
1240 sscanf(buf, "%15s", ifname); /* IFNAMSIZ */ in bonding_store_active_slave()
1243 if (!strlen(ifname) || buf[0] == '\n') { in bonding_store_active_slave()
1252 if (strncmp(slave->dev->name, ifname, IFNAMSIZ) == 0) { in bonding_store_active_slave()