Home
last modified time | relevance | path

Searched refs:stp_state (Results 1 – 25 of 34) sorted by relevance

12

/linux-6.3-rc2/net/dsa/
A Dtag.h126 if (dp->stp_state != BR_STATE_LEARNING && in dsa_find_designated_bridge_port_by_vid()
127 dp->stp_state != BR_STATE_FORWARDING) in dsa_find_designated_bridge_port_by_vid()
A Dtag_8021q.c485 if (dp->stp_state != BR_STATE_LEARNING && in dsa_tag_8021q_find_port_by_vbid()
486 dp->stp_state != BR_STATE_FORWARDING) in dsa_tag_8021q_find_port_by_vbid()
A Dport.c153 if ((dp->stp_state == BR_STATE_LEARNING || in dsa_port_set_state()
154 dp->stp_state == BR_STATE_FORWARDING) && in dsa_port_set_state()
161 dp->stp_state = state; in dsa_port_set_state()
939 (dp->stp_state == BR_STATE_LEARNING || in dsa_port_bridge_flags()
940 dp->stp_state == BR_STATE_FORWARDING)) in dsa_port_bridge_flags()
/linux-6.3-rc2/drivers/net/dsa/qca/
A Dqca8k-common.c565 u32 stp_state; in qca8k_port_stp_state_set() local
569 stp_state = QCA8K_PORT_LOOKUP_STATE_DISABLED; in qca8k_port_stp_state_set()
572 stp_state = QCA8K_PORT_LOOKUP_STATE_BLOCKING; in qca8k_port_stp_state_set()
575 stp_state = QCA8K_PORT_LOOKUP_STATE_LISTENING; in qca8k_port_stp_state_set()
578 stp_state = QCA8K_PORT_LOOKUP_STATE_LEARNING; in qca8k_port_stp_state_set()
582 stp_state = QCA8K_PORT_LOOKUP_STATE_FORWARD; in qca8k_port_stp_state_set()
587 QCA8K_PORT_LOOKUP_STATE_MASK, stp_state); in qca8k_port_stp_state_set()
/linux-6.3-rc2/drivers/net/ethernet/rocker/
A Drocker_ofdpa.c200 int stp_state; member
1506 if (ofdpa_port->stp_state == BR_STATE_LEARNING || in ofdpa_port_vlan_l2_groups()
1956 if (ofdpa_port->stp_state == BR_STATE_LEARNING || in ofdpa_port_fdb_flush()
1957 ofdpa_port->stp_state == BR_STATE_FORWARDING) in ofdpa_port_fdb_flush()
2065 if (ofdpa_port->stp_state != BR_STATE_LEARNING && in ofdpa_port_fwding()
2066 ofdpa_port->stp_state != BR_STATE_FORWARDING) in ofdpa_port_fwding()
2097 prev_state = ofdpa_port->stp_state; in ofdpa_port_stp_update()
2099 if (ofdpa_port->stp_state == state) in ofdpa_port_stp_update()
2102 ofdpa_port->stp_state = state; in ofdpa_port_stp_update()
2153 ofdpa_port->stp_state = prev_state; in ofdpa_port_stp_update()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/marvell/prestera/
A Dprestera_switchdev.c58 u8 stp_state; member
571 br_port->stp_state = BR_STATE_DISABLED; in prestera_bridge_port_create()
859 br_port->stp_state = state; in prestera_port_attr_stp_state_set()
865 prestera_port_bridge_vlan_stp_set(port, br_vlan, br_port->stp_state); in prestera_port_attr_stp_state_set()
869 prestera_port_vid_stp_set(port, vid, br_port->stp_state); in prestera_port_attr_stp_state_set()
1168 attr->u.stp_state); in prestera_port_obj_attr_set()
1372 err = prestera_port_vid_stp_set(port, vid, br_port->stp_state); in prestera_port_vlan_bridge_join()
/linux-6.3-rc2/drivers/net/ethernet/freescale/dpaa2/
A Ddpaa2-switch.h151 u8 stp_state; member
A Ddpaa2-switch.c356 if (!netif_running(port_priv->netdev) || state == port_priv->stp_state) in dpaa2_switch_port_set_stp_state()
374 port_priv->stp_state = state; in dpaa2_switch_port_set_stp_state()
1744 attr->u.stp_state); in dpaa2_switch_port_attr_set()
3280 port_priv->stp_state = BR_STATE_FORWARDING; in dpaa2_switch_probe_port()
/linux-6.3-rc2/drivers/net/ethernet/ti/
A Dam65-cpsw-switchdev.c102 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()
A Dcpsw_switchdev.c104 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-6.3-rc2/net/bridge/
A Dbr_mrp_switchdev.c219 .u.stp_state = state, in br_mrp_port_switchdev_set_state()
A Dbr_stp.c35 .u.stp_state = state, in br_set_state()
/linux-6.3-rc2/Documentation/networking/device_drivers/ethernet/freescale/dpaa2/
A Dswitch-driver.rst98 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-6.3-rc2/drivers/net/dsa/
A Dlantiq_gswip.c1329 u32 stp_state; in gswip_port_stp_state_set() local
1338 stp_state = GSWIP_PCE_PCTRL_0_PSTATE_LISTEN; in gswip_port_stp_state_set()
1341 stp_state = GSWIP_PCE_PCTRL_0_PSTATE_LEARNING; in gswip_port_stp_state_set()
1344 stp_state = GSWIP_PCE_PCTRL_0_PSTATE_FORWARDING; in gswip_port_stp_state_set()
1353 gswip_switch_mask(priv, GSWIP_PCE_PCTRL_0_PSTATE_MASK, stp_state, in gswip_port_stp_state_set()
A Dmt7530.c1133 u32 stp_state; in mt7530_stp_state_set() local
1137 stp_state = MT7530_STP_DISABLED; in mt7530_stp_state_set()
1140 stp_state = MT7530_STP_BLOCKING; in mt7530_stp_state_set()
1143 stp_state = MT7530_STP_LISTENING; in mt7530_stp_state_set()
1146 stp_state = MT7530_STP_LEARNING; in mt7530_stp_state_set()
1150 stp_state = MT7530_STP_FORWARDING; in mt7530_stp_state_set()
1155 FID_PST(FID_BRIDGED, stp_state)); in mt7530_stp_state_set()
/linux-6.3-rc2/Documentation/networking/device_drivers/ethernet/ti/
A Dam65_nuss_cpsw_switchdev.rst77 ip link set dev BRDEV type bridge stp_state 1/0
A Dcpsw_switchdev.rst127 ip link set dev BRDEV type bridge stp_state 1/0
/linux-6.3-rc2/drivers/net/ethernet/mscc/
A Docelot_net.c1047 ocelot_port_attr_stp_state_set(ocelot, port, attr->u.stp_state); in ocelot_port_attr_set()
1263 u8 stp_state; in ocelot_switchdev_sync() local
1267 stp_state = br_port_get_stp_state(brport_dev); in ocelot_switchdev_sync()
1268 ocelot_bridge_stp_state_set(ocelot, port, stp_state); in ocelot_switchdev_sync()
/linux-6.3-rc2/include/net/
A Dswitchdev.h58 u8 stp_state; /* PORT_STP_STATE */ member
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum_switchdev.c65 u8 stp_state; member
408 bridge_port->stp_state = BR_STATE_DISABLED; in mlxsw_sp_bridge_port_create()
621 bridge_port->stp_state = state; in mlxsw_sp_port_attr_stp_state_set()
629 bridge_port->stp_state); in mlxsw_sp_port_attr_stp_state_set()
1207 attr->u.stp_state); in mlxsw_sp_port_attr_set()
1363 bridge_port->stp_state); in mlxsw_sp_port_vlan_bridge_join()
3964 return bridge_port->stp_state; in mlxsw_sp_bridge_port_stp_state()
A Dspectrum_span.c305 u8 stp_state; in mlxsw_sp_span_entry_bridge() local
322 stp_state = mlxsw_sp_bridge_port_stp_state(bridge_port); in mlxsw_sp_span_entry_bridge()
323 spms_state = mlxsw_sp_stp_spms_state(stp_state); in mlxsw_sp_span_entry_bridge()
/linux-6.3-rc2/drivers/net/dsa/microchip/
A Dksz_common.c1773 if (other_p->stp_state != BR_STATE_FORWARDING) in ksz_update_port_member()
1776 if (p->stp_state == BR_STATE_FORWARDING) { in ksz_update_port_member()
1793 if (third_p->stp_state != BR_STATE_FORWARDING) in ksz_update_port_member()
2509 p->stp_state = state; in ksz_port_stp_state_set()
2535 ksz_port_stp_state_set(ds, port, p->stp_state); in ksz_port_bridge_flags()
A Dksz_common.h100 int stp_state; member
/linux-6.3-rc2/drivers/net/ethernet/microchip/lan966x/
A Dlan966x_switchdev.c226 lan966x_port_stp_state_set(port, attr->u.stp_state); in lan966x_port_attr_set()
/linux-6.3-rc2/drivers/net/ethernet/microchip/sparx5/
A Dsparx5_switchdev.c139 sparx5_attr_stp_state_set(port, attr->u.stp_state); in sparx5_port_attr_set()

Completed in 74 milliseconds

12