| /Linux-v5.15/drivers/net/ethernet/marvell/prestera/ |
| D | prestera_switchdev.c | 53 u8 stp_state; member 401 br_port->stp_state = BR_STATE_DISABLED; in prestera_bridge_port_create() 706 br_port->stp_state = state; in prestera_port_attr_stp_state_set() 712 prestera_port_bridge_vlan_stp_set(port, br_vlan, br_port->stp_state); in prestera_port_attr_stp_state_set() 716 prestera_port_vid_stp_set(port, vid, br_port->stp_state); in prestera_port_attr_stp_state_set() 731 attr->u.stp_state); in prestera_port_obj_attr_set() 932 err = prestera_port_vid_stp_set(port, vid, br_port->stp_state); in prestera_port_vlan_bridge_join()
|
| /Linux-v5.15/drivers/net/ethernet/rocker/ |
| D | rocker_ofdpa.c | 200 int stp_state; member 1506 if (ofdpa_port->stp_state == BR_STATE_LEARNING || in ofdpa_port_vlan_l2_groups() 1507 ofdpa_port->stp_state == BR_STATE_FORWARDING) { in ofdpa_port_vlan_l2_groups() 1955 if (ofdpa_port->stp_state == BR_STATE_LEARNING || in ofdpa_port_fdb_flush() 1956 ofdpa_port->stp_state == BR_STATE_FORWARDING) in ofdpa_port_fdb_flush() 2064 if (ofdpa_port->stp_state != BR_STATE_LEARNING && in ofdpa_port_fwding() 2065 ofdpa_port->stp_state != BR_STATE_FORWARDING) in ofdpa_port_fwding() 2096 prev_state = ofdpa_port->stp_state; in ofdpa_port_stp_update() 2098 if (ofdpa_port->stp_state == state) in ofdpa_port_stp_update() 2101 ofdpa_port->stp_state = state; in ofdpa_port_stp_update() [all …]
|
| /Linux-v5.15/drivers/net/dsa/ |
| D | qca8k.c | 1496 u32 stp_state; in qca8k_port_stp_state_set() local 1500 stp_state = QCA8K_PORT_LOOKUP_STATE_DISABLED; in qca8k_port_stp_state_set() 1503 stp_state = QCA8K_PORT_LOOKUP_STATE_BLOCKING; in qca8k_port_stp_state_set() 1506 stp_state = QCA8K_PORT_LOOKUP_STATE_LISTENING; in qca8k_port_stp_state_set() 1509 stp_state = QCA8K_PORT_LOOKUP_STATE_LEARNING; in qca8k_port_stp_state_set() 1513 stp_state = QCA8K_PORT_LOOKUP_STATE_FORWARD; in qca8k_port_stp_state_set() 1518 QCA8K_PORT_LOOKUP_STATE_MASK, stp_state); in qca8k_port_stp_state_set()
|
| D | lantiq_gswip.c | 1295 u32 stp_state; in gswip_port_stp_state_set() local 1304 stp_state = GSWIP_PCE_PCTRL_0_PSTATE_LISTEN; in gswip_port_stp_state_set() 1307 stp_state = GSWIP_PCE_PCTRL_0_PSTATE_LEARNING; in gswip_port_stp_state_set() 1310 stp_state = GSWIP_PCE_PCTRL_0_PSTATE_FORWARDING; in gswip_port_stp_state_set() 1319 gswip_switch_mask(priv, GSWIP_PCE_PCTRL_0_PSTATE_MASK, stp_state, in gswip_port_stp_state_set()
|
| D | mt7530.c | 1124 u32 stp_state; in mt7530_stp_state_set() local 1128 stp_state = MT7530_STP_DISABLED; in mt7530_stp_state_set() 1131 stp_state = MT7530_STP_BLOCKING; in mt7530_stp_state_set() 1134 stp_state = MT7530_STP_LISTENING; in mt7530_stp_state_set() 1137 stp_state = MT7530_STP_LEARNING; in mt7530_stp_state_set() 1141 stp_state = MT7530_STP_FORWARDING; in mt7530_stp_state_set() 1146 FID_PST(FID_BRIDGED, stp_state)); in mt7530_stp_state_set()
|
| /Linux-v5.15/net/dsa/ |
| D | port.c | 98 if ((dp->stp_state == BR_STATE_LEARNING || in dsa_port_set_state() 99 dp->stp_state == BR_STATE_FORWARDING) && in dsa_port_set_state() 106 dp->stp_state = state; in dsa_port_set_state() 719 (dp->stp_state == BR_STATE_LEARNING || in dsa_port_bridge_flags() 720 dp->stp_state == BR_STATE_FORWARDING)) in dsa_port_bridge_flags()
|
| D | dsa_priv.h | 421 if (dp->stp_state != BR_STATE_LEARNING && in dsa_find_designated_bridge_port_by_vid() 422 dp->stp_state != BR_STATE_FORWARDING) in dsa_find_designated_bridge_port_by_vid()
|
| /Linux-v5.15/drivers/net/ethernet/freescale/dpaa2/ |
| D | dpaa2-switch.h | 151 u8 stp_state; member
|
| /Linux-v5.15/drivers/net/ethernet/ti/ |
| D | am65-cpsw-switchdev.c | 102 ret = am65_cpsw_port_stp_state_set(port, attr->u.stp_state); in am65_cpsw_port_attr_set() 103 netdev_dbg(ndev, "stp state: %u\n", attr->u.stp_state); in am65_cpsw_port_attr_set()
|
| D | cpsw_switchdev.c | 104 ret = cpsw_port_stp_state_set(priv, attr->u.stp_state); in cpsw_port_attr_set() 105 dev_dbg(priv->dev, "stp state: %u\n", attr->u.stp_state); in cpsw_port_attr_set()
|
| /Linux-v5.15/net/bridge/ |
| D | br_mrp_switchdev.c | 219 .u.stp_state = state, in br_mrp_port_switchdev_set_state()
|
| D | br_stp.c | 35 .u.stp_state = state, in br_set_state()
|
| /Linux-v5.15/Documentation/networking/device_drivers/ethernet/freescale/dpaa2/ |
| D | switch-driver.rst | 98 Topology and loop detection through STP is supported when ``stp_state 1`` is 101 $ ip link add dev br0 type bridge vlan_filtering 1 stp_state 1
|
| /Linux-v5.15/Documentation/networking/device_drivers/ethernet/ti/ |
| D | am65_nuss_cpsw_switchdev.rst | 77 ip link set dev BRDEV type bridge stp_state 1/0
|
| D | cpsw_switchdev.rst | 127 ip link set dev BRDEV type bridge stp_state 1/0
|
| /Linux-v5.15/drivers/net/ethernet/mscc/ |
| D | ocelot_net.c | 911 ocelot_port_attr_stp_state_set(ocelot, port, attr->u.stp_state); in ocelot_port_attr_set() 1127 u8 stp_state; in ocelot_switchdev_sync() local 1131 stp_state = br_port_get_stp_state(brport_dev); in ocelot_switchdev_sync() 1132 ocelot_bridge_stp_state_set(ocelot, port, stp_state); in ocelot_switchdev_sync()
|
| D | ocelot.c | 1339 ocelot_port->stp_state != BR_STATE_FORWARDING) in ocelot_get_bridge_fwd_mask() 1348 if (ocelot_port->stp_state == BR_STATE_FORWARDING && in ocelot_get_bridge_fwd_mask() 1434 ocelot_port->stp_state = state; in ocelot_bridge_stp_state_set()
|
| /Linux-v5.15/drivers/net/ethernet/mellanox/mlxsw/ |
| D | spectrum_switchdev.c | 64 u8 stp_state; member 357 bridge_port->stp_state = BR_STATE_DISABLED; in mlxsw_sp_bridge_port_create() 570 bridge_port->stp_state = state; in mlxsw_sp_port_attr_stp_state_set() 578 bridge_port->stp_state); in mlxsw_sp_port_attr_stp_state_set() 926 attr->u.stp_state); in mlxsw_sp_port_attr_set() 1080 bridge_port->stp_state); in mlxsw_sp_port_vlan_bridge_join() 3556 return bridge_port->stp_state; in mlxsw_sp_bridge_port_stp_state()
|
| D | spectrum_span.c | 306 u8 stp_state; in mlxsw_sp_span_entry_bridge() local 323 stp_state = mlxsw_sp_bridge_port_stp_state(bridge_port); in mlxsw_sp_span_entry_bridge() 324 spms_state = mlxsw_sp_stp_spms_state(stp_state); in mlxsw_sp_span_entry_bridge()
|
| /Linux-v5.15/include/net/ |
| D | switchdev.h | 45 u8 stp_state; /* PORT_STP_STATE */ member
|
| /Linux-v5.15/drivers/net/dsa/microchip/ |
| D | ksz_common.h | 31 int stp_state; member
|
| D | ksz9477.c | 418 p->stp_state == BR_STATE_DISABLED) in ksz9477_port_stp_state_set() 444 p->stp_state == BR_STATE_DISABLED) in ksz9477_port_stp_state_set() 453 p->stp_state = state; in ksz9477_port_stp_state_set()
|
| D | ksz_common.c | 36 if (p->stp_state == BR_STATE_FORWARDING && in ksz_update_port_member()
|
| D | ksz8795.c | 1030 p->stp_state == BR_STATE_DISABLED) in ksz8_port_stp_state_set() 1054 p->stp_state == BR_STATE_DISABLED) in ksz8_port_stp_state_set() 1063 p->stp_state = state; in ksz8_port_stp_state_set()
|
| /Linux-v5.15/drivers/net/ethernet/microchip/sparx5/ |
| D | sparx5_switchdev.c | 79 sparx5_attr_stp_state_set(port, attr->u.stp_state); in sparx5_port_attr_set()
|