Thank you for posting in Wired Ethernet Community.
Kindly refer to the thread below for suggestions related to your concern.
Thank you for the update. Just to double check are you referring that you tried already the suggestion provided by RaviKB dated July but this did not work for you. If that is the case, can you share more information after you applied the suggestion. Thank you.
Thank you for the clarification. Based on the post from Ravi dated July 7, 2015 at 1:16 AM. He was able to receive packets w/ Vlan tag in his virtual machine after he modified the code.
In case this is not applicable to your case, please share more information below:
• Host kernel and dmesg logs.
• Guest kernel and dmesg logs.
• Detailed setup instructions for reproducing the issue in house.
Looking forward to your update. Thanks.
I am attaching below message from Ravi where he describes his solution, there you see, he is working with VF's which doesn't have vlan tags.
As I mentioned in my earlier mails, my requirement was to get the VLAN tagged packets in the VM and VM sending out fully tagged packet. For sending out VLAN tagged packet, I disabled the spoof check using ip link command and did not add any VLAN tag to interface (VF). However, for receiving the VLAN tagged packet into the VM, I had to change a little in ixgbe driver and forcefully disable VLAN filtering.
In ixgbe_main.c in the function: "void ixgbe_set_rx_mode(struct net_device *netdev)" before writing to VLANCTRL register at the end of function, I have added:
/* Forcefully Disable VLAN Filtering in VLANCTRL */
vlnctrl &= ~(IXGBE_VLNCTRL_VFE | IXGBE_VLNCTRL_CFIEN);
Hope it helps.
Coming back to my requirement, what I am looking for is sending out tagged packets from Guest OS, whereas at the same time my VF also has vlan tag configured.
This could either behave as q-in-q where vlan tag from guest will be seen as inner tag and tag from VF will be seen as outer tag, when packet comes out of nic card, or it can have the both the guest and host tag can be same and VF doesn't add any extra tag, so that packet coming out of nic will have one tag sent from guest.
To reproduce this internally, you can just configure the VF with vlan tag, and send tagged packets from Guest. Let me know, if that works for you. For me, as I send tagged packets from guest (when VF is also tagged), I can see dmesg logs for detected spoofed packets, and no packets comes out of nic card.
Let me know, if you need any more info in addition to what I have already provided in problem description.
Please try update the following driver:
1) ixgbe version 5.1
2) ixgbevf version 4.1
Feel free to update me.