ixgbe: Correctly obtain protocol information on transmit
authorAuke Kok <auke-jan.h.kok@intel.com>
Tue, 12 Feb 2008 23:20:33 +0000 (15:20 -0800)
committerJeff Garzik <jeff@garzik.org>
Fri, 15 Feb 2008 15:52:08 +0000 (10:52 -0500)
commit41825d7158d4ca6488d562d73279392a886b9e7c
tree39e0bdb0c8436cf95e4443c928675ca52b3f3533
parent5918bd88effd0233a048983570ec5803f5f753dc
ixgbe: Correctly obtain protocol information on transmit

In reply to "RE: [Fwd: [PATCH 2.6.25] ixgbe/igb: correctly obtain protocol
information on transmit]" from Andy Gospodarek:

The driver was incorrectly looking at socket headers for
protocol information, needed for checksumming offload. Fix
this by not looking at the socket but frame headers instead.

This disregards extension headers but it's unclear that linux
generates those anyway.

Tested by Andy Gospodarek.

Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/ixgbe/ixgbe_main.c