sfc: Fix reading of inserted hash
authorBen Hutchings <bhutchings@solarflare.com>
Fri, 25 Jun 2010 07:05:33 +0000 (07:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Jun 2010 04:03:30 +0000 (21:03 -0700)
commit604f6049ba2af86fe361d4cc320443d35b232df1
tree21c5cc57e19fb477f86b67170c0eb1c0ff0fe1cf
parent29046f9b1e36f6e3332ce2d8e366005fd177b37a
sfc: Fix reading of inserted hash

The hash appears immediately before the packet data, not at the
beginning of the buffer. This means we can easily use negative offsets
from the start of packet data, so adjust the data and length at the
top of __efx_rx_packet() instead of wherever we consume the hash.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sfc/rx.c
drivers/net/sfc/selftest.c