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()
407 u16 fdb_id; in dpaa2_switch_port_fdb_add_uc() local
414 fdb_id = dpaa2_switch_port_get_fdb_id(port_priv); in dpaa2_switch_port_fdb_add_uc()
417 fdb_id, &entry); in dpaa2_switch_port_fdb_add_uc()
428 u16 fdb_id; in dpaa2_switch_port_fdb_del_uc() local
435 fdb_id = dpaa2_switch_port_get_fdb_id(port_priv); in dpaa2_switch_port_fdb_del_uc()
438 fdb_id, &entry); in dpaa2_switch_port_fdb_del_uc()
450 u16 fdb_id; in dpaa2_switch_port_fdb_add_mc() local
458 fdb_id = dpaa2_switch_port_get_fdb_id(port_priv); in dpaa2_switch_port_fdb_add_mc()
461 fdb_id, &entry); in dpaa2_switch_port_fdb_add_mc()
473 u16 fdb_id; in dpaa2_switch_port_fdb_del_mc() local
481 fdb_id = dpaa2_switch_port_get_fdb_id(port_priv); in dpaa2_switch_port_fdb_del_mc()
484 fdb_id, &entry); in dpaa2_switch_port_fdb_del_mc()
835 u16 fdb_id; in dpaa2_switch_fdb_iterate() local
850 fdb_id = dpaa2_switch_port_get_fdb_id(port_priv); in dpaa2_switch_fdb_iterate()
851 err = dpsw_fdb_dump(ethsw->mc_io, 0, ethsw->dpsw_handle, fdb_id, in dpaa2_switch_fdb_iterate()
1662 return dpaa2_switch_fdb_set_egress_flood(ethsw, port_priv->fdb->fdb_id); in dpaa2_switch_port_flood()
2016 err = dpaa2_switch_fdb_set_egress_flood(ethsw, port_priv->fdb->fdb_id); in dpaa2_switch_port_bridge_join()
2098 err = dpaa2_switch_fdb_set_egress_flood(ethsw, port_priv->fdb->fdb_id); in dpaa2_switch_port_bridge_leave()
2103 err = dpaa2_switch_fdb_set_egress_flood(ethsw, old_fdb->fdb_id); in dpaa2_switch_port_bridge_leave()
3108 u16 fdb_id, acl_tbl_id; in dpaa2_switch_port_init() local
3123 &fdb_id, &fdb_cfg); in dpaa2_switch_port_init()
3131 fdb->fdb_id = fdb_id; in dpaa2_switch_port_init()
3145 err = dpaa2_switch_fdb_set_egress_flood(ethsw, port_priv->fdb->fdb_id); in dpaa2_switch_port_init()