ChangeSet 1.2229.1.6, 2005/03/18 10:30:20-08:00, [EMAIL PROTECTED]

        [NETPOLL]: Align UDP packets to NET_IP_ALIGN.
        
        This avoids unnecessary alignment traps on some
        platforms.
        
        Signed-off-by: Sven Henkel <[EMAIL PROTECTED]>
        Signed-off-by: David S. Miller <[EMAIL PROTECTED]>



 netpoll.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/net/core/netpoll.c b/net/core/netpoll.c
--- a/net/core/netpoll.c        2005-03-18 14:09:25 -08:00
+++ b/net/core/netpoll.c        2005-03-18 14:09:25 -08:00
@@ -233,7 +233,7 @@
 
        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)
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to