]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
[LRO]: fix lro_gen_skb() alignment
authorAndrew Gallatin <gallatin@myri.com>
Wed, 5 Dec 2007 10:31:42 +0000 (02:31 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 5 Dec 2007 13:37:32 +0000 (05:37 -0800)
commit621544eb8c3beaa859c75850f816dd9b056a00a3
tree15c4375c8899ced48bd751eb139cfe9b3778bda9
parent4e67d876ce07471e02be571038d5435a825f0215
[LRO]: fix lro_gen_skb() alignment

Add a field to the lro_mgr struct so that drivers can specify how much
padding is required to align layer 3 headers when a packet is copied
into a freshly allocated skb by inet_lro.c:lro_gen_skb().  Without
padding, skbs generated by LRO will cause alignment warnings on
architectures which require strict alignment (seen on sparc64).

Myri10GE is updated to use this field.

Signed-off-by: Andrew Gallatin <gallatin@myri.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/myri10ge/myri10ge.c
include/linux/inet_lro.h
net/ipv4/inet_lro.c