summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/adt7410.c
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2012-11-05 07:22:24 +0100
committerDavid S. Miller <davem@davemloft.net>2012-11-07 09:51:14 +0100
commitef468d234753aff7afa96075d3be135b0df1ded0 (patch)
treed35fbd28b721184859eb2e754faf659fef491724 /drivers/hwmon/adt7410.c
parentnet: calxedaxgmac: rework transmit ring handling (diff)
downloadlinux-ef468d234753aff7afa96075d3be135b0df1ded0.tar.xz
linux-ef468d234753aff7afa96075d3be135b0df1ded0.zip
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>
Diffstat (limited to 'drivers/hwmon/adt7410.c')
0 files changed, 0 insertions, 0 deletions