Re: 2.4.0-pre3+zerocopy: weird messages

From: David S. Miller (davem@redhat.com)
Date: Sun Jan 14 2001 - 06:32:40 EST


Petru Paler writes:
> > Oh, I think I know why this happens. Can you add this patch, and next
> > time the UDP bad csum message appears, tell me if it says "UDP packet
> > with bad csum was fragmented." in the next line of your syslog
> > messages? Thanks.
>
> Sure, but I also need the actual patch :)

Duh, here it is :-)

--- net/ipv4/udp.c.~1~ Thu Jan 11 10:20:40 2001
+++ net/ipv4/udp.c Sun Jan 14 02:58:07 2001
@@ -855,6 +855,8 @@
                 if (!udp_check(uh, ulen, saddr, daddr, skb->csum))
                         return 0;
                 NETDEBUG(printk(KERN_DEBUG "udp v4 hw csum failure.\n"));
+ if (skb_shinfo(skb)->frag_list != NULL)
+ printk(KERN_DEBUG "UDP packet with bad csum was fragmented.\n");
                 skb->ip_summed = CHECKSUM_NONE;
         }
         if (skb->ip_summed != CHECKSUM_UNNECESSARY)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jan 15 2001 - 21:00:39 EST