Home
last modified time | relevance | path

Searched refs:vlan_id (Results 1 – 25 of 245) sorted by relevance

12345678910

/kernel/linux/linux-5.10/net/8021q/
Dvlan_gvrp.c30 __be16 vlan_id = htons(vlan->vlan_id); in vlan_gvrp_request_join() local
35 &vlan_id, sizeof(vlan_id), GVRP_ATTR_VID); in vlan_gvrp_request_join()
41 __be16 vlan_id = htons(vlan->vlan_id); in vlan_gvrp_request_leave() local
46 &vlan_id, sizeof(vlan_id), GVRP_ATTR_VID); in vlan_gvrp_request_leave()
Dvlan_mvrp.c36 __be16 vlan_id = htons(vlan->vlan_id); in vlan_mvrp_request_join() local
41 &vlan_id, sizeof(vlan_id), MVRP_ATTR_VID); in vlan_mvrp_request_join()
47 __be16 vlan_id = htons(vlan->vlan_id); in vlan_mvrp_request_leave() local
52 &vlan_id, sizeof(vlan_id), MVRP_ATTR_VID); in vlan_mvrp_request_leave()
Dvlan.h54 u16 vlan_id) in __vlan_group_get_device() argument
59 [vlan_id / VLAN_GROUP_ARRAY_PART_LEN]; in __vlan_group_get_device()
60 return array ? array[vlan_id % VLAN_GROUP_ARRAY_PART_LEN] : NULL; in __vlan_group_get_device()
65 u16 vlan_id) in vlan_group_get_device() argument
72 return __vlan_group_get_device(vg, pidx, vlan_id); in vlan_group_get_device()
76 __be16 vlan_proto, u16 vlan_id, in vlan_group_set_device() argument
85 [vlan_id / VLAN_GROUP_ARRAY_PART_LEN]; in vlan_group_set_device()
86 array[vlan_id % VLAN_GROUP_ARRAY_PART_LEN] = dev; in vlan_group_set_device()
91 __be16 vlan_proto, u16 vlan_id) in vlan_find_dev() argument
97 vlan_proto, vlan_id); in vlan_find_dev()
[all …]
Dvlan.c51 __be16 vlan_proto, u16 vlan_id) in vlan_group_prealloc_vid() argument
64 vidx = vlan_id / VLAN_GROUP_ARRAY_PART_LEN; in vlan_group_prealloc_vid()
92 u16 vlan_id = vlan->vlan_id; in unregister_vlan_dev() local
108 vlan_group_set_device(grp, vlan->vlan_proto, vlan_id, NULL); in unregister_vlan_dev()
122 vlan_vid_del(real_dev, vlan->vlan_proto, vlan_id); in unregister_vlan_dev()
126 __be16 protocol, u16 vlan_id, in vlan_check_real_dev() argument
137 if (vlan_find_dev(real_dev, protocol, vlan_id) != NULL) { in vlan_check_real_dev()
149 u16 vlan_id = vlan->vlan_id; in register_vlan_dev() local
154 err = vlan_vid_add(real_dev, vlan->vlan_proto, vlan_id); in register_vlan_dev()
172 err = vlan_group_prealloc_vid(grp, vlan->vlan_proto, vlan_id); in register_vlan_dev()
[all …]
Dvlan_core.c13 u16 vlan_id = skb_vlan_tag_get_id(skb); in vlan_do_receive() local
17 vlan_dev = vlan_find_dev(skb->dev, vlan_proto, vlan_id); in vlan_do_receive()
76 __be16 vlan_proto, u16 vlan_id) in __vlan_find_dev_deep_rcu() argument
82 vlan_proto, vlan_id); in __vlan_find_dev_deep_rcu()
94 vlan_proto, vlan_id); in __vlan_find_dev_deep_rcu()
114 return vlan_dev_priv(dev)->vlan_id; in vlan_dev_vlan_id()
/kernel/linux/linux-5.10/drivers/net/ethernet/rocker/
Drocker_ofdpa.c38 __be16 vlan_id; member
50 __be16 vlan_id; member
67 __be16 vlan_id; member
81 __be16 vlan_id; member
115 __be16 vlan_id; member
121 __be16 vlan_id; member
136 __be16 vlan_id; member
144 __be16 vlan_id; member
238 static bool ofdpa_vlan_id_is_internal(__be16 vlan_id) in ofdpa_vlan_id_is_internal() argument
242 u16 _vlan_id = ntohs(vlan_id); in ofdpa_vlan_id_is_internal()
[all …]
Drocker_hw.h418 #define ROCKER_GROUP_VLAN_SET(vlan_id) \ argument
419 (((vlan_id) << ROCKER_GROUP_VLAN_SHIFT) & ROCKER_GROUP_VLAN_MASK)
436 #define ROCKER_GROUP_L2_INTERFACE(vlan_id, port) \ argument
438 ROCKER_GROUP_VLAN_SET(ntohs(vlan_id)) | ROCKER_GROUP_PORT_SET(port))
442 #define ROCKER_GROUP_L2_MCAST(vlan_id, index) \ argument
444 ROCKER_GROUP_VLAN_SET(ntohs(vlan_id)) | ROCKER_GROUP_INDEX_SET(index))
445 #define ROCKER_GROUP_L2_FLOOD(vlan_id, index) \ argument
447 ROCKER_GROUP_VLAN_SET(ntohs(vlan_id)) | ROCKER_GROUP_INDEX_SET(index))
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_fltr.c158 u16 vlan_id, enum ice_sw_fwd_act_type action) in ice_fltr_add_vlan_to_list() argument
167 info.l_data.vlan.vlan_id = vlan_id; in ice_fltr_add_vlan_to_list()
266 ice_fltr_prepare_vlan(struct ice_vsi *vsi, u16 vlan_id, in ice_fltr_prepare_vlan() argument
274 if (ice_fltr_add_vlan_to_list(vsi, &tmp_list, vlan_id, action)) in ice_fltr_prepare_vlan()
351 enum ice_status ice_fltr_add_vlan(struct ice_vsi *vsi, u16 vlan_id, in ice_fltr_add_vlan() argument
354 return ice_fltr_prepare_vlan(vsi, vlan_id, action, in ice_fltr_add_vlan()
364 enum ice_status ice_fltr_remove_vlan(struct ice_vsi *vsi, u16 vlan_id, in ice_fltr_remove_vlan() argument
367 return ice_fltr_prepare_vlan(vsi, vlan_id, action, in ice_fltr_remove_vlan()
/kernel/linux/linux-5.10/drivers/staging/fsl-dpaa2/ethsw/
Ddpsw.c522 dpsw_set_field(tmp_conf, VLAN_ID, cfg->vlan_id); in dpsw_if_set_tci()
568 cfg->vlan_id = le16_to_cpu(rsp_params->vlan_id); in dpsw_if_get_tci()
601 cmd_params->vlan_id = cpu_to_le16(cfg->vlan_id); in dpsw_if_set_stp()
758 u16 vlan_id, in dpsw_vlan_add() argument
770 cmd_params->vlan_id = cpu_to_le16(vlan_id); in dpsw_vlan_add()
794 u16 vlan_id, in dpsw_vlan_add_if() argument
805 cmd_params->vlan_id = cpu_to_le16(vlan_id); in dpsw_vlan_add_if()
832 u16 vlan_id, in dpsw_vlan_add_if_untagged() argument
843 cmd_params->vlan_id = cpu_to_le16(vlan_id); in dpsw_vlan_add_if_untagged()
866 u16 vlan_id, in dpsw_vlan_remove_if() argument
[all …]
Ddpsw.h266 u16 vlan_id; member
303 u16 vlan_id; member
390 u16 vlan_id,
408 u16 vlan_id,
414 u16 vlan_id,
420 u16 vlan_id,
426 u16 vlan_id,
432 u16 vlan_id);
Ddpsw-cmd.h222 __le16 vlan_id; member
232 __le16 vlan_id; member
292 __le16 vlan_id; member
298 __le16 vlan_id; member
306 __le16 vlan_id; member
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/
Dhinic_sriov.c28 u16 vlan_id, u16 func_id) in hinic_set_mac() argument
35 mac_info.vlan_id = vlan_id; in hinic_set_mac()
113 vf_vlan.vlan_id = vid; in hinic_set_vf_vlan()
213 u16 func_id, vlan_id; in hinic_init_vf_config() local
220 vlan_id = 0; in hinic_init_vf_config()
222 err = hinic_set_mac(hwdev, vf_info->vf_mac_addr, vlan_id, in hinic_init_vf_config()
503 static int hinic_check_mac_info(u8 status, u16 vlan_id) in hinic_check_mac_info() argument
506 (vlan_id & CHECK_IPSU_15BIT && in hinic_check_mac_info()
516 u8 *new_mac, u16 vlan_id, u16 func_id) in hinic_update_mac() argument
525 if ((vlan_id & HINIC_VLAN_ID_MASK) >= VLAN_N_VID) { in hinic_update_mac()
[all …]
/kernel/linux/linux-5.10/net/smc/
Dsmc_ism.h42 int smc_ism_cantalk(u64 peer_gid, unsigned short vlan_id, struct smcd_dev *dev);
45 int smc_ism_get_vlan(struct smcd_dev *dev, unsigned short vlan_id);
46 int smc_ism_put_vlan(struct smcd_dev *dev, unsigned short vlan_id);
Dsmc_ism.c27 int smc_ism_cantalk(u64 peer_gid, unsigned short vlan_id, struct smcd_dev *smcd) in smc_ism_cantalk() argument
29 return smcd->ops->query_remote_gid(smcd, peer_gid, vlan_id ? 1 : 0, in smc_ism_cantalk()
30 vlan_id); in smc_ism_cantalk()
191 dmb.vlan_id = lgr->vlan_id; in smc_ism_register_dmb()
220 unsigned short vlan_id; member
232 smc_smcd_terminate(wrk->smcd, wrk->event.tok, ev_info.vlan_id); in smcd_handle_sw_event()
256 ev_info.vlan_id = lgr->vlan_id; in smc_ism_signal_shutdown()
/kernel/linux/linux-5.10/arch/mips/include/asm/octeon/
Dcvmx-wqe.h73 uint64_t vlan_id:12; member
187 uint64_t vlan_id:12;
204 uint64_t vlan_id:12; member
234 uint64_t vlan_id:12;
284 uint64_t vlan_id:12; member
393 uint64_t vlan_id:12;
/kernel/linux/linux-5.10/drivers/s390/net/
Dism.h97 u16 vlan_id[64]; member
106 u32 vlan_id; member
120 u32 vlan_id; member
164 u64 vlan_id; member
Dism_drv.c213 cmd.request.vlan_id = vid; in ism_query_rgid()
271 cmd.request.vlan_id = dmb->vlan_id; in ism_register_dmb()
305 static int ism_add_vlan_id(struct smcd_dev *smcd, u64 vlan_id) in ism_add_vlan_id() argument
314 cmd.request.vlan_id = vlan_id; in ism_add_vlan_id()
319 static int ism_del_vlan_id(struct smcd_dev *smcd, u64 vlan_id) in ism_del_vlan_id() argument
328 cmd.request.vlan_id = vlan_id; in ism_del_vlan_id()
/kernel/linux/linux-5.10/drivers/infiniband/hw/i40iw/
Di40iw_cm.c218 cm_info->vlan_id = cm_node->vlan_id; in i40iw_get_addr_info()
407 if (cm_node->vlan_id <= VLAN_VID_MASK) in i40iw_form_cm_frame()
436 if (cm_node->vlan_id <= VLAN_VID_MASK) { in i40iw_form_cm_frame()
438 vtag = (cm_node->user_pri << VLAN_PRIO_SHIFT) | cm_node->vlan_id; in i40iw_form_cm_frame()
466 if (cm_node->vlan_id <= VLAN_VID_MASK) { in i40iw_form_cm_frame()
468 vtag = (cm_node->user_pri << VLAN_PRIO_SHIFT) | cm_node->vlan_id; in i40iw_form_cm_frame()
1472 u16 vlan_id, in i40iw_find_listener() argument
1592 child_listen_node->vlan_id); in i40iw_del_multiple_qhash()
1598 child_listen_node->vlan_id); in i40iw_del_multiple_qhash()
1602 cm_info->vlan_id = child_listen_node->vlan_id; in i40iw_del_multiple_qhash()
[all …]
/kernel/linux/linux-5.10/drivers/net/fjes/
Dfjes_hw.c143 u16 vlan_id[EP_BUFFER_SUPPORT_VLAN_MAX]; in fjes_hw_setup_epbuf() local
147 vlan_id[i] = info->v1i.vlan_id[i]; in fjes_hw_setup_epbuf()
167 info->v1i.vlan_id[i] = vlan_id[i]; in fjes_hw_setup_epbuf()
846 bool fjes_hw_check_vlan_id(struct epbuf_handler *epbh, u16 vlan_id) in fjes_hw_check_vlan_id() argument
852 if (vlan_id == 0) { in fjes_hw_check_vlan_id()
856 if (vlan_id == info->v1i.vlan_id[i]) { in fjes_hw_check_vlan_id()
865 bool fjes_hw_set_vlan_id(struct epbuf_handler *epbh, u16 vlan_id) in fjes_hw_set_vlan_id() argument
871 if (info->v1i.vlan_id[i] == 0) { in fjes_hw_set_vlan_id()
872 info->v1i.vlan_id[i] = vlan_id; in fjes_hw_set_vlan_id()
879 void fjes_hw_del_vlan_id(struct epbuf_handler *epbh, u16 vlan_id) in fjes_hw_del_vlan_id() argument
[all …]
/kernel/linux/linux-5.10/include/net/
Dsmc.h31 u32 vlan_id; member
59 int (*add_vlan_id)(struct smcd_dev *dev, u64 vlan_id);
60 int (*del_vlan_id)(struct smcd_dev *dev, u64 vlan_id);
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c157 void *addr, u16 vlan_id) in qlcnic_delete_rx_list_mac() argument
162 op = vlan_id ? QLCNIC_MAC_VLAN_ADD : QLCNIC_MAC_ADD; in qlcnic_delete_rx_list_mac()
163 ret = qlcnic_sre_macaddr_change(adapter, addr, vlan_id, op); in qlcnic_delete_rx_list_mac()
167 op = vlan_id ? QLCNIC_MAC_VLAN_DEL : QLCNIC_MAC_DEL; in qlcnic_delete_rx_list_mac()
168 ret = qlcnic_sre_macaddr_change(adapter, addr, vlan_id, op); in qlcnic_delete_rx_list_mac()
176 void *addr, u16 vlan_id) in qlcnic_find_mac_filter() argument
183 tmp_fil->vlan_id == vlan_id) in qlcnic_find_mac_filter()
191 struct sk_buff *skb, int loopback_pkt, u16 vlan_id) in qlcnic_add_lb_filter() argument
201 if (!qlcnic_sriov_pf_check(adapter) || (vlan_id == 0xffff)) in qlcnic_add_lb_filter()
202 vlan_id = 0; in qlcnic_add_lb_filter()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/bnxt_re/
Dqplib_sp.h88 u16 vlan_id; member
103 u16 vlan_id; member
228 struct bnxt_qplib_gid *gid, u16 vlan_id, bool update);
230 struct bnxt_qplib_gid *gid, u8 *mac, u16 vlan_id,
Dqplib_sp.c218 struct bnxt_qplib_gid *gid, u16 vlan_id, bool update) in bnxt_qplib_del_sgid() argument
237 vlan_id == sgid_tbl->tbl[index].vlan_id) in bnxt_qplib_del_sgid()
265 sgid_tbl->tbl[index].vlan_id = 0xFFFF; in bnxt_qplib_del_sgid()
278 struct bnxt_qplib_gid *gid, u8 *smac, u16 vlan_id, in bnxt_qplib_add_sgid() argument
299 sgid_tbl->tbl[i].vlan_id == vlan_id) { in bnxt_qplib_add_sgid()
332 if ((vlan_id != 0xFFFF) || res->prio) { in bnxt_qplib_add_sgid()
333 if (vlan_id != 0xFFFF) in bnxt_qplib_add_sgid()
335 (vlan_id & CMDQ_ADD_GID_VLAN_VLAN_ID_MASK); in bnxt_qplib_add_sgid()
354 sgid_tbl->tbl[free_idx].vlan_id = vlan_id; in bnxt_qplib_add_sgid()
356 if (vlan_id != 0xFFFF) in bnxt_qplib_add_sgid()
/kernel/linux/linux-5.10/drivers/infiniband/hw/qedr/
Dqedr_iw_cm.c398 u16 vlan_id = 0; in qedr_iw_get_vlan_ipv4() local
403 vlan_id = rdma_vlan_dev_vlan_id(ndev); in qedr_iw_get_vlan_ipv4()
406 if (vlan_id == 0xffff) in qedr_iw_get_vlan_ipv4()
407 vlan_id = 0; in qedr_iw_get_vlan_ipv4()
408 return vlan_id; in qedr_iw_get_vlan_ipv4()
415 u16 vlan_id = 0; in qedr_iw_get_vlan_ipv6() local
419 return vlan_id; in qedr_iw_get_vlan_ipv6()
427 vlan_id = rdma_vlan_dev_vlan_id(ndev); in qedr_iw_get_vlan_ipv6()
433 if (vlan_id == 0xffff) in qedr_iw_get_vlan_ipv6()
434 vlan_id = 0; in qedr_iw_get_vlan_ipv6()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dgid.c124 const u8 *mac, bool vlan, u16 vlan_id, u8 port_num) in mlx5_core_roce_gid_set() argument
141 MLX5_SET_RA(in_addr, vlan_id, vlan_id); in mlx5_core_roce_gid_set()

12345678910