Home
last modified time | relevance | path

Searched refs:VLAN_N_VID (Results 1 – 25 of 79) sorted by relevance

1234

/linux/net/8021q/
H A Dvlan.h14 #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 Dfm10k_netdev.c759 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 Dbr_mst.c238 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 Dmv88e6xxx.h11 #define MV88E6XXX_VID_BRIDGED (VLAN_N_VID - 1)
H A Dloop.h37 struct dsa_loop_vlan vlans[VLAN_N_VID];
H A Dsja1105.h19 #define SJA1105_DEFAULT_VLAN (VLAN_N_VID - 1)
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_fs.c149 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 Daq_filters.c382 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 Daq_nic.h151 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_main.c626 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 Dhinic_sriov.c545 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 Debt_vlan.c114 if (info->id > VLAN_N_VID) { in ebt_vlan_mt_check()
/linux/drivers/net/dsa/xrs700x/
H A Dxrs700x_mdio.c101 .max_register = XRS_VLAN(VLAN_N_VID - 1),
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_xdp_vlan.c43 #define VLAN_N_VID 4096 macro
/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_ah.c111 ah->av.vlan_en = ah->av.vlan_id < VLAN_N_VID; in hns_roce_create_ah()
/linux/drivers/net/ethernet/intel/igbvf/
H A Digbvf.h164 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/
H A Dhclgevf_main.h257 unsigned long vlan_del_fail_bmap[BITS_TO_LONGS(VLAN_N_VID)];
/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_main.h286 u16 vlan_mask[VLAN_N_VID];
287 DECLARE_BITMAP(cpu_vlan_mask, VLAN_N_VID);
H A Dlan966x_vlan.c293 for (vid = 1; vid < VLAN_N_VID; vid++) { in lan966x_vlan_init()
/linux/drivers/net/ethernet/intel/e1000/
H A De1000.h205 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
/linux/drivers/infiniband/hw/irdma/
H A Dcm.c447 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 Dixgbe.h327 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 Dhclge_main.h955 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 Dvmxnet3_int.h383 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac.h336 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];

1234