Lines Matching refs:bond
1369 static u32 ocelot_get_bond_mask(struct ocelot *ocelot, struct net_device *bond) in ocelot_get_bond_mask() argument
1382 if (ocelot_port->bond == bond) in ocelot_get_bond_mask()
1392 int ocelot_bond_get_id(struct ocelot *ocelot, struct net_device *bond) in ocelot_bond_get_id() argument
1394 int bond_mask = ocelot_get_bond_mask(ocelot, bond); in ocelot_bond_get_id()
1429 if (cpu->bond) in ocelot_dsa_8021q_cpu_assigned_ports()
1430 mask &= ~ocelot_get_bond_mask(ocelot, cpu->bond); in ocelot_dsa_8021q_cpu_assigned_ports()
1446 if (cpu_port->bond) in ocelot_port_assigned_dsa_8021q_cpu_mask()
1447 return ocelot_get_bond_mask(ocelot, cpu_port->bond); in ocelot_port_assigned_dsa_8021q_cpu_mask()
1512 struct net_device *bond = ocelot_port->bond; in ocelot_apply_bridge_fwd_mask() local
1520 if (bond) in ocelot_apply_bridge_fwd_mask()
1521 mask &= ~ocelot_get_bond_mask(ocelot, bond); in ocelot_apply_bridge_fwd_mask()
1950 if (!ocelot_port || !ocelot_port->bond) in ocelot_set_aggr_pgids()
1958 struct net_device *bond = ocelot->ports[lag]->bond; in ocelot_set_aggr_pgids() local
1963 if (!bond || (visited & BIT(lag))) in ocelot_set_aggr_pgids()
1966 bond_mask = ocelot_get_bond_mask(ocelot, bond); in ocelot_set_aggr_pgids()
2001 if (ocelot_port->bond == bond) in ocelot_set_aggr_pgids()
2018 struct net_device *bond; in ocelot_setup_logical_port_ids() local
2023 bond = ocelot_port->bond; in ocelot_setup_logical_port_ids()
2024 if (bond) { in ocelot_setup_logical_port_ids()
2025 int lag = ocelot_bond_get_id(ocelot, bond); in ocelot_setup_logical_port_ids()
2112 struct net_device *bond, in ocelot_migrate_lag_fdbs() argument
2121 if (fdb->bond != bond) in ocelot_migrate_lag_fdbs()
2128 bond->name, fdb->addr, fdb->vid, ERR_PTR(err)); in ocelot_migrate_lag_fdbs()
2136 bond->name, fdb->addr, fdb->vid, ERR_PTR(err)); in ocelot_migrate_lag_fdbs()
2142 struct net_device *bond, in ocelot_port_lag_join() argument
2154 ocelot->ports[port]->bond = bond; in ocelot_port_lag_join()
2167 struct net_device *bond) in ocelot_port_lag_leave() argument
2173 old_lag_id = ocelot_bond_get_id(ocelot, bond); in ocelot_port_lag_leave()
2175 ocelot->ports[port]->bond = NULL; in ocelot_port_lag_leave()
2181 new_lag_id = ocelot_bond_get_id(ocelot, bond); in ocelot_port_lag_leave()
2184 ocelot_migrate_lag_fdbs(ocelot, bond, new_lag_id); in ocelot_port_lag_leave()
2205 int ocelot_lag_fdb_add(struct ocelot *ocelot, struct net_device *bond, in ocelot_lag_fdb_add() argument
2223 fdb->bond = bond; in ocelot_lag_fdb_add()
2225 lag = ocelot_bond_get_id(ocelot, bond); in ocelot_lag_fdb_add()
2241 int ocelot_lag_fdb_del(struct ocelot *ocelot, struct net_device *bond, in ocelot_lag_fdb_del() argument
2254 fdb->bond != bond) in ocelot_lag_fdb_del()