<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 05/13/2016 02:21 PM, Long Hoang
wrote:<br>
</div>
<blockquote
cite="mid:CAMFQ-zQEX2=T+PCFo1k9JRVgwAHL4UsKchh=YhqdM960WT3M_g@mail.gmail.com"
type="cite">
<div dir="ltr">Hello everyone,<br>
<br>
I'm having problem with SR-IOV transparent VLAN.<br>
My host is Fedora 22 and my guest is: pfSense 2.3. The NIC is
Intel 82576.<br>
<br>
I'm using pfSense Packet Capture to check the packet and find
that inbound packet still have the vlan tag. The outbound packet
seem fine because the router can receive DHCP discover packet
from the guest and then send DHCP offer and ARP request packet
to the guest (which still have the vlan tag so the guest does
not response).<br>
<br>
Loading Ubuntu LiveCD in the same VM does not have this issue so
I do not know what is the cause? Any idea to diagnose?<br>
</div>
</blockquote>
<br>
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).<br>
<br>
<br>
<blockquote
cite="mid:CAMFQ-zQEX2=T+PCFo1k9JRVgwAHL4UsKchh=YhqdM960WT3M_g@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
<br>
Another problem I have is libvirt does not correctly restore the
vf mac address to all zero and then some occasion, there will be
duplicate mac address in different vfs which will trigger spoof
checking.<br>
I found the related mail here <a moz-do-not-send="true"
href="https://www.redhat.com/archives/libvir-list/2015-December/msg00478.html">https://www.redhat.com/archives/libvir-list/2015-December/msg00478.html</a>
which point to this bug <a moz-do-not-send="true"
href="https://bugzilla.redhat.com/show_bug.cgi?id=1302166">https://bugzilla.redhat.com/show_bug.cgi?id=1302166</a>
. The bug only mention to <font color="#000000"><span style="white-space:pre-wrap">mellanox cards. Do anyone have the same problem (with igb/igbvf driver) ? Or is it fixed in upstream?</span></font></div>
</blockquote>
<br>
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.<br>
<br>
You can kind of work around the problem by setting all your VF macs
to 00:00:00:00:00:01 at boot time:<br>
<br>
for vf in $(seq 0 6)<br>
do<br>
ip link set $PF vf 6 mac 00:00:00:00:00:01<br>
done<br>
<br>
Then when it's resetting the MAC, it will reset to a value the
kernel accepts.<br>
<br>
<blockquote
cite="mid:CAMFQ-zQEX2=T+PCFo1k9JRVgwAHL4UsKchh=YhqdM960WT3M_g@mail.gmail.com"
type="cite">
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
libvirt-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/libvirt-users">https://www.redhat.com/mailman/listinfo/libvirt-users</a></pre>
</blockquote>
<p><br>
</p>
</body>
</html>