Netdev List
 help / color / mirror / Atom feed
* [RFC] [PATCH] ip: skip IP checksum for skbs with CHECKSUM_UNNECESSARY set
@ 2008-08-22 19:24 Octavian Purdila
  2008-08-22 22:33 ` Stephen Hemminger
  2008-08-22 22:53 ` David Miller
  0 siblings, 2 replies; 7+ messages in thread
From: Octavian Purdila @ 2008-08-22 19:24 UTC (permalink / raw)
  To: netdev


We are working on a completely in hardware LRO implementation and this patch 
would simplify the hardware implementation. Is this acceptable?

--- a/net/ipv4/ip_input.c
+++ b/net/ipv4/ip_input.c
@@ -415,7 +415,8 @@ int ip_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt,
 
        iph = ip_hdr(skb);
 
-       if (unlikely(ip_fast_csum((u8 *)iph, iph->ihl)))
+       if (!skb_csum_unnecessary(skb) &&
+           unlikely(ip_fast_csum((u8 *)iph, iph->ihl)))
                goto inhdr_error;
 
        len = ntohs(iph->tot_len);


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

end of thread, other threads:[~2008-08-23 10:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-22 19:24 [RFC] [PATCH] ip: skip IP checksum for skbs with CHECKSUM_UNNECESSARY set Octavian Purdila
2008-08-22 22:33 ` Stephen Hemminger
2008-08-23  0:36   ` David Miller
2008-08-23  1:59     ` Stephen Hemminger
2008-08-23  5:15     ` Herbert Xu
2008-08-23  9:58       ` Octavian Purdila
2008-08-22 22:53 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox