linux/drivers/net/ethernet/sfc
Ben Hutchings ff3bc1e752 sfc: Fix assignment of ip_summed for pre-allocated skbs
When pre-allocating skbs for received packets, we set ip_summed =
CHECKSUM_UNNCESSARY.  We used to change it back to CHECKSUM_NONE when
the received packet had an incorrect checksum or unhandled protocol.

Commit bc8acf2c8c ('drivers/net: avoid
some skb->ip_summed initializations') mistakenly replaced the latter
assignment with a DEBUG-only assertion that ip_summed ==
CHECKSUM_NONE.  This assertion is always false, but it seems no-one
has exercised this code path in a DEBUG build.

Fix this by moving our assignment of CHECKSUM_UNNECESSARY into
efx_rx_packet_gro().

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2012-02-25 00:10:22 +00:00
..
Kconfig
Makefile
bitfield.h
efx.c Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/bwh/sfc-next 2011-12-16 15:23:22 -05:00
efx.h sfc: Remove now-unused filter function 2012-01-04 14:10:23 -05:00
enum.h
ethtool.c sfc: Implement ethtool RX NFC rules API instead of n-tuple API 2012-01-04 14:10:18 -05:00
falcon.c net: fix assignment of 0/1 to bool variables. 2011-12-19 22:27:29 -05:00
falcon_boards.c
falcon_xmac.c
filter.c sfc: Remove now-unused filter function 2012-01-04 14:10:23 -05:00
filter.h sfc: Add support for retrieving and removing filters by ID 2012-01-04 14:10:00 -05:00
io.h
mac.h
mcdi.c
mcdi.h
mcdi_mac.c
mcdi_pcol.h
mcdi_phy.c
mdio_10g.c
mdio_10g.h
mtd.c net: fix assignment of 0/1 to bool variables. 2011-12-19 22:27:29 -05:00
net_driver.h net: introduce and use netdev_features_t for device features sets 2011-11-16 17:43:10 -05:00
nic.c
nic.h
phy.h
qt202x_phy.c
regs.h
rx.c sfc: Fix assignment of ip_summed for pre-allocated skbs 2012-02-25 00:10:22 +00:00
selftest.c sfc: Use kcalloc instead of kzalloc to allocate array 2011-12-04 01:32:06 -05:00
selftest.h
siena.c net: fix assignment of 0/1 to bool variables. 2011-12-19 22:27:29 -05:00
spi.h
tenxpress.c
tx.c sfc: Use kcalloc instead of kzalloc to allocate array 2011-12-04 01:32:06 -05:00
txc43128_phy.c
workarounds.h