Home
last modified time | relevance | path

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

12345

/drivers/net/ethernet/rocker/
Drocker_ofdpa.c41 __be16 vlan_id; member
53 __be16 vlan_id; member
70 __be16 vlan_id; member
84 __be16 vlan_id; member
118 __be16 vlan_id; member
124 __be16 vlan_id; member
139 __be16 vlan_id; member
147 __be16 vlan_id; member
241 static bool ofdpa_vlan_id_is_internal(__be16 vlan_id) in ofdpa_vlan_id_is_internal() argument
245 u16 _vlan_id = ntohs(vlan_id); in ofdpa_vlan_id_is_internal()
[all …]
Drocker_hw.h423 #define ROCKER_GROUP_VLAN_SET(vlan_id) \ argument
424 (((vlan_id) << ROCKER_GROUP_VLAN_SHIFT) & ROCKER_GROUP_VLAN_MASK)
441 #define ROCKER_GROUP_L2_INTERFACE(vlan_id, port) \ argument
443 ROCKER_GROUP_VLAN_SET(ntohs(vlan_id)) | ROCKER_GROUP_PORT_SET(port))
447 #define ROCKER_GROUP_L2_MCAST(vlan_id, index) \ argument
449 ROCKER_GROUP_VLAN_SET(ntohs(vlan_id)) | ROCKER_GROUP_INDEX_SET(index))
450 #define ROCKER_GROUP_L2_FLOOD(vlan_id, index) \ argument
452 ROCKER_GROUP_VLAN_SET(ntohs(vlan_id)) | ROCKER_GROUP_INDEX_SET(index))
/drivers/net/fjes/
Dfjes_hw.c157 u16 vlan_id[EP_BUFFER_SUPPORT_VLAN_MAX]; in fjes_hw_setup_epbuf() local
161 vlan_id[i] = info->v1i.vlan_id[i]; in fjes_hw_setup_epbuf()
181 info->v1i.vlan_id[i] = vlan_id[i]; in fjes_hw_setup_epbuf()
826 bool fjes_hw_check_vlan_id(struct epbuf_handler *epbh, u16 vlan_id) in fjes_hw_check_vlan_id() argument
832 if (vlan_id == 0) { in fjes_hw_check_vlan_id()
836 if (vlan_id == info->v1i.vlan_id[i]) { in fjes_hw_check_vlan_id()
845 bool fjes_hw_set_vlan_id(struct epbuf_handler *epbh, u16 vlan_id) in fjes_hw_set_vlan_id() argument
851 if (info->v1i.vlan_id[i] == 0) { in fjes_hw_set_vlan_id()
852 info->v1i.vlan_id[i] = vlan_id; in fjes_hw_set_vlan_id()
859 void fjes_hw_del_vlan_id(struct epbuf_handler *epbh, u16 vlan_id) in fjes_hw_del_vlan_id() argument
[all …]
/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 …]
Dqlcnic_hw.c445 u16 vlan_id, u8 op) in qlcnic_82xx_sre_macaddr_change() argument
463 vlan_req->vlan_id = cpu_to_le16(vlan_id); in qlcnic_82xx_sre_macaddr_change()
500 cur->vlan_id == vlan) in qlcnic_nic_add_mac()
516 cur->vlan_id = vlan; in qlcnic_nic_add_mac()
534 cur->vlan_id, QLCNIC_MAC_DEL); in qlcnic_flush_mcast_mac()
653 cmd = tmp_fil->vlan_id ? QLCNIC_MAC_VLAN_DEL : in qlcnic_prune_lb_filters()
659 tmp_fil->vlan_id, in qlcnic_prune_lb_filters()
697 cmd = tmp_fil->vlan_id ? QLCNIC_MAC_VLAN_DEL : in qlcnic_delete_lb_filters()
701 tmp_fil->vlan_id, in qlcnic_delete_lb_filters()
Dqlcnic_sriov_common.c1503 u16 vlan_id; in qlcnic_vf_add_mc_list() local
1513 vlan_id = vf->sriov_vlans[i]; in qlcnic_vf_add_mc_list()
1514 if (vlan_id) in qlcnic_vf_add_mc_list()
1515 qlcnic_nic_add_mac(adapter, mac, vlan_id, in qlcnic_vf_add_mc_list()
1950 struct qlcnic_vf_info *vf, u16 vlan_id) in qlcnic_sriov_check_vlan_id() argument
1960 if (vf->sriov_vlans[i] == vlan_id) { in qlcnic_sriov_check_vlan_id()
2022 static void qlcnic_sriov_vlan_operation(struct qlcnic_vf_info *vf, u16 vlan_id, in qlcnic_sriov_vlan_operation() argument
2037 qlcnic_sriov_add_vlan_id(sriov, vf, vlan_id); in qlcnic_sriov_vlan_operation()
2040 qlcnic_sriov_del_vlan_id(sriov, vf, vlan_id); in qlcnic_sriov_vlan_operation()
2106 qlcnic_sre_macaddr_change(adapter, cur->mac_addr, cur->vlan_id, in qlcnic_sriov_vf_free_mac_list()
[all …]
/drivers/infiniband/hw/i40iw/
Di40iw_cm.c219 cm_info->vlan_id = cm_node->vlan_id; in i40iw_get_addr_info()
417 if (cm_node->vlan_id < VLAN_TAG_PRESENT) in i40iw_form_cm_frame()
446 if (cm_node->vlan_id < VLAN_TAG_PRESENT) { in i40iw_form_cm_frame()
448 ((struct vlan_ethhdr *)ethh)->h_vlan_TCI = htons(cm_node->vlan_id); in i40iw_form_cm_frame()
475 if (cm_node->vlan_id < VLAN_TAG_PRESENT) { in i40iw_form_cm_frame()
477 ((struct vlan_ethhdr *)ethh)->h_vlan_TCI = htons(cm_node->vlan_id); in i40iw_form_cm_frame()
1458 u16 vlan_id, in i40iw_find_listener() argument
1556 child_listen_node->vlan_id); in i40iw_del_multiple_qhash()
1562 child_listen_node->vlan_id); in i40iw_del_multiple_qhash()
1566 cm_info->vlan_id = child_listen_node->vlan_id; in i40iw_del_multiple_qhash()
[all …]
Di40iw_cm.h302 u16 vlan_id; member
318 u16 vlan_id; member
369 u16 vlan_id; member
Di40iw_hw.c555 if (cminfo->vlan_id != 0xFFFF) { in i40iw_manage_qhash()
557 info->vlan_id = cpu_to_le16(cminfo->vlan_id); in i40iw_manage_qhash()
587 info->dest_port, info->mac_addr, cminfo->vlan_id); in i40iw_manage_qhash()
593 info->dest_port, info->mac_addr, cminfo->vlan_id); in i40iw_manage_qhash()
/drivers/infiniband/core/
Daddr.c265 u16 *vlan_id) in rdma_translate_ip() argument
288 if (vlan_id) in rdma_translate_ip()
289 *vlan_id = rdma_vlan_dev_vlan_id(dev); in rdma_translate_ip()
300 if (vlan_id) in rdma_translate_ip()
301 *vlan_id = rdma_vlan_dev_vlan_id(dev); in rdma_translate_ip()
729 u8 *dmac, u16 *vlan_id, int *if_index, in rdma_addr_find_l2_eth_by_grh() argument
771 if (vlan_id) in rdma_addr_find_l2_eth_by_grh()
772 *vlan_id = rdma_vlan_dev_vlan_id(dev); in rdma_addr_find_l2_eth_by_grh()
780 int rdma_addr_find_smac_by_sgid(union ib_gid *sgid, u8 *smac, u16 *vlan_id) in rdma_addr_find_smac_by_sgid() argument
794 ret = rdma_translate_ip(&gid_addr._sockaddr, &dev_addr, vlan_id); in rdma_addr_find_smac_by_sgid()
Dverbs.c384 u16 vlan_id; member
398 if ((!!(ctx->vlan_id != 0xffff) == !is_vlan_dev(gid_attr->ndev)) || in find_gid_index()
400 vlan_dev_vlan_id(gid_attr->ndev) != ctx->vlan_id)) in find_gid_index()
407 u16 vlan_id, const union ib_gid *sgid, in get_sgid_index_from_eth() argument
411 struct find_gid_index_context context = {.vlan_id = vlan_id, in get_sgid_index_from_eth()
479 u16 vlan_id = wc->wc_flags & IB_WC_WITH_VLAN ? in ib_init_ah_from_wc() local
480 wc->vlan_id : 0xffff; in ib_init_ah_from_wc()
497 NULL : &vlan_id, in ib_init_ah_from_wc()
520 ret = get_sgid_index_from_eth(device, port_num, vlan_id, in ib_init_ah_from_wc()
/drivers/infiniband/hw/qedr/
Dqedr_cm.c108 qp->rqe_wr_id[qp->rq.gsi_cons].vlan_id = params->vlan_id; in qedr_ll2_rx_cb()
259 u16 vlan_id = 0; in qedr_gsi_build_header() local
281 vlan_id = rdma_vlan_dev_vlan_id(sgid_attr.ndev); in qedr_gsi_build_header()
282 if (vlan_id < VLAN_CFI_MASK) in qedr_gsi_build_header()
323 udh->vlan.tag = htons(vlan_id); in qedr_gsi_build_header()
593 if (qp->rqe_wr_id[qp->rq.cons].vlan_id) { in qedr_gsi_poll_cq()
595 wc[i].vlan_id = qp->rqe_wr_id[qp->rq.cons].vlan_id; in qedr_gsi_poll_cq()
/drivers/net/bonding/
Dbond_alb.c474 if (client_info->vlan_id) { in rlb_update_client()
476 client_info->vlan_id); in rlb_update_client()
651 if (vlan_get_tag(skb, &client_info->vlan_id)) in rlb_choose_channel()
652 client_info->vlan_id = 0; in rlb_choose_channel()
753 entry->vlan_id = 0; in rlb_init_table_entry_dst()
898 static void rlb_clear_vlan(struct bonding *bond, unsigned short vlan_id) in rlb_clear_vlan() argument
910 if (curr->vlan_id == vlan_id) in rlb_clear_vlan()
991 tags[0].vlan_proto, tags[0].vlan_id); in alb_send_learning_packets()
1748 void bond_alb_clear_vlan(struct bonding *bond, unsigned short vlan_id) in bond_alb_clear_vlan() argument
1751 rlb_clear_vlan(bond, vlan_id); in bond_alb_clear_vlan()
/drivers/net/ethernet/intel/i40e/
Di40e_virtchnl_pf.c2062 if (vfl->vlan_id[i] > I40E_MAX_VLANID) { in i40e_vc_add_vlan_msg()
2065 "invalid VF VLAN id %d\n", vfl->vlan_id[i]); in i40e_vc_add_vlan_msg()
2078 int ret = i40e_vsi_add_vlan(vsi, vfl->vlan_id[i]); in i40e_vc_add_vlan_msg()
2085 vfl->vlan_id[i], in i40e_vc_add_vlan_msg()
2090 vfl->vlan_id[i], in i40e_vc_add_vlan_msg()
2096 vfl->vlan_id[i], vf->vf_id, ret); in i40e_vc_add_vlan_msg()
2129 if (vfl->vlan_id[i] > I40E_MAX_VLANID) { in i40e_vc_remove_vlan_msg()
2142 int ret = i40e_vsi_kill_vlan(vsi, vfl->vlan_id[i]); in i40e_vc_remove_vlan_msg()
2149 vfl->vlan_id[i], in i40e_vc_remove_vlan_msg()
2154 vfl->vlan_id[i], in i40e_vc_remove_vlan_msg()
[all …]
Di40e_virtchnl_pf.h133 u16 vlan_id, u8 qos, __be16 vlan_proto);
/drivers/scsi/lpfc/
Dlpfc_hbadisc.c1402 uint16_t vlan_id, uint32_t flag) in __lpfc_update_fcf_record() argument
1410 fcf_rec->vlan_id = vlan_id; in __lpfc_update_fcf_record()
1498 uint16_t *vlan_id) in lpfc_match_fcf_conn_list() argument
1527 *vlan_id = phba->vlan_id; in lpfc_match_fcf_conn_list()
1529 *vlan_id = LPFC_FCOE_NULL_VID; in lpfc_match_fcf_conn_list()
1551 *vlan_id = fcf_vlan_id; in lpfc_match_fcf_conn_list()
1553 *vlan_id = LPFC_FCOE_NULL_VID; in lpfc_match_fcf_conn_list()
1654 *vlan_id = conn_entry->conn_rec.vlan_tag; in lpfc_match_fcf_conn_list()
1660 *vlan_id = fcf_vlan_id; in lpfc_match_fcf_conn_list()
1662 *vlan_id = LPFC_FCOE_NULL_VID; in lpfc_match_fcf_conn_list()
[all …]
/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_mac.c235 mac_entry.in_vlan_id = old_entry->vlan_id; in hns_mac_change_vf_addr()
246 old_entry->vlan_id, in hns_mac_change_vf_addr()
321 ret = hns_dsaf_del_mac_entry(dsaf_dev, old_mac->vlan_id, in hns_mac_del_mac()
352 u32 port_num, u16 vlan_id, bool enable) in hns_mac_port_config_bc_en() argument
366 mac_entry.in_vlan_id = vlan_id; in hns_mac_port_config_bc_en()
404 mac_entry.in_vlan_id = uc_mac_entry->vlan_id; in hns_mac_vm_config_bc_en()
/drivers/staging/gdm724x/
Dgdm_lte.h70 u16 vlan_id; member
Dgdm_lte.c452 nic->vlan_id = ntohs(vlan_eth->h_vlan_TCI) & VLAN_VID_MASK; in gdm_lte_tx()
456 nic->vlan_id = 0; in gdm_lte_tx()
634 if (nic->vlan_id > 0) { in gdm_lte_netif_rx()
646 vlan_eth.h_vlan_TCI = htons(nic->vlan_id); in gdm_lte_netif_rx()
/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c150 fcf_dev->vlan_id = fcoe->vlan_id; in bnx2fc_fcf_get_vlan_id()
842 u16 vlan_id) in bnx2fc_indicate_netevent() argument
853 if (vlan_id != 0 && event != NETDEV_UNREGISTER) in bnx2fc_indicate_netevent()
878 if (!vlan_id) in bnx2fc_indicate_netevent()
883 interface->vlan_id == (vlan_id & VLAN_VID_MASK)) in bnx2fc_indicate_netevent()
2281 int vlan_id = 0; in _bnx2fc_create() local
2338 vlan_id = vlan_dev_vlan_id(netdev); in _bnx2fc_create()
2344 interface->vlan_id = vlan_id; in _bnx2fc_create()
/drivers/net/ethernet/tehuti/
Dtehuti.h324 #define TXD_W1_VAL(bc, checksum, vtag, lgsnd, vlan_id) \ argument
326 ((lgsnd)<<9) | (0x30000) | ((vlan_id)<<20))
/drivers/net/ethernet/mellanox/mlx5/core/
Den_tc.c240 if (mask->vlan_id || mask->vlan_priority) { in parse_cls_flower()
244 MLX5_SET(fte_match_set_lyr_2_4, headers_c, first_vid, mask->vlan_id); in parse_cls_flower()
245 MLX5_SET(fte_match_set_lyr_2_4, headers_v, first_vid, key->vlan_id); in parse_cls_flower()
/drivers/net/ethernet/qlogic/qlge/
Dqlge_main.c1496 u16 vlan_id) in ql_process_mac_rx_gro_page() argument
1533 if (vlan_id != 0xffff) in ql_process_mac_rx_gro_page()
1534 __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vlan_id); in ql_process_mac_rx_gro_page()
1543 u16 vlan_id) in ql_process_mac_rx_page() argument
1619 if (vlan_id != 0xffff) in ql_process_mac_rx_page()
1620 __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vlan_id); in ql_process_mac_rx_page()
1636 u16 vlan_id) in ql_process_mac_rx_skb() argument
1733 if (vlan_id != 0xffff) in ql_process_mac_rx_skb()
1734 __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vlan_id); in ql_process_mac_rx_skb()
1964 u16 vlan_id) in ql_process_mac_split_rx_intr() argument
[all …]
/drivers/infiniband/hw/mlx4/
Dmad.c583 if (vlan != wc->vlan_id) in mlx4_ib_send_to_slave()
594 vlan = wc->vlan_id; in mlx4_ib_send_to_slave()
1331 u8 *s_mac, u16 vlan_id, struct ib_mad *mad) in mlx4_ib_send_to_wire() argument
1419 if (vlan_id < 0x1000) in mlx4_ib_send_to_wire()
1420 vlan_id |= (attr->sl & 7) << 13; in mlx4_ib_send_to_wire()
1421 to_mah(ah)->av.eth.vlan = cpu_to_be16(vlan_id); in mlx4_ib_send_to_wire()
1464 u16 vlan_id; in mlx4_ib_multiplex_mad() local
1553 vlan_id = be16_to_cpu(tunnel->hdr.vlan); in mlx4_ib_multiplex_mad()
1556 &vlan_id, &ah_attr.sl); in mlx4_ib_multiplex_mad()
1564 &ah_attr, wc->smac, vlan_id, &tunnel->mad); in mlx4_ib_multiplex_mad()
/drivers/net/ethernet/ti/
Dnetcp_ethss.c2233 u16 vlan_id; in gbe_add_mcast_addr() local
2238 for_each_set_bit(vlan_id, gbe_intf->active_vlans, VLAN_N_VID) { in gbe_add_mcast_addr()
2241 ALE_VLAN, vlan_id, ALE_MCAST_FWD_2); in gbe_add_mcast_addr()
2248 u16 vlan_id; in gbe_add_ucast_addr() local
2252 for_each_set_bit(vlan_id, gbe_intf->active_vlans, VLAN_N_VID) in gbe_add_ucast_addr()
2254 ALE_VLAN, vlan_id); in gbe_add_ucast_addr()
2260 u16 vlan_id; in gbe_del_mcast_addr() local
2264 for_each_set_bit(vlan_id, gbe_intf->active_vlans, VLAN_N_VID) { in gbe_del_mcast_addr()
2265 cpsw_ale_del_mcast(gbe_dev->ale, addr, 0, ALE_VLAN, vlan_id); in gbe_del_mcast_addr()
2272 u16 vlan_id; in gbe_del_ucast_addr() local
[all …]

12345