Ethernet Products
Determine ramifications of Intel® Ethernet products and technologies
5237 Discussions

IXGBE Stripping VLAN on Inbound Packets

idata
Employee
2,562 Views

I am using an <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-alt:"Calisto MT"; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-alt:"Times New Roman"; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman","serif"; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; font-size:10.0pt; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} -->Intel 10 Gigabit E10G42AFDA with an 82598EB controller. I am running the newest driver 2.0.84.9-NAPI on an Ubuntu 9.10 Server with the 2.6.33.5 kernel patched with RT-Extensions rt23.

The physical port is connected to an ethernet swicth set to TRUNK mode. I am running a utility that will set VLANs for packets according to the Virtual Machine sending the traffic.

All packets leave the server / nic properly 802.1Q tagged - however all inbound packets arrive to eth1 without 802.1Q tags ... they are being stripped by the driver.

This has been verified with a wireshark capture that clearly shows all packets on wire in both directions are properly 802.1Q tagged.

I know that the driver has SRIOV support can provide VLAN services ... but I don't want those VLAN services ... I just want the packets to be passed as is ... with tag or without tag to the OS.

Where are there instructions on the driver compilation or configuration to stop the VLAN stripping? Thanks.

John

0 Kudos
2 Replies
JOHN_R_Intel1
Employee
901 Views

This has been discussed on the netdev kernel mail list a number of times and not just about the Intel Ethernet drivers. It is fine for the drivers to strip the VLAN tags. If you want to see the tags in the packets you need to enable promiscuous mode in the driver. This is what something like Wireshark does to see everything in the actual packets.

Hope this helps.

0 Kudos
idata
Employee
901 Views

Patch the ixgbe driver:

File: ixgbe_main.c

Function: static int __devinit ixgbe_probe(struct pci_dev *pdev,

 

const struct pci_device_id *ent)

Pacth:

# if 0

 

netdev->features = NETIF_F_SG |

 

NETIF_F_HW_CSUM |

 

NETIF_F_HW_VLAN_TX |

 

NETIF_F_HW_VLAN_RX |

 

NETIF_F_HW_VLAN_FILTER;

 

# else

 

/* 10-05-2010: Bhal patched this to allow VLAN Tags available to wireshark */

 

netdev->features = NETIF_F_SG |

 

NETIF_F_HW_CSUM;

 

# endif

Hope that helps!

Thanks,

Bhal

0 Kudos
Reply