Home
last modified time | relevance | path

Searched refs:ethsw (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-switch.c33 static struct dpaa2_switch_fdb *dpaa2_switch_fdb_get_unused(struct ethsw_core *ethsw) in dpaa2_switch_fdb_get_unused() argument
37 for (i = 0; i < ethsw->sw_attr.num_ifs; i++) in dpaa2_switch_fdb_get_unused()
38 if (!ethsw->fdbs[i].in_use) in dpaa2_switch_fdb_get_unused()
39 return &ethsw->fdbs[i]; in dpaa2_switch_fdb_get_unused()
44 dpaa2_switch_filter_block_get_unused(struct ethsw_core *ethsw) in dpaa2_switch_filter_block_get_unused() argument
48 for (i = 0; i < ethsw->sw_attr.num_ifs; i++) in dpaa2_switch_filter_block_get_unused()
49 if (!ethsw->filter_blocks[i].in_use) in dpaa2_switch_filter_block_get_unused()
50 return &ethsw->filter_blocks[i]; in dpaa2_switch_filter_block_get_unused()
124 static void dpaa2_switch_fdb_get_flood_cfg(struct ethsw_core *ethsw, u16 fdb_id, in dpaa2_switch_fdb_get_flood_cfg() argument
135 for (j = 0; j < ethsw->sw_attr.num_ifs; j++) { in dpaa2_switch_fdb_get_flood_cfg()
[all …]
H A Ddpaa2-switch-flower.c121 struct ethsw_core *ethsw = filter_block->ethsw; in dpaa2_switch_acl_entry_add() local
123 struct device *dev = ethsw->dev; in dpaa2_switch_acl_entry_add()
142 err = dpsw_acl_add_entry(ethsw->mc_io, 0, ethsw->dpsw_handle, in dpaa2_switch_acl_entry_add()
165 struct ethsw_core *ethsw = block->ethsw; in dpaa2_switch_acl_entry_remove() local
166 struct device *dev = ethsw->dev; in dpaa2_switch_acl_entry_remove()
185 err = dpsw_acl_remove_entry(ethsw->mc_io, 0, ethsw->dpsw_handle, in dpaa2_switch_acl_entry_remove()
365 static int dpaa2_switch_tc_parse_action_acl(struct ethsw_core *ethsw, in dpaa2_switch_tc_parse_action_acl() argument
383 dpsw_act->if_id = dpaa2_switch_get_index(ethsw, cls_act->dev); in dpaa2_switch_tc_parse_action_acl()
406 struct ethsw_core *ethsw = block->ethsw; in dpaa2_switch_block_add_mirror() local
414 mirror_port_enabled = (ethsw->mirror_port != ethsw->sw_attr.num_ifs); in dpaa2_switch_block_add_mirror()
[all …]
H A Ddpaa2-switch.h94 struct ethsw_core *ethsw; member
125 struct ethsw_core *ethsw; member
195 static inline int dpaa2_switch_get_index(struct ethsw_core *ethsw, in dpaa2_switch_get_index() argument
200 for (i = 0; i < ethsw->sw_attr.num_ifs; i++) in dpaa2_switch_get_index()
201 if (ethsw->ports[i]->netdev == netdev) in dpaa2_switch_get_index()
202 return ethsw->ports[i]->idx; in dpaa2_switch_get_index()
207 static inline bool dpaa2_switch_supports_cpu_traffic(struct ethsw_core *ethsw) in dpaa2_switch_supports_cpu_traffic() argument
209 if (ethsw->sw_attr.options & DPSW_OPT_CTRL_IF_DIS) { in dpaa2_switch_supports_cpu_traffic()
210 dev_err(ethsw->dev, "Control Interface is disabled, cannot probe\n"); in dpaa2_switch_supports_cpu_traffic()
214 if (ethsw->sw_attr.flooding_cfg != DPSW_FLOODING_PER_FDB) { in dpaa2_switch_supports_cpu_traffic()
[all …]
/linux/Documentation/networking/device_drivers/ethernet/freescale/dpaa2/
H A Dmac-phy-support.rst14 drivers (dpaa2-eth, dpaa2-ethsw) interact with the PHY library.
71 phylink) and its attached net_device driver (dpaa2-eth, dpaa2-ethsw),