summaryrefslogtreecommitdiffstats
path: root/net/l2tp/l2tp_core.c
diff options
context:
space:
mode:
authorNico Erfurth2011-11-08 08:30:40 +0100
committerDavid S. Miller2011-11-08 18:37:07 +0100
commitea1649dea95fb270af94f75e842402c4cfbfc15f (patch)
tree89ae265b530926e13d6ea26bf34e5a03544c4d93 /net/l2tp/l2tp_core.c
parentipv6: drop packets when source address is multicast (diff)
downloadkernel-qcow2-linux-ea1649dea95fb270af94f75e842402c4cfbfc15f.tar.gz
kernel-qcow2-linux-ea1649dea95fb270af94f75e842402c4cfbfc15f.tar.xz
kernel-qcow2-linux-ea1649dea95fb270af94f75e842402c4cfbfc15f.zip
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 ea812ca1b06113597adcd8e70c0f84a413d97544 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>
Diffstat (limited to 'net/l2tp/l2tp_core.c')
0 files changed, 0 insertions, 0 deletions