linux_dsm_epyc7002/drivers/net/ethernet/calxeda
Rob Herring ef468d2347 net: calxedaxgmac: ip align receive buffers
On gcc 4.7, we will get alignment traps in the ip stack if we don't align
the ip headers on receive. The h/w can support this, so use ip aligned
allocations.

Cut down the unnecessary padding on the allocation. The buffer can start on
any byte alignment, but the size including the begining offset must be 8
byte aligned. So the h/w buffer size must include the NET_IP_ALIGN offset.

Thanks to Eric Dumazet for the initial patch highlighting the padding issues.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-11-07 03:51:14 -05:00
..
Kconfig net: calxeda xgmac ethernet driver add missing HAS_IOMEM dependency 2011-12-27 13:01:44 -05:00
Makefile
xgmac.c net: calxedaxgmac: ip align receive buffers 2012-11-07 03:51:14 -05:00