* [PATCH] Align udp-packet in netpoll_send_udp
@ 2005-03-18 17:57 Sven Henkel
2005-03-18 18:32 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Sven Henkel @ 2005-03-18 17:57 UTC (permalink / raw)
To: mpm; +Cc: linux-kernel
Hi!
The udp-packet constructed in netpoll_send_udp should be aligned
to avoid alignment-traps on some platforms. The patch applies to
vanilla 2.6.11.2.
Ciao,
Sven
Signed-off-by: Sven Henkel <shenkel@gmail.com>
--- linux-2.6.11.2/net/core/netpoll.c 2005-03-09 09:12:58.000000000 +0100
+++ mylinux-2.6.11.2/net/core/netpoll.c 2005-03-18 15:56:30.330061256 +0100
@@ -233,7 +233,7 @@ void netpoll_send_udp(struct netpoll *np
udp_len = len + sizeof(*udph);
ip_len = eth_len = udp_len + sizeof(*iph);
- total_len = eth_len + ETH_HLEN;
+ total_len = eth_len + ETH_HLEN + NET_IP_ALIGN;
skb = find_skb(np, total_len, total_len - len);
if (!skb)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Align udp-packet in netpoll_send_udp
2005-03-18 17:57 [PATCH] Align udp-packet in netpoll_send_udp Sven Henkel
@ 2005-03-18 18:32 ` David S. Miller
0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2005-03-18 18:32 UTC (permalink / raw)
To: Sven Henkel; +Cc: mpm, linux-kernel
On Fri, 18 Mar 2005 18:57:32 +0100
Sven Henkel <shenkel@gmail.com> wrote:
> The udp-packet constructed in netpoll_send_udp should be aligned
> to avoid alignment-traps on some platforms. The patch applies to
> vanilla 2.6.11.2.
Patch applied, thanks Sven.
Please post networking patches in the future to netdev@oss.sgi.com,
as that is where the networking developers are.
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-18 18:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-18 17:57 [PATCH] Align udp-packet in netpoll_send_udp Sven Henkel
2005-03-18 18:32 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®