/linux-6.12.1/drivers/net/ethernet/marvell/prestera/ |
D | prestera_switchdev.c | 242 struct prestera_port_vlan *port_vlan; in prestera_port_vlan_by_vid() local 244 list_for_each_entry(port_vlan, &port->vlans_list, port_head) { in prestera_port_vlan_by_vid() 245 if (port_vlan->vid == vid) in prestera_port_vlan_by_vid() 246 return port_vlan; in prestera_port_vlan_by_vid() 255 struct prestera_port_vlan *port_vlan; in prestera_port_vlan_create() local 258 port_vlan = prestera_port_vlan_by_vid(port, vid); in prestera_port_vlan_create() 259 if (port_vlan) in prestera_port_vlan_create() 266 port_vlan = kzalloc(sizeof(*port_vlan), GFP_KERNEL); in prestera_port_vlan_create() 267 if (!port_vlan) { in prestera_port_vlan_create() 272 port_vlan->port = port; in prestera_port_vlan_create() [all …]
|
/linux-6.12.1/tools/testing/selftests/net/forwarding/ |
D | bridge_mdb_max.sh | 470 test_ngroups_reporting cfg4 port_vlan "dev $swp1 vid 10" 475 test_ngroups_reporting ctl4 port_vlan "dev $swp1 vid 10" 480 test_ngroups_reporting cfg6 port_vlan "dev $swp1 vid 10" 485 test_ngroups_reporting ctl6 port_vlan "dev $swp1 vid 10" 630 test_maxgroups_zero cfg4 port_vlan "dev $swp1 vid 10" 635 test_maxgroups_zero ctl4 port_vlan "dev $swp1 vid 10" 640 test_maxgroups_zero cfg6 port_vlan "dev $swp1 vid 10" 645 test_maxgroups_zero ctl6 port_vlan "dev $swp1 vid 10" 826 test_maxgroups_too_low cfg4 port_vlan "dev $swp1 vid 10" 831 test_maxgroups_too_low ctl4 port_vlan "dev $swp1 vid 10" [all …]
|
/linux-6.12.1/drivers/net/ethernet/ti/ |
D | cpsw_new.c | 133 vid = cpsw->slaves[slave_no].port_vlan; in cpsw_set_mc() 463 vid == cpsw->slaves[i].port_vlan) { in cpsw_ndo_vlan_rx_add_vid() 519 writel(vlan, &cpsw->host_port_regs->port_vlan); in cpsw_init_host_port_switch() 541 writel(vlan, &cpsw->host_port_regs->port_vlan); in cpsw_init_host_port_dual_mac() 596 slave_write(slave, slave->port_vlan, reg); in cpsw_port_add_dual_emac_def_ale_entries() 598 cpsw_ale_add_vlan(cpsw->ale, slave->port_vlan, port_mask, in cpsw_port_add_dual_emac_def_ale_entries() 601 ALE_PORT_HOST, ALE_VLAN, slave->port_vlan, in cpsw_port_add_dual_emac_def_ale_entries() 605 ALE_SECURE, slave->port_vlan); in cpsw_port_add_dual_emac_def_ale_entries() 638 port_mask, ALE_VLAN, slave->port_vlan, in cpsw_port_add_switch_def_ale_entries() 641 HOST_PORT_NUM, ALE_VLAN, slave->port_vlan); in cpsw_port_add_switch_def_ale_entries() [all …]
|
D | cpsw.c | 187 vid = cpsw->slaves[priv->emac_port].port_vlan; in cpsw_set_mc() 548 slave_write(slave, slave->port_vlan, CPSW1_PORT_VLAN); in cpsw_add_dual_emac_def_ale_entries() 550 slave_write(slave, slave->port_vlan, CPSW2_PORT_VLAN); in cpsw_add_dual_emac_def_ale_entries() 551 cpsw_ale_add_vlan(cpsw->ale, slave->port_vlan, port_mask, in cpsw_add_dual_emac_def_ale_entries() 554 ALE_PORT_HOST, ALE_VLAN, slave->port_vlan, 0); in cpsw_add_dual_emac_def_ale_entries() 557 ALE_SECURE, slave->port_vlan); in cpsw_add_dual_emac_def_ale_entries() 662 writel(vlan, &cpsw->host_port_regs->port_vlan); in cpsw_add_default_vlan() 978 vid = cpsw->slaves[priv->emac_port].port_vlan; in cpsw_ndo_set_mac_address() 1067 if (vid == cpsw->slaves[i].port_vlan) { in cpsw_ndo_vlan_rx_add_vid() 1099 if (vid == cpsw->slaves[i].port_vlan) in cpsw_ndo_vlan_rx_kill_vid()
|
D | netcp_ethss.c | 255 u32 port_vlan; member 269 u32 port_vlan; member 395 u32 port_vlan; member 423 u32 port_vlan; member 582 u32 port_vlan; member 594 u16 port_vlan; member 609 u32 port_vlan; member 615 u16 port_vlan; member 3051 GBE_SET_REG_OFS(slave, port_regs, port_vlan); in init_slave() 3068 GBENU_SET_REG_OFS(slave, port_regs, port_vlan); in init_slave() [all …]
|
D | am65-cpsw-nuss.h | 38 int port_vlan; member
|
D | cpsw_switchdev.c | 132 port_vlan_reg = &cpsw->host_port_regs->port_vlan; in cpsw_get_pvid() 160 port_vlan_reg = &cpsw->host_port_regs->port_vlan; in cpsw_set_pvid()
|
D | cpsw_priv.h | 276 u32 port_vlan; member 312 u32 port_vlan; member
|
D | am65-cpsw-nuss.c | 3066 writel(slave->port_vlan, port->port_base + AM65_CPSW_PORT_VLAN_REG_OFFSET); in am65_cpsw_init_port_emac_ale() 3078 HOST_PORT_NUM, ALE_SECURE, slave->port_vlan); in am65_cpsw_init_port_emac_ale() 3080 port_mask, ALE_VLAN, slave->port_vlan, ALE_MCAST_FWD_2); in am65_cpsw_init_port_emac_ale() 3094 slave->port_vlan); in am65_cpsw_init_port_switch_ale() 3099 port_mask, ALE_VLAN, slave->port_vlan, in am65_cpsw_init_port_switch_ale() 3102 writel(slave->port_vlan, port->port_base + AM65_CPSW_PORT_VLAN_REG_OFFSET); in am65_cpsw_init_port_switch_ale() 3155 slave->port_vlan = cpsw->default_vlan; in am65_cpsw_dl_switch_mode_set() 3157 slave->port_vlan = 0; in am65_cpsw_dl_switch_mode_set() 3183 slave->port_vlan = cpsw->default_vlan; in am65_cpsw_dl_switch_mode_set() 3202 port->slave.port_vlan = 0; in am65_cpsw_dl_switch_mode_set()
|
D | cpsw_priv.c | 493 slave->port_vlan = slave->data->dual_emac_res_vlan; in cpsw_init_common()
|
/linux-6.12.1/drivers/net/ethernet/ti/icssg/ |
D | icssg_prueth.c | 515 icssg_vtbl_modify(emac, emac->port_vlan, BIT(emac->port_id), in icssg_prueth_hsr_add_mcast() 1072 icssg_vtbl_modify(emac, emac->port_vlan | DEFAULT_VID, in icssg_change_mode() 1080 icssg_set_pvid(prueth, emac->port_vlan, emac->port_id); in icssg_change_mode() 1119 emac->port_vlan = prueth->default_vlan; in prueth_netdevice_port_link() 1138 emac->port_vlan = 0; in prueth_netdevice_port_unlink() 1172 emac0->port_vlan = prueth->default_vlan; in prueth_hsr_port_link() 1173 emac1->port_vlan = prueth->default_vlan; in prueth_hsr_port_link() 1195 emac0->port_vlan = 0; in prueth_hsr_port_unlink() 1196 emac1->port_vlan = 0; in prueth_hsr_port_unlink()
|
D | icssg_prueth.h | 195 int port_vlan; member
|
/linux-6.12.1/drivers/net/ethernet/intel/ice/ |
D | ice_eswitch_br.c | 612 struct ice_vlan port_vlan = ICE_VLAN(ETH_P_8021Q, port->pvid, 0); in ice_eswitch_br_clear_pvid() local 617 vlan_ops->del_vlan(port->vsi, &port_vlan); in ice_eswitch_br_clear_pvid() 658 struct ice_vlan port_vlan = ICE_VLAN(ETH_P_8021Q, vlan->vid, 0); in ice_eswitch_br_set_pvid() local 680 err = vlan_ops->set_port_vlan(port->vsi, &port_vlan); in ice_eswitch_br_set_pvid() 684 err = vlan_ops->add_vlan(port->vsi, &port_vlan); in ice_eswitch_br_set_pvid()
|
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns/ |
D | hns_dsaf_main.h | 376 u16 port_vlan; member
|
D | hns_dsaf_main.c | 1600 mac_key->low.bits.port_vlan = 0; in hns_dsaf_set_mac_key() 1601 dsaf_set_field(mac_key->low.bits.port_vlan, DSAF_TBL_TCAM_KEY_VLAN_M, in hns_dsaf_set_mac_key() 1603 dsaf_set_field(mac_key->low.bits.port_vlan, DSAF_TBL_TCAM_KEY_PORT_M, in hns_dsaf_set_mac_key() 2037 soft_mac_entry->tcam_key.low.bits.port_vlan, in hns_dsaf_clr_mac_mc_port() 2053 soft_mac_entry->tcam_key.low.bits.port_vlan, in hns_dsaf_clr_mac_mc_port()
|