netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* pppoe and receive checksum offload
@ 2005-02-24 23:59 Stephen Hemminger
  2005-02-28  4:20 ` David S. Miller
  2005-02-28 11:31 ` Herbert Xu
  0 siblings, 2 replies; 11+ messages in thread
From: Stephen Hemminger @ 2005-02-24 23:59 UTC (permalink / raw)
  To: David S. Miller, mostrows, Alexey Kuznetsov; +Cc: netdev

Someone reported a problem with skge hardware receive checksumming and PPPOE
but it looks like a generic problem.  Since PPPOE adds additional header
bytes the hardware computed checksum will be wrong.  

Not sure if this is correct, but shouldn't pppoe be doing the following:
-----
diff -Nru a/drivers/net/pppoe.c b/drivers/net/pppoe.c
--- a/drivers/net/pppoe.c	2005-02-24 15:40:10 -08:00
+++ b/drivers/net/pppoe.c	2005-02-24 15:40:10 -08:00
@@ -339,6 +339,7 @@
 		int len = ntohs(ph->length);
 		skb_pull(skb, sizeof(struct pppoe_hdr));
 		skb_trim(skb, len);
+		skb->ip_summed = CHECKSUM_NONE;
 
 		ppp_input(&po->chan, skb);
 	} else if (sk->sk_state & PPPOX_RELAY) {

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-03-10  5:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-24 23:59 pppoe and receive checksum offload Stephen Hemminger
2005-02-28  4:20 ` David S. Miller
2005-02-28  9:21   ` Alexey Kuznetsov
2005-02-28 17:12   ` Stephen Hemminger
2005-02-28 23:32     ` David S. Miller
2005-03-01  0:01       ` shemminger
2005-02-28 11:31 ` Herbert Xu
2005-02-28 11:39   ` Herbert Xu
2005-02-28 14:04     ` Alexey Kuznetsov
2005-03-01  1:04       ` Herbert Xu
2005-03-10  5:13         ` 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;
as well as URLs for NNTP newsgroup(s).