Re: 2.4.0-pre3+zerocopy: weird messages

David S. Miller (davem@redhat.com)
Sun, 14 Jan 2001 03:32:40 -0800 (PST)


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/