On 05/13/2016 02:21 PM, Long Hoang wrote:
This is extremely odd. AFAIK, the vlan tag is stripped off on the card before it ever gets to the OS in the guest. Are you certain that the guest has no knowledge of the vlan tag, and that the tag is set in the card itself (look at the output of "ip link show" for the PF and see if that VF has a vlan tag listed).
The same problem exists in the igb (82576), ixgb and enic drivers (at least). I've meant to file a bug against the kernel, but keep getting sidetracked while I'm half-finished writing it.
You can kind of work around the problem by setting all your VF macs to 00:00:00:00:00:01 at boot time:
for vf in $(seq 0 6)
ip link set $PF vf 6 mac 00:00:00:00:00:01
Then when it's resetting the MAC, it will reset to a value the kernel accepts.