From: Rob Herring Date: Mon, 5 Nov 2012 06:22:24 +0000 (+0000) Subject: net: calxedaxgmac: ip align receive buffers X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~45^2~430 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef468d234753aff7afa96075d3be135b0df1ded0;p=pandora-kernel.git 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 Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed