diff options
author | Hao Zheng <hzheng@nicira.com> | 2010-11-11 13:47:58 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-12 12:30:57 -0800 |
commit | d0d9d8ef5949551276f635cb04969184ba1a9553 (patch) | |
tree | af047399a863775870adf28a476056526704a612 /drivers/net/ixp2000/ixp2400_tx.ucode | |
parent | 0a85df004667c99efc31fab07386823eefce3be5 (diff) | |
download | linux-d0d9d8ef5949551276f635cb04969184ba1a9553.tar.bz2 |
bnx2x: Look inside vlan when determining checksum proto.
Currently the skb->protocol field is used to setup checksum
offloading 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 checksum to be not computed 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: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ixp2000/ixp2400_tx.ucode')
0 files changed, 0 insertions, 0 deletions