Lines Matching full:bond
1715 static u32 ocelot_get_bond_mask(struct ocelot *ocelot, struct net_device *bond) in ocelot_get_bond_mask() argument
1728 if (ocelot_port->bond == bond) in ocelot_get_bond_mask()
1738 int ocelot_bond_get_id(struct ocelot *ocelot, struct net_device *bond) in ocelot_bond_get_id() argument
1740 int bond_mask = ocelot_get_bond_mask(ocelot, bond); in ocelot_bond_get_id()
1775 if (cpu->bond) in ocelot_dsa_8021q_cpu_assigned_ports()
1776 mask &= ~ocelot_get_bond_mask(ocelot, cpu->bond); in ocelot_dsa_8021q_cpu_assigned_ports()
1792 if (cpu_port->bond) in ocelot_port_assigned_dsa_8021q_cpu_mask()
1793 return ocelot_get_bond_mask(ocelot, cpu_port->bond); in ocelot_port_assigned_dsa_8021q_cpu_mask()
1858 struct net_device *bond = ocelot_port->bond; in ocelot_apply_bridge_fwd_mask() local
1866 if (bond) in ocelot_apply_bridge_fwd_mask()
1867 mask &= ~ocelot_get_bond_mask(ocelot, bond); in ocelot_apply_bridge_fwd_mask()
2296 if (!ocelot_port || !ocelot_port->bond) in ocelot_set_aggr_pgids()
2304 struct net_device *bond = ocelot->ports[lag]->bond; in ocelot_set_aggr_pgids() local
2309 if (!bond || (visited & BIT(lag))) in ocelot_set_aggr_pgids()
2312 bond_mask = ocelot_get_bond_mask(ocelot, bond); in ocelot_set_aggr_pgids()
2347 if (ocelot_port->bond == bond) in ocelot_set_aggr_pgids()
2354 * same bond must have the same logical port ID, equal to the physical port ID
2355 * of the lowest numbered physical port in that bond. Otherwise, in standalone/
2364 struct net_device *bond; in ocelot_setup_logical_port_ids() local
2369 bond = ocelot_port->bond; in ocelot_setup_logical_port_ids()
2370 if (bond) { in ocelot_setup_logical_port_ids()
2371 int lag = ocelot_bond_get_id(ocelot, bond); in ocelot_setup_logical_port_ids()
2458 struct net_device *bond, in ocelot_migrate_lag_fdbs() argument
2467 if (fdb->bond != bond) in ocelot_migrate_lag_fdbs()
2474 bond->name, fdb->addr, fdb->vid, ERR_PTR(err)); in ocelot_migrate_lag_fdbs()
2482 bond->name, fdb->addr, fdb->vid, ERR_PTR(err)); in ocelot_migrate_lag_fdbs()
2488 struct net_device *bond, in ocelot_port_lag_join() argument
2500 ocelot->ports[port]->bond = bond; in ocelot_port_lag_join()
2513 struct net_device *bond) in ocelot_port_lag_leave() argument
2519 old_lag_id = ocelot_bond_get_id(ocelot, bond); in ocelot_port_lag_leave()
2521 ocelot->ports[port]->bond = NULL; in ocelot_port_lag_leave()
2527 new_lag_id = ocelot_bond_get_id(ocelot, bond); in ocelot_port_lag_leave()
2530 ocelot_migrate_lag_fdbs(ocelot, bond, new_lag_id); in ocelot_port_lag_leave()
2551 int ocelot_lag_fdb_add(struct ocelot *ocelot, struct net_device *bond, in ocelot_lag_fdb_add() argument
2569 fdb->bond = bond; in ocelot_lag_fdb_add()
2571 lag = ocelot_bond_get_id(ocelot, bond); in ocelot_lag_fdb_add()
2587 int ocelot_lag_fdb_del(struct ocelot *ocelot, struct net_device *bond, in ocelot_lag_fdb_del() argument
2600 fdb->bond != bond) in ocelot_lag_fdb_del()