Lines Matching refs:fdb_id
31 return port_priv->fdb->fdb_id; in dpaa2_switch_port_get_fdb_id()
125 static void dpaa2_switch_fdb_get_flood_cfg(struct ethsw_core *ethsw, u16 fdb_id, in dpaa2_switch_fdb_get_flood_cfg() argument
139 if (ethsw->ports[j]->fdb->fdb_id != fdb_id) in dpaa2_switch_fdb_get_flood_cfg()
151 cfg->fdb_id = fdb_id; in dpaa2_switch_fdb_get_flood_cfg()
156 static int dpaa2_switch_fdb_set_egress_flood(struct ethsw_core *ethsw, u16 fdb_id) in dpaa2_switch_fdb_set_egress_flood() argument
162 dpaa2_switch_fdb_get_flood_cfg(ethsw, fdb_id, DPSW_BROADCAST, &flood_cfg); in dpaa2_switch_fdb_set_egress_flood()
171 dpaa2_switch_fdb_get_flood_cfg(ethsw, fdb_id, DPSW_FLOODING, &flood_cfg); in dpaa2_switch_fdb_set_egress_flood()
198 vcfg.fdb_id = dpaa2_switch_port_get_fdb_id(port_priv); in dpaa2_switch_add_vlan()
302 vcfg.fdb_id = dpaa2_switch_port_get_fdb_id(port_priv); in dpaa2_switch_port_add_vlan()
408 u16 fdb_id; in dpaa2_switch_port_fdb_add_uc() local
415 fdb_id = dpaa2_switch_port_get_fdb_id(port_priv); in dpaa2_switch_port_fdb_add_uc()
418 fdb_id, &entry); in dpaa2_switch_port_fdb_add_uc()
429 u16 fdb_id; in dpaa2_switch_port_fdb_del_uc() local
436 fdb_id = dpaa2_switch_port_get_fdb_id(port_priv); in dpaa2_switch_port_fdb_del_uc()
439 fdb_id, &entry); in dpaa2_switch_port_fdb_del_uc()
451 u16 fdb_id; in dpaa2_switch_port_fdb_add_mc() local
459 fdb_id = dpaa2_switch_port_get_fdb_id(port_priv); in dpaa2_switch_port_fdb_add_mc()
462 fdb_id, &entry); in dpaa2_switch_port_fdb_add_mc()
474 u16 fdb_id; in dpaa2_switch_port_fdb_del_mc() local
482 fdb_id = dpaa2_switch_port_get_fdb_id(port_priv); in dpaa2_switch_port_fdb_del_mc()
485 fdb_id, &entry); in dpaa2_switch_port_fdb_del_mc()
839 u16 fdb_id; in dpaa2_switch_fdb_iterate() local
854 fdb_id = dpaa2_switch_port_get_fdb_id(port_priv); in dpaa2_switch_fdb_iterate()
855 err = dpsw_fdb_dump(ethsw->mc_io, 0, ethsw->dpsw_handle, fdb_id, in dpaa2_switch_fdb_iterate()
1665 return dpaa2_switch_fdb_set_egress_flood(ethsw, port_priv->fdb->fdb_id); in dpaa2_switch_port_flood()
2021 err = dpaa2_switch_fdb_set_egress_flood(ethsw, port_priv->fdb->fdb_id); in dpaa2_switch_port_bridge_join()
2103 err = dpaa2_switch_fdb_set_egress_flood(ethsw, port_priv->fdb->fdb_id); in dpaa2_switch_port_bridge_leave()
2108 err = dpaa2_switch_fdb_set_egress_flood(ethsw, old_fdb->fdb_id); in dpaa2_switch_port_bridge_leave()
3113 u16 fdb_id, acl_tbl_id; in dpaa2_switch_port_init() local
3128 &fdb_id, &fdb_cfg); in dpaa2_switch_port_init()
3136 fdb->fdb_id = fdb_id; in dpaa2_switch_port_init()
3150 err = dpaa2_switch_fdb_set_egress_flood(ethsw, port_priv->fdb->fdb_id); in dpaa2_switch_port_init()