/linux/net/dsa/ |
H A D | tag.h | 207 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 D | tag_8021q.c | 488 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 D | qca8k-common.c | 587 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 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() 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 D | prestera_switchdev.c | 58 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 D | icssg_switchdev.c | 97 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 D | dpaa2-switch.h | 151 u8 stp_state; member
|
H A D | dpaa2-switch.c | 356 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 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()
|
H A 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()
|
/linux/tools/testing/selftests/net/netfilter/ |
H A D | br_netfilter.sh | 73 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 D | br_mrp_switchdev.c | 219 .u.stp_state = state, in br_mrp_port_switchdev_set_state()
|
H A D | br_stp.c | 35 .u.stp_state = state, in br_set_state()
|
H A D | br_sysfs_br.c | 169 static DEVICE_ATTR_RW(stp_state);
|
/linux/Documentation/networking/device_drivers/ethernet/freescale/dpaa2/ |
H A 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/Documentation/networking/device_drivers/ethernet/ti/ |
H A D | am65_nuss_cpsw_switchdev.rst | 77 ip link set dev BRDEV type bridge stp_state 1/0
|
H A D | cpsw_switchdev.rst | 127 ip link set dev BRDEV type bridge stp_state 1/0
|
/linux/drivers/net/dsa/ |
H A D | mt7530.c | 1282 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 D | spectrum_switchdev.c | 65 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 D | spectrum_span.c | 305 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 D | switchdev.h | 58 u8 stp_state; /* PORT_STP_STATE */ member
|
/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_switchdev.c | 226 lan966x_port_stp_state_set(port, attr->u.stp_state); in lan966x_port_attr_set()
|
/linux/drivers/net/dsa/microchip/ |
H A D | ksz_common.c | 2203 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 D | ksz_common.h | 127 int stp_state; member
|
/linux/drivers/net/ethernet/mscc/ |
H A D | ocelot.c | 1806 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()
|