]> git.baikalelectronics.ru Git - kernel.git/commit
Fix incorrect usage of NET_IP_ALIGN
authorNico Erfurth <ne@erfurth.eu>
Tue, 8 Nov 2011 07:30:40 +0000 (07:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Nov 2011 17:37:07 +0000 (12:37 -0500)
commit87b2309ed0fda2ebb331d76b5f110b8da68b2929
tree89ae265b530926e13d6ea26bf34e5a03544c4d93
parentbb76c61497ad3d14d6a4ee9327427f9a21f39c35
Fix incorrect usage of NET_IP_ALIGN

The driver used NET_IP_ALIGN to remove some additional padding inside of
the rx_fixup function. On many architectures NET_IP_ALIGN defaults to 2
which removed the correct amount of bytes.

On MCORE2-machines commit a019a9c25b1a7033bc7f7ac9546e9c201dcec512
introduces a change which sets NET_IP_ALIGN to 0 by default. Which
triggered the bug on these machines.

This fix introduces a new RXW_PADDING define and uses this instead of
NET_IP_ALIGN. The name was taken from the original SMSC7500 driver which
is provided by SMSC.

Signed-off-by: Nico Erfurth <ne@erfurth.eu>
Tested-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc75xx.c