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)
committerBen Hutchings <bhutchings@solarflare.com>
Fri, 6 Dec 2013 22:27:52 +0000 (22:27 +0000)
commit2ec030144f648a6dd208f95f55ece212f1b72771
tree8652b022a834b23589069b53881f089765a34ae6
parentcd6fe65e923175e4f2e9fb585b1d78c6bf580fc6
sfc: RX buffer allocation takes prefix size into account in IP header alignment

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>
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/rx.c