Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/staging/fsl-dpaa2/ethsw/
Dethsw.h52 u8 stp_state; member
Dethsw.c210 if (!netif_running(port_priv->netdev) || state == port_priv->stp_state) in dpaa2_switch_port_set_stp_state()
227 port_priv->stp_state = state; in dpaa2_switch_port_set_stp_state()
956 attr->u.stp_state); in dpaa2_switch_port_attr_set()
1706 port_priv->stp_state = BR_STATE_FORWARDING; in dpaa2_switch_probe_port()
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/prestera/
Dprestera_switchdev.c53 u8 stp_state; member
344 br_port->stp_state = BR_STATE_DISABLED; in prestera_bridge_port_create()
697 br_port->stp_state = state; in presterar_port_attr_stp_state_set()
703 prestera_port_bridge_vlan_stp_set(port, br_vlan, br_port->stp_state); in presterar_port_attr_stp_state_set()
707 prestera_port_vid_stp_set(port, vid, br_port->stp_state); in presterar_port_attr_stp_state_set()
723 attr->u.stp_state); in prestera_port_obj_attr_set()
925 err = prestera_port_vid_stp_set(port, vid, br_port->stp_state); in prestera_port_vlan_bridge_join()
/kernel/linux/linux-5.10/drivers/net/dsa/
Dqca8k.c1114 u32 stp_state; in qca8k_port_stp_state_set() local
1118 stp_state = QCA8K_PORT_LOOKUP_STATE_DISABLED; in qca8k_port_stp_state_set()
1121 stp_state = QCA8K_PORT_LOOKUP_STATE_BLOCKING; in qca8k_port_stp_state_set()
1124 stp_state = QCA8K_PORT_LOOKUP_STATE_LISTENING; in qca8k_port_stp_state_set()
1127 stp_state = QCA8K_PORT_LOOKUP_STATE_LEARNING; in qca8k_port_stp_state_set()
1131 stp_state = QCA8K_PORT_LOOKUP_STATE_FORWARD; in qca8k_port_stp_state_set()
1136 QCA8K_PORT_LOOKUP_STATE_MASK, stp_state); in qca8k_port_stp_state_set()
Dmt7530.c1026 u32 stp_state; in mt7530_stp_state_set() local
1030 stp_state = MT7530_STP_DISABLED; in mt7530_stp_state_set()
1033 stp_state = MT7530_STP_BLOCKING; in mt7530_stp_state_set()
1036 stp_state = MT7530_STP_LISTENING; in mt7530_stp_state_set()
1039 stp_state = MT7530_STP_LEARNING; in mt7530_stp_state_set()
1043 stp_state = MT7530_STP_FORWARDING; in mt7530_stp_state_set()
1047 mt7530_rmw(priv, MT7530_SSP_P(port), FID_PST_MASK, stp_state); in mt7530_stp_state_set()
Dlantiq_gswip.c1307 u32 stp_state; in gswip_port_stp_state_set() local
1316 stp_state = GSWIP_PCE_PCTRL_0_PSTATE_LISTEN; in gswip_port_stp_state_set()
1319 stp_state = GSWIP_PCE_PCTRL_0_PSTATE_LEARNING; in gswip_port_stp_state_set()
1322 stp_state = GSWIP_PCE_PCTRL_0_PSTATE_FORWARDING; in gswip_port_stp_state_set()
1331 gswip_switch_mask(priv, GSWIP_PCE_PCTRL_0_PSTATE_MASK, stp_state, in gswip_port_stp_state_set()
/kernel/linux/linux-5.10/drivers/net/ethernet/rocker/
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()
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 …]
/kernel/linux/linux-5.10/net/dsa/
Dport.c61 if ((dp->stp_state == BR_STATE_LEARNING || in dsa_port_set_state()
62 dp->stp_state == BR_STATE_FORWARDING) && in dsa_port_set_state()
69 dp->stp_state = state; in dsa_port_set_state()
Dslave.c279 ret = dsa_port_set_state(dp, attr->u.stp_state, trans); in dsa_slave_port_attr_set()
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/
Dcpsw_switchdev.c109 ret = cpsw_port_stp_state_set(priv, trans, attr->u.stp_state); in cpsw_port_attr_set()
110 dev_dbg(priv->dev, "stp state: %u\n", attr->u.stp_state); in cpsw_port_attr_set()
/kernel/linux/linux-5.10/net/bridge/
Dbr_mrp_switchdev.c177 .u.stp_state = state, in br_mrp_port_switchdev_set_state()
Dbr_stp.c35 .u.stp_state = state, in br_set_state()
Dbr_sysfs_br.c138 static DEVICE_ATTR_RW(stp_state);
/kernel/linux/linux-5.10/include/net/
Dswitchdev.h56 u8 stp_state; /* PORT_STP_STATE */ member
Ddsa.h215 u8 stp_state; member
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_switchdev.c63 u8 stp_state; member
344 bridge_port->stp_state = BR_STATE_DISABLED; in mlxsw_sp_bridge_port_create()
549 bridge_port->stp_state = state; in mlxsw_sp_port_attr_stp_state_set()
557 bridge_port->stp_state); in mlxsw_sp_port_attr_stp_state_set()
908 attr->u.stp_state); in mlxsw_sp_port_attr_set()
1059 bridge_port->stp_state); in mlxsw_sp_port_vlan_bridge_join()
3450 return bridge_port->stp_state; in mlxsw_sp_bridge_port_stp_state()
Dspectrum_span.c304 u8 stp_state; in mlxsw_sp_span_entry_bridge() local
321 stp_state = mlxsw_sp_bridge_port_stp_state(bridge_port); in mlxsw_sp_span_entry_bridge()
322 spms_state = mlxsw_sp_stp_spms_state(stp_state); in mlxsw_sp_span_entry_bridge()
Dspectrum.h591 enum mlxsw_reg_spms_state mlxsw_sp_stp_spms_state(u8 stp_state);
/kernel/linux/linux-5.10/drivers/net/dsa/microchip/
Dksz8795.c700 p->stp_state == BR_STATE_DISABLED) in ksz8795_port_stp_state_set()
724 p->stp_state == BR_STATE_DISABLED) in ksz8795_port_stp_state_set()
733 p->stp_state = state; in ksz8795_port_stp_state_set()
Dksz9477.c418 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()
Dksz_common.h31 int stp_state; member
Dksz_common.c36 if (p->stp_state == BR_STATE_FORWARDING && in ksz_update_port_member()
/kernel/linux/linux-5.10/Documentation/networking/device_drivers/ethernet/ti/
Dcpsw_switchdev.rst127 ip link set dev BRDEV type bridge stp_state 1/0
/kernel/linux/linux-5.10/drivers/net/ethernet/mscc/
Docelot_net.c787 attr->u.stp_state); in ocelot_port_attr_set()
/kernel/linux/linux-5.10/drivers/net/ethernet/micrel/
Dksz884x.c1156 int stp_state; member
2814 hw->ksz_switch->port_cfg[port].stp_state = state; in port_set_stp_state()
5328 if (STP_STATE_FORWARDING == sw->port_cfg[port].stp_state) in bridge_change()

12