Searched refs:ethsw (Results 1 – 10 of 10) sorted by relevance
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-switch.c | 33 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 ðsw->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 ðsw->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 D | dpaa2-switch-flower.c | 118 struct ethsw_core *ethsw = filter_block->ethsw; in dpaa2_switch_acl_entry_add() local 120 struct device *dev = ethsw->dev; in dpaa2_switch_acl_entry_add() 139 err = dpsw_acl_add_entry(ethsw->mc_io, 0, ethsw->dpsw_handle, in dpaa2_switch_acl_entry_add() 162 struct ethsw_core *ethsw = block->ethsw; in dpaa2_switch_acl_entry_remove() local 163 struct device *dev = ethsw->dev; in dpaa2_switch_acl_entry_remove() 182 err = dpsw_acl_remove_entry(ethsw->mc_io, 0, ethsw->dpsw_handle, in dpaa2_switch_acl_entry_remove() 362 static int dpaa2_switch_tc_parse_action_acl(struct ethsw_core *ethsw, in dpaa2_switch_tc_parse_action_acl() argument 380 dpsw_act->if_id = dpaa2_switch_get_index(ethsw, cls_act->dev); in dpaa2_switch_tc_parse_action_acl() 403 struct ethsw_core *ethsw = block->ethsw; in dpaa2_switch_block_add_mirror() local 411 mirror_port_enabled = (ethsw->mirror_port != ethsw->sw_attr.num_ifs); in dpaa2_switch_block_add_mirror() [all …]
|
H A D | dpaa2-switch.h | 94 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 …]
|
H A D | dpaa2-switch-ethtool.c | 104 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_set_link_ksettings() local 123 err = dpsw_if_disable(ethsw->mc_io, 0, in dpaa2_switch_set_link_ksettings() 124 ethsw->dpsw_handle, in dpaa2_switch_set_link_ksettings() 148 ret = dpsw_if_enable(ethsw->mc_io, 0, in dpaa2_switch_set_link_ksettings() 149 ethsw->dpsw_handle, in dpaa2_switch_set_link_ksettings()
|
/openbmc/u-boot/doc/ |
H A D | README.t1040-l2switch | 37 ethsw [port <port_no>] { enable | disable | show } - enable/disable a port; show a port's configura… 38 ethsw [port <port_no>] statistics { [help] | [clear] } - show an l2 switch port's statistics 39 ethsw [port <port_no>] learning { [help] | show | auto | disable } - enable/disable/show learning c… 40 ethsw [port <port_no>] [vlan <vid>] fdb { [help] | show | flush | { add | del } <mac> } - add/delet… 42 ethsw [port <port_no>] pvid { [help] | show | <pvid> } - set/show PVID (ingress and egress VLAN tag… 43 ethsw [port <port_no>] vlan { [help] | show | add <vid> | del <vid> } - add a VLAN to a port (VLAN … 44 ethsw [port <port_no>] untagged { [help] | show | all | none | pvid } - set egress tagging mode for… 45 ethsw [port <port_no>] egress tag { [help] | show | pvid | classified } - configure VID source for … 47 ethsw vlan fdb { [help] | show | shared | private } - make VLAN learning shared or private 48 ethsw [port <port_no>] ingress filtering { [help] | show | enable | disable } - enable/disable VLAN… [all …]
|
/openbmc/linux/Documentation/networking/device_drivers/ethernet/freescale/dpaa2/ |
H A D | mac-phy-support.rst | 14 drivers (dpaa2-eth, dpaa2-ethsw) interact with the PHY library. 71 phylink) and its attached net_device driver (dpaa2-eth, dpaa2-ethsw),
|
/openbmc/u-boot/cmd/ |
H A D | Makefile | 167 obj-$(CONFIG_CMD_ETHSW) += ethsw.o
|
H A D | ethsw.c | 1088 U_BOOT_CMD(ethsw, ETHSW_MAX_CMD_PARAMS, 0, do_ethsw,
|
H A D | Kconfig | 1349 bool "ethsw"
|
/openbmc/linux/ |
H A D | opengrok0.0.log | [all...] |