]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8b6964edc5d51740c6f075e29454735f3cce022f
tree21c5cc57e19fb477f86b67170c0eb1c0ff0fe1cf
parenta0543721ea5ac2b9fbf2939c9ba97e5accbbd95e
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