/linux-master/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | bridge_priv.h | 125 u16 vid; member in struct:mlx5_esw_bridge_fdb_key 130 u16 vid; member in struct:mlx5_esw_bridge_mdb_key 171 u16 vid; member in struct:mlx5_esw_bridge_vlan 239 const unsigned char *addr, u16 vid); 241 const unsigned char *addr, u16 vid);
|
H A D | bridge.c | 24 mlx5_esw_bridge_fdb_offload_notify(struct net_device *dev, const unsigned char *addr, u16 vid, argument 30 send_info.vid = vid; 40 entry->key.vid, 625 vlan->vid); 789 vlan->vid); 977 entry->key.vid, 1015 mlx5_esw_bridge_vlan_lookup(u16 vid, struct mlx5_esw_bridge_port *port) argument 1017 return xa_load(&port->vlans, vid); 1027 } vlan_hdr = { htons(vlan_proto), htons(vlan->vid) }; 1172 mlx5_esw_bridge_vlan_create(u16 vlan_proto, u16 vid, u16 flags, struct mlx5_esw_bridge_port *port, struct mlx5_eswitch *esw) argument 1303 mlx5_esw_bridge_port_vlan_lookup(u16 vid, u16 vport_num, u16 esw_owner_vhca_id, struct mlx5_esw_bridge *bridge, struct mlx5_eswitch *esw) argument 1332 mlx5_esw_bridge_fdb_lookup(struct mlx5_esw_bridge *bridge, const unsigned char *addr, u16 vid) argument 1343 mlx5_esw_bridge_fdb_entry_init(struct net_device *dev, u16 vport_num, u16 esw_owner_vhca_id, const unsigned char *addr, u16 vid, bool added_by_user, bool peer, struct mlx5_eswitch *esw, struct mlx5_esw_bridge *bridge) argument 1686 mlx5_esw_bridge_port_vlan_add(u16 vport_num, u16 esw_owner_vhca_id, u16 vid, u16 flags, struct mlx5_esw_bridge_offloads *br_offloads, struct netlink_ext_ack *extack) argument 1713 mlx5_esw_bridge_port_vlan_del(u16 vport_num, u16 esw_owner_vhca_id, u16 vid, struct mlx5_esw_bridge_offloads *br_offloads) argument 1848 mlx5_esw_bridge_port_mdb_add(struct net_device *dev, u16 vport_num, u16 esw_owner_vhca_id, const unsigned char *addr, u16 vid, struct mlx5_esw_bridge_offloads *br_offloads, struct netlink_ext_ack *extack) argument 1893 mlx5_esw_bridge_port_mdb_del(struct net_device *dev, u16 vport_num, u16 esw_owner_vhca_id, const unsigned char *addr, u16 vid, struct mlx5_esw_bridge_offloads *br_offloads) argument [all...] |
H A D | bridge_mcast.c | 93 if (entry->key.vid) { 108 entry->key.vid); 138 const unsigned char *addr, u16 vid) 143 key.vid = vid; 149 const unsigned char *addr, u16 vid) 160 entry->key.vid = vid; 188 const unsigned char *addr, u16 vid) 197 entry = mlx5_esw_bridge_mdb_lookup(bridge, addr, vid); 137 mlx5_esw_bridge_mdb_lookup(struct mlx5_esw_bridge *bridge, const unsigned char *addr, u16 vid) argument 148 mlx5_esw_bridge_port_mdb_entry_init(struct mlx5_esw_bridge_port *port, const unsigned char *addr, u16 vid) argument 187 mlx5_esw_bridge_port_mdb_attach(struct net_device *dev, struct mlx5_esw_bridge_port *port, const unsigned char *addr, u16 vid) argument 257 mlx5_esw_bridge_port_mdb_detach(struct net_device *dev, struct mlx5_esw_bridge_port *port, const unsigned char *addr, u16 vid) argument [all...] |
/linux-master/drivers/net/dsa/b53/ |
H A D | b53_common.c | 246 static void b53_set_vlan_entry(struct b53_device *dev, u16 vid, argument 256 entry |= VA_VALID_25_R4 | vid << VA_VID_HIGH_S; 262 b53_write16(dev, B53_VLAN_PAGE, B53_VLAN_TABLE_ACCESS_25, vid | 272 b53_write16(dev, B53_VLAN_PAGE, B53_VLAN_TABLE_ACCESS_65, vid | 275 b53_write16(dev, B53_ARLIO_PAGE, dev->vta_regs[1], vid); 283 vid, vlan->members, vlan->untag); 286 static void b53_get_vlan_entry(struct b53_device *dev, u16 vid, argument 292 b53_write16(dev, B53_VLAN_PAGE, B53_VLAN_TABLE_ACCESS_25, vid | 306 b53_write16(dev, B53_VLAN_PAGE, B53_VLAN_TABLE_ACCESS_65, vid | 316 b53_write16(dev, B53_ARLIO_PAGE, dev->vta_regs[1], vid); 491 b53_fast_age_vlan(struct b53_device *dev, u16 vid) argument 757 u16 vid; local 1626 b53_arl_read(struct b53_device *dev, u64 mac, u16 vid, struct b53_arl_entry *ent, u8 *idx) argument 1667 b53_arl_op(struct b53_device *dev, int op, int port, const unsigned char *addr, u16 vid, bool is_valid) argument 1742 b53_fdb_add(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 1763 b53_fdb_del(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument [all...] |
/linux-master/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_main.c | 599 u16 vid = 0; local 611 err = hinic_port_del_mac(nic_dev, netdev->dev_addr, vid); 618 err = hinic_port_add_mac(nic_dev, addr, vid); 624 vid = find_next_bit(nic_dev->vlan_bitmap, VLAN_N_VID, vid + 1); 625 } while (vid != VLAN_N_VID); 656 u16 vid = 0; local 665 err = hinic_port_add_mac(nic_dev, addr, vid); 671 vid = find_next_bit(nic_dev->vlan_bitmap, VLAN_N_VID, vid 688 u16 vid = 0; local 714 hinic_vlan_rx_add_vid(struct net_device *netdev, __always_unused __be16 proto, u16 vid) argument 752 hinic_vlan_rx_kill_vid(struct net_device *netdev, __always_unused __be16 proto, u16 vid) argument [all...] |
/linux-master/net/bridge/ |
H A D | br_mdb.c | 73 u16 vid = brmctx->vlan ? brmctx->vlan->vid : 0; local 89 if (vid) { 92 v = br_vlan_find(nbp_vlan_group(p), vid); 121 (vid && nla_put_u16(skb, MDBA_ROUTER_PATTR_VID, vid))) { 153 ip->vid = entry->vid; 253 e.vid = mp->addr.vid; 547 nlmsg_populate_rtr_fill(struct sk_buff *skb, struct net_device *dev, int ifindex, u16 vid, u32 pid, u32 seq, int type, unsigned int flags) argument 606 u16 vid; local 1417 u16 vid; member in struct:br_mdb_flush_desc [all...] |
H A D | br_device.c | 39 u16 vid = 0; local 60 if (!br_allowed_ingress(br, br_vlan_group_rcu(br), skb, &vid, 68 br_do_proxy_suppress_arp(skb, br, vid, NULL); 79 br_do_suppress_nd(skb, br, vid, NULL, msg); 84 br_flood(br, skb, BR_PKT_BROADCAST, false, true, vid); 87 br_flood(br, skb, BR_PKT_MULTICAST, false, true, vid); 90 if (br_multicast_rcv(&brmctx, &pmctx_null, vlan, skb, vid)) { 95 mdst = br_mdb_entry_skb_get(brmctx, skb, vid); 100 br_flood(br, skb, BR_PKT_MULTICAST, false, true, vid); 101 } else if ((dst = br_fdb_find_rcu(br, dest, vid)) ! [all...] |
/linux-master/include/trace/events/ |
H A D | afs.h | 662 __entry->fid.vid = 0; 670 __entry->fid.vid, 696 __entry->fid.vid = 0; 704 __entry->fid.vid, 731 __entry->fid.vid = 0; 741 __entry->fid.vid, 770 __entry->fid.vid = 0; 782 __entry->fid.vid, 956 __entry->dfid.vid, __entry->dfid.vnode, __entry->dfid.unique, 1069 __entry->fid.vid, __entr [all...] |
/linux-master/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_iov.c | 43 u32 vid; local 53 err = fm10k_tlv_attr_get_u32(result, &vid); 57 set = !(vid & FM10K_VLAN_CLEAR); 58 vid &= ~FM10K_VLAN_CLEAR; 67 * SW vid when assigned. 70 if (vid >> 16) { 77 err = fm10k_iov_select_vid(vf_info, (u16)vid); 81 vid = err; 85 err = hw->mac.ops.update_vlan(hw, vid, vf_info->vsi, set); 590 int fm10k_ndo_set_vf_vlan(struct net_device *netdev, int vf_idx, u16 vid, argument [all...] |
/linux-master/drivers/vdpa/mlx5/net/ |
H A D | debug.c | 100 u16 vid; local 105 vid = key2vid(node->macvlan); 106 snprintf(vidstr, sizeof(vidstr), "0x%x", vid);
|
/linux-master/arch/sh/drivers/pci/ |
H A D | common.c | 53 u16 vid; local 64 pci_devfn, PCI_VENDOR_ID, &vid); 67 if (PCI_POSSIBLE_ERROR(vid))
|
/linux-master/drivers/net/dsa/sja1105/ |
H A D | sja1105_main.c | 72 static int sja1105_is_vlan_configured(struct sja1105_private *priv, u16 vid) argument 81 if (vlan[i].vlanid == vid) 1519 const u8 *addr, u16 vid, 1540 l2_lookup.vlanid == vid) { 1551 const unsigned char *addr, u16 vid) 1560 bin = sja1105et_fdb_hash(priv, addr, vid); 1562 way = sja1105et_is_fdb_entry_in_bin(priv, bin, addr, vid, 1580 l2_lookup.vlanid = vid; 1621 if (tmp.macaddr != ether_addr_to_u64(addr) || tmp.vlanid != vid) 1636 const unsigned char *addr, u16 vid) 1518 sja1105et_is_fdb_entry_in_bin(struct sja1105_private *priv, int bin, const u8 *addr, u16 vid, struct sja1105_l2_lookup_entry *match, int *last_unused) argument 1550 sja1105et_fdb_add(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid) argument 1635 sja1105et_fdb_del(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid) argument 1670 sja1105pqrs_fdb_add(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid) argument 1761 sja1105pqrs_fdb_del(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid) argument 1798 sja1105_fdb_add(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 1825 __sja1105_fdb_del(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 1847 sja1105_fdb_del(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 2483 sja1105_vlan_add(struct sja1105_private *priv, int port, u16 vid, u16 flags, bool allowed_ingress) argument 2521 sja1105_vlan_del(struct sja1105_private *priv, int port, u16 vid) argument 2609 sja1105_dsa_8021q_vlan_add(struct dsa_switch *ds, int port, u16 vid, u16 flags) argument 2632 sja1105_dsa_8021q_vlan_del(struct dsa_switch *ds, int port, u16 vid) argument [all...] |
/linux-master/drivers/scsi/qedf/ |
H A D | qedf_fip.c | 84 u16 vid = 0; local 96 vid = ntohs(((struct fip_vlan_desc *)desc)->fd_vlan); 110 "vid=0x%x.\n", vid); 112 if (vid > 0 && qedf->vlan_id != vid) { 113 qedf_set_vlan_id(qedf, vid);
|
/linux-master/drivers/net/dsa/microchip/ |
H A D | ksz9477.c | 248 static int ksz9477_get_vlan_table(struct ksz_device *dev, u16 vid, argument 255 ksz_write16(dev, REG_SW_VLAN_ENTRY_INDEX__2, vid & VLAN_INDEX_M); 277 static int ksz9477_set_vlan_table(struct ksz_device *dev, u16 vid, argument 288 ksz_write16(dev, REG_SW_VLAN_ENTRY_INDEX__2, vid & VLAN_INDEX_M); 301 dev->vlan_cache[vid].table[0] = vlan_table[0]; 302 dev->vlan_cache[vid].table[1] = vlan_table[1]; 303 dev->vlan_cache[vid].table[2] = vlan_table[2]; 588 err = ksz9477_get_vlan_table(dev, vlan->vid, vlan_table); 594 vlan_table[0] = VLAN_VALID | (vlan->vid & VLAN_FID_M); 603 err = ksz9477_set_vlan_table(dev, vlan->vid, vlan_tabl 649 ksz9477_fdb_add(struct ksz_device *dev, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 705 ksz9477_fdb_del(struct ksz_device *dev, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument [all...] |
H A D | ksz8.h | 32 u16 vid, struct dsa_db db); 34 u16 vid, struct dsa_db db);
|
/linux-master/net/batman-adv/ |
H A D | distributed-arp-table.h | 38 unsigned short vid); 137 unsigned short vid) 135 batadv_dat_snoop_outgoing_dhcp_ack(struct batadv_priv *bat_priv, struct sk_buff *skb, __be16 proto, unsigned short vid) argument
|
H A D | originator.h | 63 unsigned short vid); 66 unsigned short vid);
|
/linux-master/tools/testing/selftests/net/forwarding/ |
H A D | mirror_lib.sh | 116 local vid=$1; shift 125 vlan_capture_install $dev "skip_hw vlan_id $vid vlan_ethtype $ul_proto"
|
/linux-master/drivers/clk/meson/ |
H A D | Makefile | 14 obj-$(CONFIG_COMMON_CLK_MESON_VID_PLL_DIV) += vid-pll-div.o
|
/linux-master/drivers/net/ethernet/wangxun/libwx/ |
H A D | wx_hw.h | 42 int wx_vlan_rx_add_vid(struct net_device *netdev, __be16 proto, u16 vid); 43 int wx_vlan_rx_kill_vid(struct net_device *netdev, __be16 proto, u16 vid);
|
/linux-master/drivers/perf/ |
H A D | cxl_pmu.c | 84 u16 vid; member in struct:cxl_pmu_ev_cap 175 pmu_ev->vid = FIELD_GET(CXL_PMU_EVENT_CAP_VENDOR_ID_MSK, eval); 200 pmu_ev->vid = FIELD_GET(CXL_PMU_EVENT_CAP_VENDOR_ID_MSK, eval); 244 [cxl_pmu_vid_attr] = CXL_PMU_FORMAT_ATTR(vid, "config:48-63"), 438 int vid, int gid, int msk) 443 if (vid != pmu_ev->vid || gid != pmu_ev->gid) 455 int vid, int gid, int msk) 460 if (vid != pmu_ev->vid || gi 437 cxl_pmu_find_fixed_counter_ev_cap(struct cxl_pmu_info *info, int vid, int gid, int msk) argument 454 cxl_pmu_find_config_counter_ev_cap(struct cxl_pmu_info *info, int vid, int gid, int msk) argument 480 int vid = FIELD_GET(CXL_PMU_ATTR_CONFIG_VID_MSK, pmu_attr->id); local 532 u16 gid, vid; local [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_fs.c | 221 u16 vid, struct mlx5_flow_spec *spec) 257 rule_p = &fs->vlan->active_svlans_rule[vid]; 264 vid); 267 rule_p = &fs->vlan->active_cvlans_rule[vid]; 274 vid); 293 enum mlx5e_vlan_rule_type rule_type, u16 vid) 305 err = __mlx5e_add_vlan_rule(fs, rule_type, vid, spec); 313 enum mlx5e_vlan_rule_type rule_type, u16 vid) 335 if (fs->vlan->active_svlans_rule[vid]) { 336 mlx5_del_flow_rules(fs->vlan->active_svlans_rule[vid]); 219 __mlx5e_add_vlan_rule(struct mlx5e_flow_steering *fs, enum mlx5e_vlan_rule_type rule_type, u16 vid, struct mlx5_flow_spec *spec) argument 292 mlx5e_add_vlan_rule(struct mlx5e_flow_steering *fs, enum mlx5e_vlan_rule_type rule_type, u16 vid) argument 312 mlx5e_fs_del_vlan_rule(struct mlx5e_flow_steering *fs, enum mlx5e_vlan_rule_type rule_type, u16 vid) argument 460 mlx5e_vlan_rx_add_cvid(struct mlx5e_flow_steering *fs, u16 vid) argument 473 mlx5e_vlan_rx_add_svid(struct mlx5e_flow_steering *fs, struct net_device *netdev, u16 vid) argument 491 mlx5e_fs_vlan_rx_add_vid(struct mlx5e_flow_steering *fs, struct net_device *netdev, __be16 proto, u16 vid) argument 509 mlx5e_fs_vlan_rx_kill_vid(struct mlx5e_flow_steering *fs, struct net_device *netdev, __be16 proto, u16 vid) argument [all...] |
/linux-master/drivers/net/ethernet/mscc/ |
H A D | ocelot_net.c | 492 static int ocelot_vlan_vid_add(struct net_device *dev, u16 vid, bool pvid, argument 501 ret = ocelot_vlan_add(ocelot, port, vid, pvid, untagged); 506 ocelot_mact_learn(ocelot, PGID_CPU, dev->dev_addr, vid, 512 static int ocelot_vlan_vid_del(struct net_device *dev, u16 vid) argument 523 if (vid == OCELOT_STANDALONE_PVID) 526 ret = ocelot_vlan_del(ocelot, port, vid); 531 ocelot_mact_forget(ocelot, dev->dev_addr, vid); 605 u16 vid; member in struct:ocelot_mact_work_ctx::__anon1422::__anon1423 612 u16 vid; member in struct:ocelot_mact_work_ctx::__anon1422::__anon1424 628 w->learn.vid, 730 ocelot_port_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], struct net_device *dev, const unsigned char *addr, u16 vid, u16 flags, struct netlink_ext_ack *extack) argument 744 ocelot_port_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], struct net_device *dev, const unsigned char *addr, u16 vid, struct netlink_ext_ack *extack) argument 757 ocelot_port_fdb_do_dump(const unsigned char *addr, u16 vid, bool is_static, void *data) argument 823 ocelot_vlan_rx_add_vid(struct net_device *dev, __be16 proto, u16 vid) argument 829 ocelot_vlan_rx_kill_vid(struct net_device *dev, __be16 proto, u16 vid) argument 1074 ocelot_vlan_vid_prepare(struct net_device *dev, u16 vid, bool pvid, bool untagged, struct netlink_ext_ack *extack) argument [all...] |
/linux-master/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | vxlan.sh | 734 local vid=$1; shift 763 if [[ ! -z $vid ]]; then 765 bridge vlan del dev vxlan0 vid $vid 771 bridge vlan add dev vxlan0 vid $vid 777 bridge vlan add dev vxlan0 vid $vid pvid untagged 867 bridge vlan add vid 10 dev vxlan10 pvid untagged 868 bridge vlan add vid 2 [all...] |
/linux-master/drivers/net/dsa/hirschmann/ |
H A D | hellcreek.c | 150 static void hellcreek_select_vlan(struct hellcreek *hellcreek, int vid, argument 161 val |= vid << HR_VIDCFG_VID_SHIFT; 371 if (vlan->vid == restricted_vid) { 406 static void hellcreek_apply_vlan(struct hellcreek *hellcreek, int port, u16 vid, argument 412 dev_dbg(hellcreek->dev, "Apply VLAN: port=%d vid=%u pvid=%d untagged=%d", 413 port, vid, pvid, untagged); 418 hellcreek_select_vlan(hellcreek, vid, pvid); 422 val = hellcreek->vidmbrcfg[vid]; 430 hellcreek->vidmbrcfg[vid] = val; 436 u16 vid) 435 hellcreek_unapply_vlan(struct hellcreek *hellcreek, int port, u16 vid) argument 591 const u16 vid = hellcreek_private_vid(port); local 839 hellcreek_fdb_add(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 885 hellcreek_fdb_del(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 1500 u16 vid; local [all...] |