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
2015-08-03 19:22:42 +02:00
2015-09-30 01:19:19 +02:00
2015-10-07 13:25:07 +02:00
2015-10-02 01:35:23 +02:00
2015-09-03 19:22:48 +02:00
2015-08-17 19:35:37 +02:00
2015-07-09 00:56:40 +02:00
2015-08-03 19:22:42 +02:00
2013-03-07 10:57:42 +01:00
2015-05-22 15:51:38 +02:00
2013-07-25 14:43:06 +02:00
2015-09-03 19:22:48 +02:00
2014-06-11 00:29:34 +02:00
Description
No description provided
Languages
C 99.1%
Meson 0.5%
Python 0.2%
Shell 0.1%