numam-dpdk/drivers/net
Wang Xiao W e78a599651 fm10k/base: fix VF multicast
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.

Create a function, fm10k_iov_select_vid which implements the logic for
selecting a default vid. This helps us remove duplicate code and
streamlines location of this logic so that we don't make similar bugs in
the future.

Signed-off-by: Wang Xiao W <xiao.w.wang@intel.com>
2015-10-07 13:25:07 +02:00
..
af_packet mem: move librte_malloc to eal/common 2015-07-16 13:44:48 +02:00
bnx2x bnx2x: fix part of 32-bit build 2015-08-03 17:39:11 +02:00
bonding bonding: fix device initialisation error handling 2015-08-10 02:05:42 +02:00
cxgbe mbuf: remove packet type from offload flags 2015-09-03 19:22:48 +02:00
e1000 mbuf: remove packet type from offload flags 2015-09-03 19:22:48 +02:00
enic ethdev: remove old flow director API 2015-09-30 01:19:19 +02:00
fm10k fm10k/base: fix VF multicast 2015-10-07 13:25:07 +02:00
i40e i40e/base: add outer UDP checksum for X722 2015-10-02 01:35:23 +02:00
ixgbe ixgbe: remove burst size restriction of vector Rx 2015-09-09 15:17:41 +02:00
mlx4 ethdev: remove old flow director API 2015-09-30 01:19:19 +02:00
mpipe mpipe: add TILE-Gx mPIPE poll mode driver 2015-07-13 16:15:52 +02:00
null mem: move librte_malloc to eal/common 2015-07-16 13:44:48 +02:00
pcap mem: move librte_malloc to eal/common 2015-07-16 13:44:48 +02:00
ring ring: remove deprecated functions 2015-09-03 19:22:48 +02:00
virtio virtio: small cleanups 2015-07-22 10:55:26 +02:00
vmxnet3 mbuf: remove packet type from offload flags 2015-09-03 19:22:48 +02:00
xenvirt mem: move librte_malloc to eal/common 2015-07-16 13:44:48 +02:00
Makefile bnx2x: enable PMD build 2015-07-27 04:27:15 +02:00