Home
last modified time | relevance | path

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

12

/linux/net/dsa/
H A Dtag.h207 if (dp->stp_state != BR_STATE_LEARNING && in dsa_find_designated_bridge_port_by_vid()
208 dp->stp_state != BR_STATE_FORWARDING) in dsa_find_designated_bridge_port_by_vid()
H A Dtag_8021q.c488 if (dp->stp_state != BR_STATE_LEARNING && in dsa_tag_8021q_find_port_by_vbid()
489 dp->stp_state != BR_STATE_FORWARDING) in dsa_tag_8021q_find_port_by_vbid()
/linux/drivers/net/dsa/qca/
H A Dqca8k-common.c587 u32 stp_state; in qca8k_port_stp_state_set() local
591 stp_state = QCA8K_PORT_LOOKUP_STATE_DISABLED; in qca8k_port_stp_state_set()
594 stp_state = QCA8K_PORT_LOOKUP_STATE_BLOCKING; in qca8k_port_stp_state_set()
597 stp_state = QCA8K_PORT_LOOKUP_STATE_LISTENING; in qca8k_port_stp_state_set()
600 stp_state = QCA8K_PORT_LOOKUP_STATE_LEARNING; in qca8k_port_stp_state_set()
607 stp_state = QCA8K_PORT_LOOKUP_STATE_FORWARD; in qca8k_port_stp_state_set()
612 QCA8K_PORT_LOOKUP_STATE_MASK, stp_state); in qca8k_port_stp_state_set()
/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()
1507 ofdpa_port->stp_state == BR_STATE_FORWARDING) { 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()
[all …]
/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()
/linux/drivers/net/ethernet/ti/icssg/
H A Dicssg_switchdev.c97 attr->u.stp_state); in prueth_switchdev_attr_set()
98 netdev_dbg(ndev, "stp state: %u\n", attr->u.stp_state); in prueth_switchdev_attr_set()
/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()
1743 attr->u.stp_state); in dpaa2_switch_port_attr_set()
3307 port_priv->stp_state = BR_STATE_FORWARDING; in dpaa2_switch_probe_port()
/linux/drivers/net/ethernet/ti/
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()
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()
/linux/tools/testing/selftests/net/netfilter/
H A Dbr_netfilter.sh73 if ! ip -net "$ns0" link add br0 type bridge stp_state 0 forward_delay 0 nf_call_iptables 1 nf_call…
/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()
H A Dbr_sysfs_br.c169 static DEVICE_ATTR_RW(stp_state);
/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
/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
/linux/drivers/net/dsa/
H A Dmt7530.c1282 u32 stp_state; in mt7530_stp_state_set() local
1286 stp_state = MT7530_STP_DISABLED; in mt7530_stp_state_set()
1289 stp_state = MT7530_STP_BLOCKING; in mt7530_stp_state_set()
1292 stp_state = MT7530_STP_LISTENING; in mt7530_stp_state_set()
1295 stp_state = MT7530_STP_LEARNING; in mt7530_stp_state_set()
1299 stp_state = MT7530_STP_FORWARDING; in mt7530_stp_state_set()
1304 FID_PST(FID_BRIDGED, stp_state)); in mt7530_stp_state_set()
/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()
/linux/include/net/
H A Dswitchdev.h58 u8 stp_state; /* PORT_STP_STATE */ member
/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()
/linux/drivers/net/dsa/microchip/
H A Dksz_common.c2203 if (other_p->stp_state != BR_STATE_FORWARDING) in ksz_update_port_member()
2212 if (p->stp_state == BR_STATE_FORWARDING && in ksz_update_port_member()
2230 if (third_p->stp_state != BR_STATE_FORWARDING) in ksz_update_port_member()
3245 p->stp_state = state; in ksz_port_stp_state_set()
3294 ksz_port_stp_state_set(ds, port, p->stp_state); in ksz_port_bridge_flags()
H A Dksz_common.h127 int stp_state; member
/linux/drivers/net/ethernet/mscc/
H A Docelot.c1806 if (!ocelot_port || ocelot_port->stp_state != BR_STATE_FORWARDING) in ocelot_get_bridge_fwd_mask()
1819 if (ocelot_port->stp_state == BR_STATE_FORWARDING && in ocelot_get_bridge_fwd_mask()
1986 ocelot_port->stp_state = state; in ocelot_bridge_stp_state_set()

12