android_kernel_xiaomi_sm8350/drivers/net/bnx2x
Hao Zheng d0d9d8ef59 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>
2010-11-12 12:30:57 -08:00
..
bnx2x_cmn.c bnx2x: Look inside vlan when determining checksum proto. 2010-11-12 12:30:57 -08:00
bnx2x_cmn.h bnx2x: make local function static and remove dead code 2010-10-24 15:07:13 -07:00
bnx2x_dump.h bnx2x: Add 57712 support 2010-10-06 14:10:37 -07:00
bnx2x_ethtool.c bnx2/bnx2x: Unsupported Ethtool operations should return -EINVAL. 2010-10-21 19:59:32 -07:00
bnx2x_fw_defs.h bnx2x, cnic, bnx2i: use new FW/HSI 2010-10-06 14:10:35 -07:00
bnx2x_fw_file_hdr.h bnx2x, cnic, bnx2i: use new FW/HSI 2010-10-06 14:10:35 -07:00
bnx2x_hsi.h bnx2x: Do not enable CL37 BAM unless it is explicitly enabled 2010-11-01 06:21:38 -07:00
bnx2x_init_ops.h bnx2x: make local function static and remove dead code 2010-10-24 15:07:13 -07:00
bnx2x_init.h bnx2x: Add 57712 support 2010-10-06 14:10:37 -07:00
bnx2x_link.c bnx2x: Reset 8073 phy during common init 2010-11-01 06:21:39 -07:00
bnx2x_link.h bnx2x: make local function static and remove dead code 2010-10-24 15:07:13 -07:00
bnx2x_main.c bnx2x: make local function static and remove dead code 2010-10-24 15:07:13 -07:00
bnx2x_reg.h bnx2x: prevent false parity error in MSI-X memory of HC block 2010-10-19 08:37:37 -07:00
bnx2x_stats.c bnx2x: properly initialize FW stats 2010-10-06 14:10:41 -07:00
bnx2x_stats.h bnx2x: code beautify 2010-10-06 14:10:41 -07:00
bnx2x.h bnx2x: Update version number 2010-11-01 06:21:39 -07:00
Makefile