sfc: RX buffer allocation takes prefix size into account in IP header alignment
authorAndrew Rybchenko <Andrew.Rybchenko@oktetlabs.ru>
Sat, 16 Nov 2013 07:02:27 +0000 (11:02 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jan 2014 23:31:39 +0000 (15:31 -0800)
commit9586c55a3b581ce95ddb7eaf4dd36c201a41f18c
tree08dbb414ec505983e2c9834fc32d6086f749f49f
parent04b27016f879f062f30efd7361f22d650ede269d
sfc: RX buffer allocation takes prefix size into account in IP header alignment

[ Upstream commit 2ec030144f648a6dd208f95f55ece212f1b72771 ]

rx_prefix_size is 4-bytes aligned on Falcon/Siena (16 bytes), but it is equal
to 14 on EF10. So, it should be taken into account if arch requires IP header
to be 4-bytes aligned (via NET_IP_ALIGN).

Fixes: 8127d661e77f ('sfc: Add support for Solarflare SFC9100 family')
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/rx.c