Home
last modified time | relevance | path

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

12

/openbmc/linux/net/dsa/
H 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()
H 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()
H A Dport.c155 if ((dp->stp_state == BR_STATE_LEARNING || in dsa_port_set_state()
156 dp->stp_state == BR_STATE_FORWARDING) && in dsa_port_set_state()
163 dp->stp_state = state; in dsa_port_set_state()
941 (dp->stp_state == BR_STATE_LEARNING || in dsa_port_bridge_flags()
942 dp->stp_state == BR_STATE_FORWARDING)) in dsa_port_bridge_flags()
/openbmc/linux/drivers/net/dsa/qca/
H A Dqca8k-common.c588 u32 stp_state; in qca8k_port_stp_state_set() local
592 stp_state = QCA8K_PORT_LOOKUP_STATE_DISABLED; in qca8k_port_stp_state_set()
595 stp_state = QCA8K_PORT_LOOKUP_STATE_BLOCKING; in qca8k_port_stp_state_set()
598 stp_state = QCA8K_PORT_LOOKUP_STATE_LISTENING; in qca8k_port_stp_state_set()
601 stp_state = QCA8K_PORT_LOOKUP_STATE_LEARNING; in qca8k_port_stp_state_set()
608 stp_state = QCA8K_PORT_LOOKUP_STATE_FORWARD; in qca8k_port_stp_state_set()
613 QCA8K_PORT_LOOKUP_STATE_MASK, stp_state); in qca8k_port_stp_state_set()
/openbmc/linux/drivers/net/ethernet/rocker/
H 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 …]
/openbmc/linux/drivers/net/ethernet/marvell/prestera/
H 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()
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-switch.h151 u8 stp_state; member
H 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()
3271 port_priv->stp_state = BR_STATE_FORWARDING; in dpaa2_switch_probe_port()
/openbmc/linux/drivers/net/ethernet/ti/
H 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()
H 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()
/openbmc/linux/net/bridge/
H A Dbr_mrp_switchdev.c219 .u.stp_state = state, in br_mrp_port_switchdev_set_state()
H A Dbr_stp.c35 .u.stp_state = state, in br_set_state()
/openbmc/linux/Documentation/networking/device_drivers/ethernet/freescale/dpaa2/
H 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
/openbmc/linux/Documentation/networking/device_drivers/ethernet/ti/
H A Dam65_nuss_cpsw_switchdev.rst77 ip link set dev BRDEV type bridge stp_state 1/0
H A Dcpsw_switchdev.rst127 ip link set dev BRDEV type bridge stp_state 1/0
/openbmc/linux/drivers/net/dsa/
H 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()
H A Dmt7530.c1356 u32 stp_state; in mt7530_stp_state_set() local
1360 stp_state = MT7530_STP_DISABLED; in mt7530_stp_state_set()
1363 stp_state = MT7530_STP_BLOCKING; in mt7530_stp_state_set()
1366 stp_state = MT7530_STP_LISTENING; in mt7530_stp_state_set()
1369 stp_state = MT7530_STP_LEARNING; in mt7530_stp_state_set()
1373 stp_state = MT7530_STP_FORWARDING; in mt7530_stp_state_set()
1378 FID_PST(FID_BRIDGED, stp_state)); in mt7530_stp_state_set()
/openbmc/linux/drivers/net/ethernet/mscc/
H 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()
/openbmc/linux/include/net/
H A Dswitchdev.h58 u8 stp_state; /* PORT_STP_STATE */ member
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_switchdev.c65 u8 stp_state; member
493 bridge_port->stp_state = br_port_get_stp_state(brport_dev); in mlxsw_sp_bridge_port_create()
706 bridge_port->stp_state = state; in mlxsw_sp_port_attr_stp_state_set()
714 bridge_port->stp_state); in mlxsw_sp_port_attr_stp_state_set()
1292 attr->u.stp_state); in mlxsw_sp_port_attr_set()
1448 bridge_port->stp_state); in mlxsw_sp_port_vlan_bridge_join()
4075 return bridge_port->stp_state; in mlxsw_sp_bridge_port_stp_state()
H 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()
/openbmc/linux/drivers/net/dsa/microchip/
H A Dksz_common.c1810 if (other_p->stp_state != BR_STATE_FORWARDING) in ksz_update_port_member()
1813 if (p->stp_state == BR_STATE_FORWARDING) { in ksz_update_port_member()
1830 if (third_p->stp_state != BR_STATE_FORWARDING) in ksz_update_port_member()
2560 p->stp_state = state; in ksz_port_stp_state_set()
2586 ksz_port_stp_state_set(ds, port, p->stp_state); in ksz_port_bridge_flags()
H A Dksz_common.h107 int stp_state; member
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_switchdev.c226 lan966x_port_stp_state_set(port, attr->u.stp_state); in lan966x_port_attr_set()
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_switchdev.c139 sparx5_attr_stp_state_set(port, attr->u.stp_state); in sparx5_port_attr_set()

12