/drivers/net/ |
D | macvlan.c | 56 struct macvlan_dev *vlan; member 98 struct macvlan_dev *vlan; in macvlan_hash_lookup() local 101 hlist_for_each_entry_rcu(vlan, &port->vlan_hash[idx], hlist) { in macvlan_hash_lookup() 102 if (ether_addr_equal_64bits(vlan->dev->dev_addr, addr)) in macvlan_hash_lookup() 103 return vlan; in macvlan_hash_lookup() 109 const struct macvlan_dev *vlan, in macvlan_hash_lookup_source() argument 114 struct hlist_head *h = &vlan->port->vlan_source_hash[idx]; in macvlan_hash_lookup_source() 118 entry->vlan == vlan) in macvlan_hash_lookup_source() 124 static int macvlan_hash_add_source(struct macvlan_dev *vlan, in macvlan_hash_add_source() argument 127 struct macvlan_port *port = vlan->port; in macvlan_hash_add_source() [all …]
|
D | macvtap.c | 40 struct macvlan_dev __rcu *vlan; member 98 struct macvlan_dev *vlan = netdev_priv(dev); in macvtap_enable_queue() local 107 rcu_assign_pointer(vlan->taps[vlan->numvtaps], q); in macvtap_enable_queue() 108 q->queue_index = vlan->numvtaps; in macvtap_enable_queue() 111 vlan->numvtaps++; in macvtap_enable_queue() 120 struct macvlan_dev *vlan = netdev_priv(dev); in macvtap_set_queue() local 122 if (vlan->numqueues == MAX_MACVTAP_QUEUES) in macvtap_set_queue() 125 rcu_assign_pointer(q->vlan, vlan); in macvtap_set_queue() 126 rcu_assign_pointer(vlan->taps[vlan->numvtaps], q); in macvtap_set_queue() 130 q->queue_index = vlan->numvtaps; in macvtap_set_queue() [all …]
|
/drivers/scsi/fnic/ |
D | fnic_fcs.c | 335 struct fip_vlan *vlan; in fnic_fcoe_send_vlan_req() local 346 fr_len = sizeof(*vlan); in fnic_fcoe_send_vlan_req() 348 vlan = (struct fip_vlan *)eth_fr; in fnic_fcoe_send_vlan_req() 350 memset(vlan, 0, sizeof(*vlan)); in fnic_fcoe_send_vlan_req() 351 memcpy(vlan->eth.h_source, fip->ctl_src_addr, ETH_ALEN); in fnic_fcoe_send_vlan_req() 352 memcpy(vlan->eth.h_dest, fcoe_all_fcfs, ETH_ALEN); in fnic_fcoe_send_vlan_req() 353 vlan->eth.h_proto = htons(ETH_P_FIP); in fnic_fcoe_send_vlan_req() 355 vlan->fip.fip_ver = FIP_VER_ENCAPS(FIP_VER); in fnic_fcoe_send_vlan_req() 356 vlan->fip.fip_op = htons(FIP_OP_VLAN); in fnic_fcoe_send_vlan_req() 357 vlan->fip.fip_subcode = FIP_SC_VL_REQ; in fnic_fcoe_send_vlan_req() [all …]
|
D | cq_exch_desc.h | 64 u16 vlan; member 104 u16 *vlan) in cq_fcp_rq_desc_dec() argument 125 *vlan = desc_ptr->vlan; in cq_fcp_rq_desc_dec()
|
D | cq_enet_desc.h | 44 __le16 vlan; member 97 u8 *vlan_stripped, u16 *vlan, u16 *checksum, u8 *fcoe_sof, in cq_enet_rq_desc_dec() argument 133 *vlan = le16_to_cpu(desc->vlan); in cq_enet_rq_desc_dec()
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | l2t.c | 75 return e->vlan >> 13; in vlan_prio() 156 req->vlan = htons(e->vlan); in write_l2e() 365 u16 vlan; in cxgb4_l2t_get() local 378 vlan = vlan_dev_vlan_id(neigh->dev); in cxgb4_l2t_get() 380 vlan = VLAN_NONE; in cxgb4_l2t_get() 385 e->vlan == vlan && e->lport == lport) { in cxgb4_l2t_get() 406 e->vlan = vlan; in cxgb4_l2t_get() 427 if (tp->vlan_shift >= 0 && l2t->vlan != VLAN_NONE) in cxgb4_select_ntuple() 428 ntuple |= (u64)(F_FT_VLAN_VLD | l2t->vlan) << tp->vlan_shift; in cxgb4_select_ntuple() 547 int t4_l2t_set_switching(struct adapter *adap, struct l2t_entry *e, u16 vlan, in t4_l2t_set_switching() argument [all …]
|
D | l2t.h | 70 u16 vlan; /* VLAN TCI (id: bits 0-11, prio: 13-15 */ member 105 int t4_l2t_set_switching(struct adapter *adap, struct l2t_entry *e, u16 vlan,
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_sriov_pf.c | 788 u16 vlan, u8 op) in qlcnic_sriov_cfg_vf_def_mac() argument 815 if (vlan) in qlcnic_sriov_cfg_vf_def_mac() 823 mv.vlan = vlan; in qlcnic_sriov_cfg_vf_def_mac() 858 u16 vlan; in qlcnic_83xx_cfg_default_mac_vlan() local 866 vlan = vf->sriov_vlans[i]; in qlcnic_83xx_cfg_default_mac_vlan() 867 if (vlan) in qlcnic_83xx_cfg_default_mac_vlan() 868 qlcnic_sriov_cfg_vf_def_mac(adapter, vf, vlan, in qlcnic_83xx_cfg_default_mac_vlan() 1375 u16 vlan; in qlcnic_sriov_pf_del_guest_vlan() local 1380 vlan = cmd->req.arg[1] >> 16; in qlcnic_sriov_pf_del_guest_vlan() 1382 qlcnic_sriov_del_vlan_id(sriov, vf, vlan); in qlcnic_sriov_pf_del_guest_vlan() [all …]
|
D | qlcnic_hw.c | 490 int qlcnic_nic_add_mac(struct qlcnic_adapter *adapter, const u8 *addr, u16 vlan) in qlcnic_nic_add_mac() argument 499 cur->vlan_id == vlan) in qlcnic_nic_add_mac() 510 cur->mac_addr, vlan, QLCNIC_MAC_ADD)) { in qlcnic_nic_add_mac() 515 cur->vlan_id = vlan; in qlcnic_nic_add_mac() 520 static void __qlcnic_set_multi(struct net_device *netdev, u16 vlan) in __qlcnic_set_multi() argument 533 qlcnic_nic_add_mac(adapter, adapter->mac_addr, vlan); in __qlcnic_set_multi() 534 qlcnic_nic_add_mac(adapter, bcast_addr, vlan); in __qlcnic_set_multi() 544 qlcnic_nic_add_mac(adapter, ha->addr, vlan); in __qlcnic_set_multi() 554 qlcnic_nic_add_mac(adapter, ha->addr, vlan); in __qlcnic_set_multi()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | port.c | 371 int __mlx4_register_vlan(struct mlx4_dev *dev, u8 port, u16 vlan, in __mlx4_register_vlan() argument 393 (vlan == (MLX4_VLAN_MASK & in __mlx4_register_vlan() 409 table->entries[free] = cpu_to_be32(vlan | MLX4_VLAN_VALID); in __mlx4_register_vlan() 413 mlx4_warn(dev, "Failed adding vlan: %u\n", vlan); in __mlx4_register_vlan() 426 int mlx4_register_vlan(struct mlx4_dev *dev, u8 port, u16 vlan, int *index) in mlx4_register_vlan() argument 431 if (vlan > 4095) in mlx4_register_vlan() 435 err = mlx4_cmd_imm(dev, vlan, &out_param, in mlx4_register_vlan() 444 return __mlx4_register_vlan(dev, port, vlan, index); in mlx4_register_vlan() 448 void __mlx4_unregister_vlan(struct mlx4_dev *dev, u8 port, u16 vlan) in __mlx4_unregister_vlan() argument 454 if (mlx4_find_cached_vlan(dev, port, vlan, &index)) { in __mlx4_unregister_vlan() [all …]
|
/drivers/net/ethernet/toshiba/ |
D | ps3_gelic_net.c | 789 card->vlan[type].tx); in gelic_descr_prepare_tx() 1004 if (card->vlan[i].rx == vid) { in gelic_card_decode_one_descr() 1617 card->vlan[i].tx = 0; in gelic_card_get_vlan_info() 1618 card->vlan[i].rx = 0; in gelic_card_get_vlan_info() 1621 card->vlan[i].tx = (u16)v1; in gelic_card_get_vlan_info() 1633 card->vlan[i].tx = 0; in gelic_card_get_vlan_info() 1634 card->vlan[i].rx = 0; in gelic_card_get_vlan_info() 1637 card->vlan[i].rx = (u16)v1; in gelic_card_get_vlan_info() 1640 i, card->vlan[i].tx, card->vlan[i].rx); in gelic_card_get_vlan_info() 1643 if (card->vlan[GELIC_PORT_ETHERNET_0].tx) { in gelic_card_get_vlan_info() [all …]
|
/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_pf.c | 347 mac_update.vlan = cpu_to_le16(vid); in fm10k_update_xc_addr_pf() 1175 u16 vlan; in fm10k_iov_msg_mac_vlan_pf() local 1209 err = fm10k_tlv_attr_get_mac_vlan(result, mac, &vlan); in fm10k_iov_msg_mac_vlan_pf() 1219 if (!vlan || (vlan == FM10K_VLAN_CLEAR)) { in fm10k_iov_msg_mac_vlan_pf() 1221 vlan |= vf_info->pf_vid; in fm10k_iov_msg_mac_vlan_pf() 1223 vlan |= vf_info->sw_vid; in fm10k_iov_msg_mac_vlan_pf() 1229 err = hw->mac.ops.update_uc_addr(hw, vf_info->glort, mac, vlan, in fm10k_iov_msg_mac_vlan_pf() 1230 !(vlan & FM10K_VLAN_CLEAR), 0); in fm10k_iov_msg_mac_vlan_pf() 1237 err = fm10k_tlv_attr_get_mac_vlan(result, mac, &vlan); in fm10k_iov_msg_mac_vlan_pf() 1246 if (!vlan || (vlan == FM10K_VLAN_CLEAR)) { in fm10k_iov_msg_mac_vlan_pf() [all …]
|
D | fm10k_debugfs.c | 79 i, txd->buffer_addr, txd->buflen, txd->vlan, in fm10k_dbg_tx_desc_seq_show() 108 rxd->w.length, rxd->w.vlan, rxd->w.dglort, in fm10k_dbg_rx_desc_seq_show()
|
D | fm10k_tlv.c | 129 const u8 *mac_addr, u16 vlan) in fm10k_tlv_attr_put_mac_vlan() argument 146 attr[2] |= (u32)vlan << 16; in fm10k_tlv_attr_put_mac_vlan() 165 s32 fm10k_tlv_attr_get_mac_vlan(u32 *attr, u8 *mac_addr, u16 *vlan) in fm10k_tlv_attr_get_mac_vlan() argument 173 *vlan = (u16)(attr[2] >> 16); in fm10k_tlv_attr_get_mac_vlan()
|
/drivers/net/ethernet/dlink/ |
D | dl2k.c | 30 static int vlan[MAX_UNITS]; variable 46 module_param_array(vlan, int, NULL, 0); 213 np->vlan = (vlan[card_idx] > 0 && vlan[card_idx] < 4096) ? in rio_probe1() 214 vlan[card_idx] : 0; in rio_probe1() 290 if (np->vlan) in rio_probe1() 291 printk(KERN_INFO "vlan(id):\t%d\n", np->vlan); in rio_probe1() 454 if (np->vlan) { in rio_open() 458 dw16(VLANId, np->vlan); in rio_open() 460 dw32(VLANTag, 0x8100 << 16 | np->vlan); in rio_open() 476 macctrl |= (np->vlan) ? AutoVLANuntagging : 0; in rio_open() [all …]
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_sriov.c | 743 static int ixgbe_find_vlvf_entry(struct ixgbe_hw *hw, u32 vlan) in ixgbe_find_vlvf_entry() argument 749 if (vlan == 0) in ixgbe_find_vlvf_entry() 755 if ((vlvf & VLAN_VID_MASK) == vlan) in ixgbe_find_vlvf_entry() 1082 int ixgbe_ndo_set_vf_vlan(struct net_device *netdev, int vf, u16 vlan, u8 qos) in ixgbe_ndo_set_vf_vlan() argument 1088 if ((vf >= adapter->num_vfs) || (vlan > 4095) || (qos > 7)) in ixgbe_ndo_set_vf_vlan() 1090 if (vlan || qos) { in ixgbe_ndo_set_vf_vlan() 1097 err = ixgbe_set_vf_vlan(adapter, true, vlan, vf); in ixgbe_ndo_set_vf_vlan() 1100 ixgbe_set_vmvir(adapter, vlan, qos, vf); in ixgbe_ndo_set_vf_vlan() 1105 adapter->vfinfo[vf].pf_vlan = vlan; in ixgbe_ndo_set_vf_vlan() 1108 "Setting VLAN %d, QOS 0x%x on VF %d\n", vlan, qos, vf); in ixgbe_ndo_set_vf_vlan() [all …]
|
D | ixgbe_82598.c | 881 static s32 ixgbe_set_vfta_82598(struct ixgbe_hw *hw, u32 vlan, u32 vind, in ixgbe_set_vfta_82598() argument 889 if (vlan > 4095) in ixgbe_set_vfta_82598() 893 regindex = (vlan >> 5) & 0x7F; /* upper seven bits */ in ixgbe_set_vfta_82598() 896 vftabyte = ((vlan >> 3) & 0x03); /* bits (4:3) indicating byte array */ in ixgbe_set_vfta_82598() 897 bitindex = (vlan & 0x7) << 2; /* lower 3 bits indicate nibble */ in ixgbe_set_vfta_82598() 906 bitindex = vlan & 0x1F; /* lower five bits */ in ixgbe_set_vfta_82598()
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | l2t.c | 65 return e->vlan >> 13; in vlan_prio() 103 V_L2T_W_VLAN(e->vlan & VLAN_VID_MASK) | in setup_l2e_send_pending() 355 e->vlan = vlan_dev_vlan_id(neigh->dev); in t3_l2t_get() 357 e->vlan = VLAN_NONE; in t3_l2t_get()
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_sriov.c | 422 ramrod.user_req.u.vlan.vlan = filter->vid; in bnx2x_vf_mac_vlan_config() 2591 bnx2x_set_vf_vlan(bp->dev, vfidx, bulletin->vlan, 0); in bnx2x_pf_set_vfs_vlan() 2684 (u8 *)&ivi->vlan, 0, in bnx2x_get_vf_config() 2700 memcpy(&ivi->vlan, &bulletin->vlan, VLAN_HLEN); in bnx2x_get_vf_config() 2703 memset(&ivi->vlan, 0, VLAN_HLEN); in bnx2x_get_vf_config() 2808 int bnx2x_set_vf_vlan(struct net_device *dev, int vfidx, u16 vlan, u8 qos) in bnx2x_set_vf_vlan() argument 2823 if (vlan > 4095) { in bnx2x_set_vf_vlan() 2824 BNX2X_ERR("illegal vlan value %d\n", vlan); in bnx2x_set_vf_vlan() 2829 vfidx, vlan, 0); in bnx2x_set_vf_vlan() 2844 if (vlan > 0) in bnx2x_set_vf_vlan() [all …]
|
D | bnx2x_sp.c | 630 DP(BNX2X_MSG_SP, "Checking VLAN %d for ADD command\n", data->vlan.vlan); in bnx2x_check_vlan_add() 633 if (data->vlan.vlan == pos->u.vlan.vlan) in bnx2x_check_vlan_add() 664 DP(BNX2X_MSG_SP, "Checking VLAN %d for DEL command\n", data->vlan.vlan); in bnx2x_check_vlan_del() 667 if (data->vlan.vlan == pos->u.vlan.vlan) in bnx2x_check_vlan_del() 1001 u16 vlan = elem->cmd_data.vlan_mac.u.vlan.vlan; in bnx2x_set_one_vlan_e2() local 1009 &rule_entry->vlan.header); in bnx2x_set_one_vlan_e2() 1012 vlan); in bnx2x_set_one_vlan_e2() 1015 rule_entry->vlan.vlan = cpu_to_le16(vlan); in bnx2x_set_one_vlan_e2() 1026 &rule_entry->vlan.header); in bnx2x_set_one_vlan_e2() 1029 rule_entry->vlan.vlan = cpu_to_le16(vlan); in bnx2x_set_one_vlan_e2() [all …]
|
/drivers/infiniband/core/ |
D | ud_header.c | 109 { STRUCT_FIELD(vlan, tag), 113 { STRUCT_FIELD(vlan, type), 306 &header->vlan, buf + len); in ib_ud_header_pack()
|
/drivers/net/ethernet/cisco/enic/ |
D | cq_enet_desc.h | 46 __le16 vlan; member 151 *vlan_tci = le16_to_cpu(desc->vlan); in cq_enet_rq_desc_dec()
|
/drivers/net/ethernet/sfc/ |
D | siena_sriov.c | 304 u16 vlan; in efx_sriov_reset_tx_filter() local 324 vlan = ntohs(vf->addr.tci) & VLAN_VID_MASK; in efx_sriov_reset_tx_filter() 327 vlan ? vlan : EFX_FILTER_VID_UNSPEC, in efx_sriov_reset_tx_filter() 348 u16 vlan; in efx_sriov_reset_rx_filter() local 362 vlan = ntohs(vf->addr.tci) & VLAN_VID_MASK; in efx_sriov_reset_rx_filter() 367 vlan ? vlan : EFX_FILTER_VID_UNSPEC, in efx_sriov_reset_rx_filter() 1580 u16 vlan, u8 qos) in efx_sriov_set_vf_vlan() argument 1591 tci = (vlan & VLAN_VID_MASK) | ((qos & 0x7) << VLAN_PRIO_SHIFT); in efx_sriov_set_vf_vlan() 1639 ivi->vlan = tci & VLAN_VID_MASK; in efx_sriov_get_vf_config()
|
/drivers/net/ethernet/tundra/ |
D | tsi108_eth.h | 319 u16 vlan; /* VLAN, if override enabled for this packet */ member 346 u16 vlan; /* VLAN of received packet, first frag only */ member
|
/drivers/net/ethernet/alteon/ |
D | acenic.h | 462 u16 vlan; 468 u16 vlan; 512 u16 vlan; member 516 u16 vlan; member
|