Home
last modified time | relevance | path

Searched refs:port_vlan (Results 1 – 14 of 14) sorted by relevance

/openbmc/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_switchdev.c246 return port_vlan; in prestera_port_vlan_by_vid()
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()
273 port_vlan->vid = vid; in prestera_port_vlan_create()
277 return port_vlan; in prestera_port_vlan_create()
425 if (port_vlan->br_port) in prestera_port_vlan_destroy()
430 kfree(port_vlan); in prestera_port_vlan_destroy()
1417 if (port_vlan && port_vlan->br_port != br_port) in prestera_bridge_port_vlan_add()
[all …]
/openbmc/linux/tools/testing/selftests/net/forwarding/
H A Dbridge_mdb_max.sh470 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 …]
/openbmc/linux/drivers/net/ethernet/ti/
H A Dcpsw_new.c133 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()
596 slave_write(slave, slave->port_vlan, reg); 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()
645 slave_write(slave, slave->port_vlan, reg); in cpsw_port_add_switch_def_ale_entries()
994 vid = cpsw->slaves[slave_no].port_vlan; in cpsw_ndo_set_mac_address()
1037 vid == cpsw->slaves[i].port_vlan) { in cpsw_ndo_vlan_rx_kill_vid()
1676 slave->port_vlan = vlan; in cpsw_dl_switch_mode_set()
[all …]
H A Dcpsw.c187 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()
H A Dam65-cpsw-nuss.h39 int port_vlan; member
H A Dnetcp_ethss.c255 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
3056 GBE_SET_REG_OFS(slave, port_regs, port_vlan); in init_slave()
3073 GBENU_SET_REG_OFS(slave, port_regs, port_vlan); in init_slave()
[all …]
H A Dcpsw_priv.h276 u32 port_vlan; member
312 u32 port_vlan; member
H A Dcpsw_switchdev.c132 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()
H A Dam65-cpsw-nuss.c2471 writel(slave->port_vlan, port->port_base + AM65_CPSW_PORT_VLAN_REG_OFFSET); in am65_cpsw_init_port_emac_ale()
2483 HOST_PORT_NUM, ALE_SECURE, slave->port_vlan); in am65_cpsw_init_port_emac_ale()
2485 port_mask, ALE_VLAN, slave->port_vlan, ALE_MCAST_FWD_2); in am65_cpsw_init_port_emac_ale()
2499 slave->port_vlan); in am65_cpsw_init_port_switch_ale()
2504 port_mask, ALE_VLAN, slave->port_vlan, in am65_cpsw_init_port_switch_ale()
2507 writel(slave->port_vlan, port->port_base + AM65_CPSW_PORT_VLAN_REG_OFFSET); in am65_cpsw_init_port_switch_ale()
2559 slave->port_vlan = cpsw->default_vlan; in am65_cpsw_dl_switch_mode_set()
2561 slave->port_vlan = 0; in am65_cpsw_dl_switch_mode_set()
2587 slave->port_vlan = cpsw->default_vlan; in am65_cpsw_dl_switch_mode_set()
2606 port->slave.port_vlan = 0; in am65_cpsw_dl_switch_mode_set()
H A Dcpsw_priv.c493 slave->port_vlan = slave->data->dual_emac_res_vlan; in cpsw_init_common()
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_eswitch_br.c612 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()
/openbmc/linux/drivers/net/ethernet/hisilicon/hns/
H A Dhns_dsaf_main.h376 u16 port_vlan; member
H A Dhns_dsaf_main.c1600 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()
/openbmc/u-boot/drivers/net/ti/
H A Dcpsw.c93 u32 port_vlan; member
110 u32 port_vlan; member