Lines Matching full:vlans

204 	ethsw->vlans[vid] = ETHSW_VLAN_MEMBER;  in dpaa2_switch_add_vlan()
265 port_priv->vlans[port_priv->pvid] &= ~ETHSW_VLAN_PVID; in dpaa2_switch_port_set_pvid()
266 port_priv->vlans[pvid] |= ETHSW_VLAN_PVID; in dpaa2_switch_port_set_pvid()
291 if (port_priv->vlans[vid]) { in dpaa2_switch_port_add_vlan()
309 port_priv->vlans[vid] = ETHSW_VLAN_MEMBER; in dpaa2_switch_port_add_vlan()
320 port_priv->vlans[vid] |= ETHSW_VLAN_UNTAGGED; in dpaa2_switch_port_add_vlan()
361 if (port_priv->vlans[vid] & ETHSW_VLAN_MEMBER) { in dpaa2_switch_port_set_stp_state()
384 if (!ethsw->vlans[vid]) in dpaa2_switch_dellink()
392 ethsw->vlans[vid] = 0; in dpaa2_switch_dellink()
397 ppriv_local->vlans[vid] = 0; in dpaa2_switch_dellink()
1777 if (port_priv->vlans[vlan->vid] & ETHSW_VLAN_MEMBER) { in dpaa2_switch_port_vlans_add()
1802 if (!port_priv->ethsw_data->vlans[vlan->vid]) { in dpaa2_switch_port_vlans_add()
1808 port_priv->ethsw_data->vlans[vlan->vid] |= ETHSW_VLAN_GLOBAL; in dpaa2_switch_port_vlans_add()
1883 if (!port_priv->vlans[vid]) in dpaa2_switch_port_del_vlan()
1886 if (port_priv->vlans[vid] & ETHSW_VLAN_PVID) { in dpaa2_switch_port_del_vlan()
1898 if (port_priv->vlans[vid] & ETHSW_VLAN_UNTAGGED) { in dpaa2_switch_port_del_vlan()
1907 port_priv->vlans[vid] &= ~ETHSW_VLAN_UNTAGGED; in dpaa2_switch_port_del_vlan()
1910 if (port_priv->vlans[vid] & ETHSW_VLAN_MEMBER) { in dpaa2_switch_port_del_vlan()
1918 port_priv->vlans[vid] &= ~ETHSW_VLAN_MEMBER; in dpaa2_switch_port_del_vlan()
1925 ethsw->ports[i]->vlans[vid] & ETHSW_VLAN_MEMBER) in dpaa2_switch_port_del_vlan()
1929 ethsw->vlans[vid] &= ~ETHSW_VLAN_GLOBAL; in dpaa2_switch_port_del_vlan()
2082 /* Clear all RX VLANs installed through vlan_vid_add() either as VLAN in dpaa2_switch_port_bridge_leave()
2088 netdev_err(netdev, "Unable to clear RX VLANs from old FDB table, err (%d)\n", err); in dpaa2_switch_port_bridge_leave()
2092 /* Restore all RX VLANs into the new FDB table that we just joined */ in dpaa2_switch_port_bridge_leave()
2095 netdev_err(netdev, "Unable to restore RX VLANs to the new FDB, err (%d)\n", err); in dpaa2_switch_port_bridge_leave()