datapath: Fix Xen performance when adding a VLAN tag in presence of GSO.
authorBen Pfaff <blp@nicira.com>
Fri, 17 Apr 2009 22:00:55 +0000 (15:00 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 17 Apr 2009 22:00:55 +0000 (15:00 -0700)
commite599b7a6f25858bed10f9e6760374f017b3a2b93
tree3e6d297a59b757dddb9034f88cebb296bbf8b032
parentce37b383a0979576b35c725f601e89e4ac5b3e0e
datapath: Fix Xen performance when adding a VLAN tag in presence of GSO.

When the datapath needed to add a VLAN tag to a GSO packet, it would stick
it on the front of the packet and pass it along.  Then GSO would later fail
because it didn't know how to segment an 802.1Q packet.  So we need to
segment GSO packets by ourselves before we put the 802.1Q header on them.

We could avoid this problem if we could patch the main kernel, either to
add GSO support to the VLAN protocol or to support hardware-accelerated
VLAN tagging without VLAN groups configured).

Bug #1231.
datapath/actions.c
datapath/actions.h
datapath/datapath.c
datapath/datapath.h