]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Look inside vlan when determining offload protocol.
authorHao Zheng <hzheng@nicira.com>
Thu, 11 Nov 2010 13:47:59 +0000 (13:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Nov 2010 20:30:58 +0000 (12:30 -0800)
commitdaffc10dca1bd04bded5280b7b396cfe9921e7b2
tree96f4e50a9a55ed84a6a5589c30e3c9b192a8f91b
parent383cb6b0859856ab89374ec0c516e5b52e96a08d
ixgbe: Look inside vlan when determining offload protocol.

Currently the skb->protocol field is used to setup various
offloading parameters on transmit for the correct protocol.
However, if vlan offloading is disabled or otherwise not used,
the protocol field will be ETH_P_8021Q, not the actual protocol.
This will cause the offloading to be not performed correctly,
even though the hardware is capable of looking inside vlan tags.
Instead, look inside the header if necessary to determine the
correct protocol type.

To some extent this fixes a regression from 2.6.36 because it
was previously not possible to disable vlan offloading and this
error case was not exposed.

Signed-off-by: Hao Zheng <hzheng@nicira.com>
CC: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
CC: Alex Duyck <alexander.h.duyck@intel.com>
CC: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_main.c