Home
last modified time | relevance | path

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

12345678910>>...12

/linux-6.1.9/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()
64 return array ? array[vlan_id % VLAN_GROUP_ARRAY_PART_LEN] : NULL; in __vlan_group_get_device()
69 u16 vlan_id) in vlan_group_get_device() argument
76 return __vlan_group_get_device(vg, pidx, vlan_id); in vlan_group_get_device()
80 __be16 vlan_proto, u16 vlan_id, in vlan_group_set_device() argument
89 [vlan_id / VLAN_GROUP_ARRAY_PART_LEN]; in vlan_group_set_device()
90 array[vlan_id % VLAN_GROUP_ARRAY_PART_LEN] = dev; in vlan_group_set_device()
95 __be16 vlan_proto, u16 vlan_id) in vlan_find_dev() argument
101 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()
95 u16 vlan_id = vlan->vlan_id; in unregister_vlan_dev() local
111 vlan_group_set_device(grp, vlan->vlan_proto, vlan_id, NULL); in unregister_vlan_dev()
125 vlan_vid_del(real_dev, vlan->vlan_proto, vlan_id); in unregister_vlan_dev()
129 __be16 protocol, u16 vlan_id, in vlan_check_real_dev() argument
140 if (vlan_find_dev(real_dev, protocol, vlan_id) != NULL) { in vlan_check_real_dev()
152 u16 vlan_id = vlan->vlan_id; in register_vlan_dev() local
157 err = vlan_vid_add(real_dev, vlan->vlan_proto, vlan_id); in register_vlan_dev()
175 err = vlan_group_prealloc_vid(grp, vlan->vlan_proto, vlan_id); in register_vlan_dev()
[all …]
/linux-6.1.9/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))
/linux-6.1.9/drivers/infiniband/hw/irdma/
Dtrace_cm.h70 __field(u16, vlan_id)
78 __entry->vlan_id = listener->vlan_id;
86 __entry->vlan_id,
151 __field(u16, vlan_id)
158 __entry->vlan_id = listener->vlan_id;
167 __entry->vlan_id,
212 __field(u16, vlan_id)
228 __entry->vlan_id = cm_node->vlan_id;
244 __entry->vlan_id,
289 __field(u16, vlan_id)
[all …]
Dcm.c79 cm_info->vlan_id = cm_node->vlan_id; in irdma_get_addr_info()
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()
483 cm_node->vlan_id; in irdma_form_uda_cm_frame()
512 if (cm_node->vlan_id < VLAN_N_VID) { in irdma_form_uda_cm_frame()
516 cm_node->vlan_id; in irdma_form_uda_cm_frame()
1467 u16 vlan_id, enum irdma_cm_listener_state listener_state) in irdma_find_listener() argument
1486 vlan_id == listen_node->vlan_id)) { in irdma_find_listener()
1524 child_listen_node->vlan_id); in irdma_del_multiple_qhash()
1530 child_listen_node->vlan_id); in irdma_del_multiple_qhash()
[all …]
/linux-6.1.9/drivers/net/ethernet/huawei/hinic/
Dhinic_sriov.c30 u16 vlan_id, u16 func_id) in hinic_set_mac() argument
37 mac_info.vlan_id = vlan_id; in hinic_set_mac()
115 vf_vlan.vlan_id = vid; in hinic_set_vf_vlan()
215 u16 func_id, vlan_id; in hinic_init_vf_config() local
222 vlan_id = 0; in hinic_init_vf_config()
224 err = hinic_set_mac(hwdev, vf_info->vf_mac_addr, vlan_id, in hinic_init_vf_config()
505 static int hinic_check_mac_info(u8 status, u16 vlan_id) in hinic_check_mac_info() argument
508 (vlan_id & CHECK_IPSU_15BIT && in hinic_check_mac_info()
518 u8 *new_mac, u16 vlan_id, u16 func_id) in hinic_update_mac() argument
527 if ((vlan_id & HINIC_VLAN_ID_MASK) >= VLAN_N_VID) { in hinic_update_mac()
[all …]
/linux-6.1.9/drivers/net/ethernet/freescale/dpaa2/
Ddpsw.c424 dpsw_set_field(tmp_conf, VLAN_ID, cfg->vlan_id); in dpsw_if_set_tci()
467 cfg->vlan_id = le16_to_cpu(rsp_params->vlan_id); in dpsw_if_get_tci()
497 cmd_params->vlan_id = cpu_to_le16(cfg->vlan_id); in dpsw_if_set_stp()
680 u16 vlan_id, const struct dpsw_vlan_cfg *cfg) in dpsw_vlan_add() argument
691 cmd_params->vlan_id = cpu_to_le16(vlan_id); in dpsw_vlan_add()
713 u16 vlan_id, const struct dpsw_vlan_if_cfg *cfg) in dpsw_vlan_add_if() argument
723 cmd_params->vlan_id = cpu_to_le16(vlan_id); in dpsw_vlan_add_if()
750 u16 vlan_id, const struct dpsw_vlan_if_cfg *cfg) in dpsw_vlan_add_if_untagged() argument
760 cmd_params->vlan_id = cpu_to_le16(vlan_id); in dpsw_vlan_add_if_untagged()
781 u16 vlan_id, const struct dpsw_vlan_if_cfg *cfg) in dpsw_vlan_remove_if() argument
[all …]
Ddpsw.h303 u16 vlan_id; member
335 u16 vlan_id; member
434 u16 vlan_id, const struct dpsw_vlan_cfg *cfg);
457 u16 vlan_id, const struct dpsw_vlan_if_cfg *cfg);
460 u16 vlan_id, const struct dpsw_vlan_if_cfg *cfg);
463 u16 vlan_id, const struct dpsw_vlan_if_cfg *cfg);
466 u16 vlan_id, const struct dpsw_vlan_if_cfg *cfg);
469 u16 vlan_id);
780 u16 vlan_id; member
Ddpsw-cmd.h245 __le16 vlan_id; member
255 __le16 vlan_id; member
337 __le16 vlan_id; member
343 __le16 vlan_id; member
353 __le16 vlan_id; member
361 __le16 vlan_id; member
551 __le16 vlan_id; member
/linux-6.1.9/net/smc/
Dsmc_ism.h33 int smc_ism_cantalk(u64 peer_gid, unsigned short vlan_id, struct smcd_dev *dev);
36 int smc_ism_get_vlan(struct smcd_dev *dev, unsigned short vlan_id);
37 int smc_ism_put_vlan(struct smcd_dev *dev, unsigned short vlan_id);
Dsmc_ism.c30 int smc_ism_cantalk(u64 peer_gid, unsigned short vlan_id, struct smcd_dev *smcd) in smc_ism_cantalk() argument
32 return smcd->ops->query_remote_gid(smcd, peer_gid, vlan_id ? 1 : 0, in smc_ism_cantalk()
33 vlan_id); in smc_ism_cantalk()
192 dmb.vlan_id = lgr->vlan_id; in smc_ism_register_dmb()
312 unsigned short vlan_id; member
324 smc_smcd_terminate(wrk->smcd, wrk->event.tok, ev_info.vlan_id); in smcd_handle_sw_event()
348 ev_info.vlan_id = lgr->vlan_id; in smc_ism_signal_shutdown()
/linux-6.1.9/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;
/linux-6.1.9/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()
/linux-6.1.9/drivers/net/fjes/
Dfjes_hw.c144 u16 vlan_id[EP_BUFFER_SUPPORT_VLAN_MAX]; in fjes_hw_setup_epbuf() local
148 vlan_id[i] = info->v1i.vlan_id[i]; in fjes_hw_setup_epbuf()
168 info->v1i.vlan_id[i] = vlan_id[i]; in fjes_hw_setup_epbuf()
847 bool fjes_hw_check_vlan_id(struct epbuf_handler *epbh, u16 vlan_id) in fjes_hw_check_vlan_id() argument
853 if (vlan_id == 0) { in fjes_hw_check_vlan_id()
857 if (vlan_id == info->v1i.vlan_id[i]) { in fjes_hw_check_vlan_id()
866 bool fjes_hw_set_vlan_id(struct epbuf_handler *epbh, u16 vlan_id) in fjes_hw_set_vlan_id() argument
872 if (info->v1i.vlan_id[i] == 0) { in fjes_hw_set_vlan_id()
873 info->v1i.vlan_id[i] = vlan_id; in fjes_hw_set_vlan_id()
880 void fjes_hw_del_vlan_id(struct epbuf_handler *epbh, u16 vlan_id) in fjes_hw_del_vlan_id() argument
[all …]
/linux-6.1.9/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c158 void *addr, u16 vlan_id) in qlcnic_delete_rx_list_mac() argument
163 op = vlan_id ? QLCNIC_MAC_VLAN_ADD : QLCNIC_MAC_ADD; in qlcnic_delete_rx_list_mac()
164 ret = qlcnic_sre_macaddr_change(adapter, addr, vlan_id, op); in qlcnic_delete_rx_list_mac()
168 op = vlan_id ? QLCNIC_MAC_VLAN_DEL : QLCNIC_MAC_DEL; in qlcnic_delete_rx_list_mac()
169 ret = qlcnic_sre_macaddr_change(adapter, addr, vlan_id, op); in qlcnic_delete_rx_list_mac()
177 void *addr, u16 vlan_id) in qlcnic_find_mac_filter() argument
184 tmp_fil->vlan_id == vlan_id) in qlcnic_find_mac_filter()
192 struct sk_buff *skb, int loopback_pkt, u16 vlan_id) in qlcnic_add_lb_filter() argument
202 if (!qlcnic_sriov_pf_check(adapter) || (vlan_id == 0xffff)) in qlcnic_add_lb_filter()
203 vlan_id = 0; in qlcnic_add_lb_filter()
[all …]
/linux-6.1.9/include/net/
Dsmc.h38 u32 vlan_id; member
66 int (*add_vlan_id)(struct smcd_dev *dev, u64 vlan_id);
67 int (*del_vlan_id)(struct smcd_dev *dev, u64 vlan_id);
/linux-6.1.9/drivers/infiniband/hw/bnxt_re/
Dqplib_sp.c220 struct bnxt_qplib_gid *gid, u16 vlan_id, bool update) in bnxt_qplib_del_sgid() argument
239 vlan_id == sgid_tbl->tbl[index].vlan_id) in bnxt_qplib_del_sgid()
267 sgid_tbl->tbl[index].vlan_id = 0xFFFF; in bnxt_qplib_del_sgid()
281 u16 vlan_id, bool update, u32 *index) in bnxt_qplib_add_sgid() argument
301 sgid_tbl->tbl[i].vlan_id == vlan_id) { in bnxt_qplib_add_sgid()
334 if ((vlan_id != 0xFFFF) || res->prio) { in bnxt_qplib_add_sgid()
335 if (vlan_id != 0xFFFF) in bnxt_qplib_add_sgid()
337 (vlan_id & CMDQ_ADD_GID_VLAN_VLAN_ID_MASK); in bnxt_qplib_add_sgid()
356 sgid_tbl->tbl[free_idx].vlan_id = vlan_id; in bnxt_qplib_add_sgid()
358 if (vlan_id != 0xFFFF) in bnxt_qplib_add_sgid()
Dqplib_sp.h87 u16 vlan_id; member
102 u16 vlan_id; member
251 struct bnxt_qplib_gid *gid, u16 vlan_id, bool update);
253 struct bnxt_qplib_gid *gid, const u8 *mac, u16 vlan_id,
/linux-6.1.9/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 …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dgid.c119 const u8 *mac, bool vlan, u16 vlan_id, u8 port_num) in mlx5_core_roce_gid_set() argument
136 MLX5_SET_RA(in_addr, vlan_id, vlan_id); in mlx5_core_roce_gid_set()
/linux-6.1.9/Documentation/networking/device_drivers/ethernet/freescale/dpaa2/
Dswitch-driver.rst138 * VLAN: vlan_id/vlan_prio/vlan_tpid/vlan_dei
161 …$ tc filter add dev eth4 ingress protocol 802.1q flower skip_sw vlan_id 100 vlan_prio 3 action drop
183 ''vlan_id'' key will be accepted. Mirroring based on any other fields from the
196 …$ tc filter add block 1 ingress protocol 802.1q flower skip_sw vlan_id 200 action mirred egress mi…
201 …$ tc filter add block 1 ingress protocol 802.1q flower skip_sw vlan_id 200 action mirred egress mi…
204 …$ tc filter add block 1 ingress protocol 802.1q flower skip_sw vlan_id 200 action mirred egress mi…
214 …$ tc filter add block 1 ingress protocol 802.1q flower skip_sw vlan_id 200 action mirred egress mi…
215 …$ tc filter add block 1 ingress protocol 802.1q flower skip_sw vlan_id 100 action mirred egress mi…

12345678910>>...12