Searched refs:vid (Results 176 - 200 of 614) sorted by path

1234567891011>>

/linux-master/drivers/net/ethernet/cisco/enic/
H A Denic_dev.h35 int enic_vlan_rx_add_vid(struct net_device *netdev, __be16 proto, u16 vid);
36 int enic_vlan_rx_kill_vid(struct net_device *netdev, __be16 proto, u16 vid);
/linux-master/drivers/net/ethernet/emulex/benet/
H A Dbe_cmds.c3945 u16 vid; local
3980 vid = AMAP_GET_BITS(struct amap_get_hsw_resp_context,
3983 *pvid = le16_to_cpu(vid);
H A Dbe_main.c1572 static int be_vlan_add_vid(struct net_device *netdev, __be16 proto, u16 vid) argument
1580 if (lancer_chip(adapter) && vid == 0)
1583 if (test_bit(vid, adapter->vids))
1586 set_bit(vid, adapter->vids);
1595 static int be_vlan_rem_vid(struct net_device *netdev, __be16 proto, u16 vid) argument
1603 if (lancer_chip(adapter) && vid == 0)
1606 if (!test_bit(vid, adapter->vids))
1609 clear_bit(vid, adapter->vids);
/linux-master/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-eth.c2422 __be16 vlan_proto, u16 vid)
2428 vid, 0, 0, 0);
2433 vid);
2441 __be16 vlan_proto, u16 vid)
2446 err = dpni_remove_vlan_id(priv->mc_io, 0, priv->mc_token, vid);
2451 vid);
2421 dpaa2_eth_rx_add_vid(struct net_device *net_dev, __be16 vlan_proto, u16 vid) argument
2440 dpaa2_eth_rx_kill_vid(struct net_device *net_dev, __be16 vlan_proto, u16 vid) argument
H A Ddpaa2-switch.c191 static int dpaa2_switch_add_vlan(struct ethsw_port_priv *port_priv, u16 vid) argument
199 ethsw->dpsw_handle, vid, &vcfg);
204 ethsw->vlans[vid] = ETHSW_VLAN_MEMBER;
284 u16 vid, u16 flags)
291 if (port_priv->vlans[vid]) {
292 netdev_err(netdev, "VLAN %d already configured\n", vid);
303 err = dpsw_vlan_add_if(ethsw->mc_io, 0, ethsw->dpsw_handle, vid, &vcfg);
309 port_priv->vlans[vid] = ETHSW_VLAN_MEMBER;
314 vid, &vcfg);
320 port_priv->vlans[vid] |
283 dpaa2_switch_port_add_vlan(struct ethsw_port_priv *port_priv, u16 vid, u16 flags) argument
354 u16 vid; local
379 dpaa2_switch_dellink(struct ethsw_core *ethsw, u16 vid) argument
946 dpaa2_switch_port_vlan_add(struct net_device *netdev, __be16 proto, u16 vid) argument
960 dpaa2_switch_port_vlan_kill(struct net_device *netdev, __be16 proto, u16 vid) argument
1876 dpaa2_switch_port_del_vlan(struct ethsw_port_priv *port_priv, u16 vid) argument
2047 dpaa2_switch_port_clear_rxvlan(struct net_device *vdev, int vid, void *arg) argument
2057 dpaa2_switch_port_restore_rxvlan(struct net_device *vdev, int vid, void *arg) argument
2442 u16 vlan_tci, vid; local
[all...]
/linux-master/drivers/net/ethernet/freescale/enetc/
H A Denetc.c229 temp_bd.ext.vid = cpu_to_le16(skb_vlan_tag_get(skb));
382 txbd_tmp.ext.vid = cpu_to_le16(skb_vlan_tag_get(skb));
H A Denetc_hw.h550 __le16 vid; member in struct:enetc_tx_bd::__anon1108
H A Denetc_pf.c265 static int enetc_vid_hash_idx(unsigned int vid) argument
271 res |= (hweight8(vid & (BIT(i) | BIT(i + 6))) & 0x1) << i;
293 static int enetc_vlan_rx_add_vid(struct net_device *ndev, __be16 prot, u16 vid) argument
299 __set_bit(vid, pf->active_vlans);
301 idx = enetc_vid_hash_idx(vid);
308 static int enetc_vlan_rx_del_vid(struct net_device *ndev, __be16 prot, u16 vid) argument
313 __clear_bit(vid, pf->active_vlans);
H A Denetc_qos.c421 u16 vid; member in struct:enetc_streamid
585 si_data->vid_vidm_tg = (sid->vid & ENETC_CBDR_SID_VID_MASK) +
590 si_data->vid_vidm_tg = (sid->vid & ENETC_CBDR_SID_VID_MASK) +
1222 filter->sid.vid = match.key->vlan_id;
1223 if (!filter->sid.vid)
/linux-master/drivers/net/ethernet/freescale/
H A Ducc_geth.h962 = 0x1, /* Tagged - replace vid portion of q tag */
964 = 0x2, /* Tagged - if vid0 replace vid with default value */
1073 u16 vid; member in struct:ucc_geth_tad_params
/linux-master/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_enet.c2682 __be16 proto, u16 vid)
2688 ret = h->ae_algo->ops->set_vlan_filter(h, proto, vid, false);
2694 __be16 proto, u16 vid)
2700 ret = h->ae_algo->ops->set_vlan_filter(h, proto, vid, true);
2681 hns3_vlan_rx_add_vid(struct net_device *netdev, __be16 proto, u16 vid) argument
2693 hns3_vlan_rx_kill_vid(struct net_device *netdev, __be16 proto, u16 vid) argument
/linux-master/drivers/net/ethernet/huawei/hinic/
H A Dhinic_main.c599 u16 vid = 0; local
611 err = hinic_port_del_mac(nic_dev, netdev->dev_addr, vid);
618 err = hinic_port_add_mac(nic_dev, addr, vid);
624 vid = find_next_bit(nic_dev->vlan_bitmap, VLAN_N_VID, vid + 1);
625 } while (vid != VLAN_N_VID);
656 u16 vid = 0; local
665 err = hinic_port_add_mac(nic_dev, addr, vid);
671 vid = find_next_bit(nic_dev->vlan_bitmap, VLAN_N_VID, vid
688 u16 vid = 0; local
714 hinic_vlan_rx_add_vid(struct net_device *netdev, __always_unused __be16 proto, u16 vid) argument
752 hinic_vlan_rx_kill_vid(struct net_device *netdev, __always_unused __be16 proto, u16 vid) argument
[all...]
H A Dhinic_rx.c372 u16 vid; local
414 vid = HINIC_GET_RX_VLAN_TAG(vlan_len);
415 __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vid);
H A Dhinic_sriov.c102 static int hinic_set_vf_vlan(struct hinic_hwdev *hwdev, bool add, u16 vid, argument
111 if (!vid && !add)
115 vf_vlan.vlan_id = vid;
/linux-master/drivers/net/ethernet/ibm/ehea/
H A Dehea_main.c2089 static int ehea_vlan_rx_add_vid(struct net_device *dev, __be16 proto, u16 vid) argument
2113 index = (vid / 64);
2114 cb1->vlan_filter[index] |= ((u64)(0x8000000000000000 >> (vid & 0x3F)));
2127 static int ehea_vlan_rx_kill_vid(struct net_device *dev, __be16 proto, u16 vid) argument
2151 index = (vid / 64);
2152 cb1->vlan_filter[index] &= ~((u64)(0x8000000000000000 >> (vid & 0x3F)));
/linux-master/drivers/net/ethernet/intel/e1000/
H A De1000_main.c147 __be16 proto, u16 vid);
149 __be16 proto, u16 vid);
305 u16 vid = hw->mng_cookie.vlan_id; local
311 if (!test_bit(vid, adapter->active_vlans)) {
314 e1000_vlan_rx_add_vid(netdev, htons(ETH_P_8021Q), vid);
315 adapter->mng_vlan_id = vid;
320 (vid != old_vid) &&
325 adapter->mng_vlan_id = vid;
4004 u16 vid = le16_to_cpu(vlan) & E1000_RXD_SPC_VLAN_MASK; local
4006 __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vid);
4283 u16 vid = le16_to_cpu(vlan) & E1000_RXD_SPC_VLAN_MASK; local
4878 u16 vid; local
4944 e1000_vlan_rx_add_vid(struct net_device *netdev, __be16 proto, u16 vid) argument
4970 e1000_vlan_rx_kill_vid(struct net_device *netdev, __be16 proto, u16 vid) argument
4998 u16 vid; local
[all...]
/linux-master/drivers/net/ethernet/intel/e1000e/
H A Dnetdev.c2695 __always_unused __be16 proto, u16 vid)
2704 (vid == adapter->mng_vlan_id))
2709 index = (vid >> 5) & 0x7F;
2711 vfta |= BIT((vid & 0x1F));
2715 set_bit(vid, adapter->active_vlans);
2721 __always_unused __be16 proto, u16 vid)
2729 (vid == adapter->mng_vlan_id)) {
2737 index = (vid >> 5) & 0x7F;
2739 vfta &= ~BIT((vid & 0x1F));
2743 clear_bit(vid, adapte
2694 e1000_vlan_rx_add_vid(struct net_device *netdev, __always_unused __be16 proto, u16 vid) argument
2720 e1000_vlan_rx_kill_vid(struct net_device *netdev, __always_unused __be16 proto, u16 vid) argument
2823 u16 vid = adapter->hw.mng_cookie.vlan_id; local
2837 u16 vid; local
[all...]
/linux-master/drivers/net/ethernet/intel/fm10k/
H A Dfm10k.h125 u16 vid; /* default VLAN ID of queue */ member in struct:fm10k_ring
237 u16 vid; member in struct:fm10k_macvlan_request::__anon1024::fm10k_mac_request
240 u32 vid; member in struct:fm10k_macvlan_request::__anon1024::fm10k_vlan_request
390 u16 vid; member in struct:fm10k_intfc
512 int fm10k_queue_vlan_request(struct fm10k_intfc *interface, u32 vid,
515 const unsigned char *addr, u16 vid, bool set);
534 int vf_idx, u16 vid, u8 qos, __be16 vlan_proto);
H A Dfm10k_iov.c43 u32 vid; local
53 err = fm10k_tlv_attr_get_u32(result, &vid);
57 set = !(vid & FM10K_VLAN_CLEAR);
58 vid &= ~FM10K_VLAN_CLEAR;
67 * SW vid when assigned.
70 if (vid >> 16) {
77 err = fm10k_iov_select_vid(vf_info, (u16)vid);
81 vid = err;
85 err = hw->mac.ops.update_vlan(hw, vid, vf_info->vsi, set);
590 int fm10k_ndo_set_vf_vlan(struct net_device *netdev, int vf_idx, u16 vid, argument
[all...]
H A Dfm10k_main.c466 u16 vid = le16_to_cpu(rx_desc->w.vlan); local
468 if ((vid & VLAN_VID_MASK) != rx_ring->vid)
469 __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vid);
470 else if (vid & VLAN_PRIO_MASK)
472 vid & VLAN_PRIO_MASK);
H A Dfm10k_netdev.c634 * @vid: the VLAN vid
644 u32 vid, u8 vsi, bool set)
657 request->vlan.vid = vid;
675 * @vid: the vid to update
683 const unsigned char *addr, u16 vid, bool set)
702 request->mac.vid = vid;
643 fm10k_queue_vlan_request(struct fm10k_intfc *interface, u32 vid, u8 vsi, bool set) argument
682 fm10k_queue_mac_request(struct fm10k_intfc *interface, u16 glort, const unsigned char *addr, u16 vid, bool set) argument
758 u16 vid = interface->vid; local
778 u16 vid = interface->vid; local
793 fm10k_update_vid(struct net_device *netdev, u16 vid, bool set) argument
895 fm10k_vlan_rx_add_vid(struct net_device *netdev, __always_unused __be16 proto, u16 vid) argument
902 fm10k_vlan_rx_kill_vid(struct net_device *netdev, __always_unused __be16 proto, u16 vid) argument
909 fm10k_find_next_vlan(struct fm10k_intfc *interface, u16 vid) argument
922 u32 vid, prev_vid; local
941 u16 vid, glort = interface->glort; local
1006 u16 vid, glort = interface->glort; local
1087 u16 vid, glort; local
1353 u16 vid, glort; local
1451 u16 vid, glort; local
[all...]
H A Dfm10k_pci.c818 item->mac.vid,
825 item->mac.vid,
831 item->vlan.vid,
1032 ring->vid = hw->mac.default_vid;
1036 ring->vid |= FM10K_VLAN_CLEAR;
H A Dfm10k_pf.c186 * @vid: VLAN ID to add to table
195 static s32 fm10k_update_vlan_pf(struct fm10k_hw *hw, u32 vid, u8 vsi, bool set) argument
216 len = vid >> 16;
217 vid = (vid << 17) >> 17;
220 if (len >= FM10K_VLAN_TABLE_VID_MAX || vid >= FM10K_VLAN_TABLE_VID_MAX)
224 for (reg = FM10K_VLAN_TABLE(vsi, vid / 32), bit = vid % 32;
298 * @vid: VLAN ID to add/remove from table
306 const u8 *mac, u16 vid, boo
305 fm10k_update_xc_addr_pf(struct fm10k_hw *hw, u16 glort, const u8 *mac, u16 vid, bool add, u8 flags) argument
352 fm10k_update_uc_addr_pf(struct fm10k_hw *hw, u16 glort, const u8 *mac, u16 vid, bool add, u8 flags) argument
373 fm10k_update_mc_addr_pf(struct fm10k_hw *hw, u16 glort, const u8 *mac, u16 vid, bool add) argument
624 u32 vid = hw->mac.default_vid << FM10K_TXQCTL_VID_SHIFT; local
1172 fm10k_iov_select_vid(struct fm10k_vf_info *vf_info, u16 vid) argument
1201 u32 vid; local
[all...]
H A Dfm10k_vf.c160 * @vid: VLAN ID to add to table
167 static s32 fm10k_update_vlan_vf(struct fm10k_hw *hw, u32 vid, u8 vsi, bool set) argument
176 /* clever trick to verify reserved bits in both vid and length */
177 if ((vid << 16 | vid) >> 28)
182 vid |= FM10K_VLAN_CLEAR;
186 fm10k_tlv_attr_put_u32(msg, FM10K_MAC_VLAN_MSG_VLAN, vid);
204 u16 vid; local
210 perm_addr, &vid);
215 hw->mac.default_vid = vid
270 fm10k_update_uc_addr_vf(struct fm10k_hw *hw, u16 __always_unused glort, const u8 *mac, u16 vid, bool add, u8 __always_unused flags) argument
314 fm10k_update_mc_addr_vf(struct fm10k_hw *hw, u16 __always_unused glort, const u8 *mac, u16 vid, bool add) argument
[all...]
/linux-master/drivers/net/ethernet/intel/i40e/
H A Di40e.h1221 int i40e_vsi_add_pvid(struct i40e_vsi *vsi, u16 vid);
1271 int i40e_add_vlan_all_mac(struct i40e_vsi *vsi, s16 vid);
1272 int i40e_vsi_add_vlan(struct i40e_vsi *vsi, u16 vid);
1273 void i40e_rm_vlan_all_mac(struct i40e_vsi *vsi, s16 vid);
1274 void i40e_vsi_kill_vlan(struct i40e_vsi *vsi, u16 vid);

Completed in 517 milliseconds

1234567891011>>