linux/drivers/net/ethernet/intel
Jacob Keller 9adbac599a fm10k: fix iov_msg_mac_vlan_pf VID checks
The VF will send a message to request multicast addresses with the
default VID. In the current code, if the PF has statically assigned a
VLAN to a VF, then the VF will not get the multicast addresses. Fix up
all of the various VLAN messages to use identical checks (since each
check was different). Also use set as a variable, so that it simplifies
our check for whether VLAN matches the pf_vid.

The new logic will allow set of a VLAN if it is zero, automatically
converting to the default VID. Otherwise it will allow setting the PF
VID, or any VLAN if PF has not statically assigned a VLAN. This is
consistent behavior, and allows VF to request either 0 or the
default_vid without silently failing.

Note that we need the check for zero since VFs might not get the default
VID message in time to actually request non-zero VLANs.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2015-09-15 17:06:23 -07:00
..
e1000 e1000: Replace e1000_free_frag with skb_free_frag 2015-05-12 10:39:27 -04:00
e1000e e1000e: Modify Tx/Rx configurations to avoid null pointer dereferences in e1000_open 2015-08-18 14:06:06 -07:00
fm10k fm10k: fix iov_msg_mac_vlan_pf VID checks 2015-09-15 17:06:23 -07:00
i40e i40e: Set defport behavior for the Main VSI when in promiscuous mode 2015-09-01 16:33:00 -07:00
i40evf i40e/i40evf: Bump i40e to 1.3.9 and i40evf to 1.3.5 2015-08-26 15:14:36 -07:00
igb Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-08-27 21:45:31 -07:00
igbvf igbvf: clear buffer_info->dma after dma_unmap_single() 2015-08-18 14:06:06 -07:00
ixgb ixgb: call netif_carrier_off early on down 2015-03-20 17:41:52 -07:00
ixgbe ixgbe: Limit lowest interrupt rate for adaptive interrupt moderation to 12K 2015-09-15 17:05:12 -07:00
ixgbevf Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-08-27 21:45:31 -07:00
e100.c e100: Release skb when DMA mapping is failed in e100_xmit_prepare 2015-08-18 14:06:05 -07:00
Kconfig drivers/net: remove all references to obsolete Ethernet-HOWTO 2015-06-23 06:50:35 -07:00
Makefile fm10k: Add skeletal frame for Intel(R) FM10000 Ethernet Switch Host Interface Driver 2014-09-23 03:59:13 -07:00