Lines Matching defs:bond
1474 static u32 ocelot_get_bond_mask(struct ocelot *ocelot, struct net_device *bond)
1487 if (ocelot_port->bond == bond)
1497 int ocelot_bond_get_id(struct ocelot *ocelot, struct net_device *bond)
1499 int bond_mask = ocelot_get_bond_mask(ocelot, bond);
1534 if (cpu->bond)
1535 mask &= ~ocelot_get_bond_mask(ocelot, cpu->bond);
1551 if (cpu_port->bond)
1552 return ocelot_get_bond_mask(ocelot, cpu_port->bond);
1617 struct net_device *bond = ocelot_port->bond;
1625 if (bond)
1626 mask &= ~ocelot_get_bond_mask(ocelot, bond);
2055 if (!ocelot_port || !ocelot_port->bond)
2063 struct net_device *bond = ocelot->ports[lag]->bond;
2068 if (!bond || (visited & BIT(lag)))
2071 bond_mask = ocelot_get_bond_mask(ocelot, bond);
2106 if (ocelot_port->bond == bond)
2113 * same bond must have the same logical port ID, equal to the physical port ID
2114 * of the lowest numbered physical port in that bond. Otherwise, in standalone/
2123 struct net_device *bond;
2128 bond = ocelot_port->bond;
2129 if (bond) {
2130 int lag = ocelot_bond_get_id(ocelot, bond);
2217 struct net_device *bond,
2226 if (fdb->bond != bond)
2233 bond->name, fdb->addr, fdb->vid, ERR_PTR(err));
2241 bond->name, fdb->addr, fdb->vid, ERR_PTR(err));
2247 struct net_device *bond,
2259 ocelot->ports[port]->bond = bond;
2272 struct net_device *bond)
2278 old_lag_id = ocelot_bond_get_id(ocelot, bond);
2280 ocelot->ports[port]->bond = NULL;
2286 new_lag_id = ocelot_bond_get_id(ocelot, bond);
2289 ocelot_migrate_lag_fdbs(ocelot, bond, new_lag_id);
2310 int ocelot_lag_fdb_add(struct ocelot *ocelot, struct net_device *bond,
2328 fdb->bond = bond;
2330 lag = ocelot_bond_get_id(ocelot, bond);
2346 int ocelot_lag_fdb_del(struct ocelot *ocelot, struct net_device *bond,
2359 fdb->bond != bond)