]> git.baikalelectronics.ru Git - kernel.git/commit
offloading: Force software GSO for multiple vlan tags.
authorJesse Gross <jesse@nicira.com>
Fri, 29 Oct 2010 12:14:55 +0000 (12:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Nov 2010 17:22:53 +0000 (09:22 -0800)
commitfe645a76284acf8ebe8003b6085aa2ec08d71cfc
treede3bbb355639d4bd6f2858d6265537672554d13b
parentb91b1605c3ee22e655c2c8dcbedeb869ed5de689
offloading: Force software GSO for multiple vlan tags.

We currently use vlan_features to check for TSO support if there is
a vlan tag.  However, it's quite likely that the NIC is not able to
do TSO when there is an arbitrary number of tags.  Therefore if there
is more than one tag (in-band or out-of-band), fall back to software
emulation.

Signed-off-by: Jesse Gross <jesse@nicira.com>
CC: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c