/linux/net/8021q/ |
H A D | vlan.h | 14 #define VLAN_GROUP_ARRAY_PART_LEN (VLAN_N_VID/VLAN_GROUP_ARRAY_SPLIT_PARTS) 120 for ((i) = 0; i < VLAN_PROTO_NUM * VLAN_N_VID; i++) \ 121 if (((dev) = __vlan_group_get_device((grp), (i) / VLAN_N_VID, \ 122 (i) % VLAN_N_VID)))
|
/linux/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_netdev.c | 759 bool set = !!(vid / VLAN_N_VID); in fm10k_uc_vlan_unsync() 763 vid &= VLAN_N_VID - 1; in fm10k_uc_vlan_unsync() 779 bool set = !!(vid / VLAN_N_VID); in fm10k_mc_vlan_unsync() 783 vid &= VLAN_N_VID - 1; in fm10k_mc_vlan_unsync() 806 if (vid >= VLAN_N_VID) in fm10k_update_vid() 825 u16 rx_vid = rx_ring->vid & (VLAN_N_VID - 1); in fm10k_update_vid() 883 interface->vid = vid + (set ? VLAN_N_VID : 0); in fm10k_update_vid() 913 u16 vid_limit = vid < default_vid ? default_vid : VLAN_N_VID; in fm10k_find_next_vlan() 926 prev_vid < VLAN_N_VID; in fm10k_clear_unused_vlans() 948 vid < VLAN_N_VID; in __fm10k_uc_sync() [all …]
|
/linux/net/bridge/ |
H A D | br_mst.c | 238 DECLARE_BITMAP(seen, VLAN_N_VID) = { 0 }; in br_mst_info_size() 265 DECLARE_BITMAP(seen, VLAN_N_VID) = { 0 }; in br_mst_fill_info() 292 VLAN_N_VID - 1),
|
/linux/include/linux/dsa/ |
H A D | mv88e6xxx.h | 11 #define MV88E6XXX_VID_BRIDGED (VLAN_N_VID - 1)
|
H A D | loop.h | 37 struct dsa_loop_vlan vlans[VLAN_N_VID];
|
H A D | sja1105.h | 19 #define SJA1105_DEFAULT_VLAN (VLAN_N_VID - 1)
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_fs.c | 149 DECLARE_BITMAP(active_cvlans, VLAN_N_VID); 150 DECLARE_BITMAP(active_svlans, VLAN_N_VID); 151 struct mlx5_flow_handle *active_cvlans_rule[VLAN_N_VID]; 152 struct mlx5_flow_handle *active_svlans_rule[VLAN_N_VID]; 180 for_each_set_bit(vlan, fs->vlan->active_cvlans, VLAN_N_VID) in mlx5e_vport_context_update_vlans() 196 for_each_set_bit(vlan, fs->vlan->active_cvlans, VLAN_N_VID) { in mlx5e_vport_context_update_vlans() 536 for_each_set_bit(i, fs->vlan->active_cvlans, VLAN_N_VID) { in mlx5e_fs_add_vlan_rules() 540 for_each_set_bit(i, fs->vlan->active_svlans, VLAN_N_VID) in mlx5e_fs_add_vlan_rules() 553 for_each_set_bit(i, fs->vlan->active_cvlans, VLAN_N_VID) { in mlx5e_del_vlan_rules() 557 for_each_set_bit(i, fs->vlan->active_svlans, VLAN_N_VID) in mlx5e_del_vlan_rules()
|
/linux/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_filters.c | 382 VLAN_N_VID, in aq_fvlan_rebuild() 384 if (vlan == VLAN_N_VID) { in aq_fvlan_rebuild() 397 } while (vlan_busy && vlan != VLAN_N_VID); in aq_fvlan_rebuild() 839 hweight = bitmap_weight(aq_nic->active_vlans, VLAN_N_VID); in aq_filters_vlans_update() 872 bitmap_zero(aq_nic->active_vlans, VLAN_N_VID); in aq_filters_vlan_offload_off()
|
H A D | aq_nic.h | 151 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
|
/linux/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_main.c | 626 vid = find_next_bit(nic_dev->vlan_bitmap, VLAN_N_VID, vid + 1); in change_mac_addr() 627 } while (vid != VLAN_N_VID); in change_mac_addr() 673 vid = find_next_bit(nic_dev->vlan_bitmap, VLAN_N_VID, vid + 1); in add_mac_addr() 674 } while (vid != VLAN_N_VID); in add_mac_addr() 709 vid = find_next_bit(nic_dev->vlan_bitmap, VLAN_N_VID, vid + 1); in remove_mac_addr() 710 } while (vid != VLAN_N_VID); in remove_mac_addr() 1225 nic_dev->vlan_bitmap = devm_bitmap_zalloc(&pdev->dev, VLAN_N_VID, in nic_dev_init()
|
H A D | hinic_sriov.c | 545 if ((vlan_id & HINIC_VLAN_ID_MASK) >= VLAN_N_VID) { in hinic_update_mac() 709 if (!nic_dev || old_vlan >= VLAN_N_VID || new_vlan >= VLAN_N_VID) in hinic_update_mac_vlan() 796 if (vf >= sriov_info->num_vfs || vlan >= VLAN_N_VID || qos > HINIC_MAX_QOS) in hinic_ndo_set_vf_vlan()
|
/linux/net/bridge/netfilter/ |
H A D | ebt_vlan.c | 114 if (info->id > VLAN_N_VID) { in ebt_vlan_mt_check()
|
/linux/drivers/net/dsa/xrs700x/ |
H A D | xrs700x_mdio.c | 101 .max_register = XRS_VLAN(VLAN_N_VID - 1),
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_xdp_vlan.c | 43 #define VLAN_N_VID 4096 macro
|
/linux/drivers/infiniband/hw/hns/ |
H A D | hns_roce_ah.c | 111 ah->av.vlan_en = ah->av.vlan_id < VLAN_N_VID; in hns_roce_create_ah()
|
/linux/drivers/net/ethernet/intel/igbvf/ |
H A D | igbvf.h | 164 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
H A D | hclgevf_main.h | 257 unsigned long vlan_del_fail_bmap[BITS_TO_LONGS(VLAN_N_VID)];
|
/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_main.h | 286 u16 vlan_mask[VLAN_N_VID]; 287 DECLARE_BITMAP(cpu_vlan_mask, VLAN_N_VID);
|
H A D | lan966x_vlan.c | 293 for (vid = 1; vid < VLAN_N_VID; vid++) { in lan966x_vlan_init()
|
/linux/drivers/net/ethernet/intel/e1000/ |
H A D | e1000.h | 205 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
|
/linux/drivers/infiniband/hw/irdma/ |
H A D | cm.c | 447 if (cm_node->vlan_id < VLAN_N_VID) in irdma_form_uda_cm_frame() 479 if (cm_node->vlan_id < VLAN_N_VID) { in irdma_form_uda_cm_frame() 512 if (cm_node->vlan_id < VLAN_N_VID) { in irdma_form_uda_cm_frame() 1671 if (((rdma_vlan_dev_vlan_id(ip_dev) >= VLAN_N_VID) || in irdma_add_mqh_6() 1759 if (((rdma_vlan_dev_vlan_id(ip_dev) >= VLAN_N_VID) || in irdma_add_mqh_4() 2196 if (cm_node->vlan_id < VLAN_N_VID) { in irdma_cm_create_ah() 2252 if (cm_node->vlan_id >= VLAN_N_VID && iwdev->dcb_vlan_mode) in irdma_make_cm_node() 3354 if (cm_node->vlan_id < VLAN_N_VID) { in irdma_init_tcp_ctx() 4014 if (cm_info.vlan_id >= VLAN_N_VID && iwdev->dcb_vlan_mode) in irdma_create_listen()
|
/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe.h | 327 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)]; 607 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_main.h | 955 unsigned long vlan_table[VLAN_N_VID][BITS_TO_LONGS(HCLGE_VPORT_NUM)]; 1062 unsigned long vlan_del_fail_bmap[BITS_TO_LONGS(VLAN_N_VID)];
|
/linux/drivers/net/vmxnet3/ |
H A D | vmxnet3_int.h | 383 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
|
/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac.h | 336 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
|