Herbert Xu 759e5d0064 [UDP]: Clean up UDP-Lite receive checksum
This patch eliminates some duplicate code for the verification of
receive checksums between UDP-Lite and UDP.  It does this by
introducing __skb_checksum_complete_head which is identical to
__skb_checksum_complete_head apart from the fact that it takes
a length parameter rather than computing the first skb->len bytes.

As a result UDP-Lite will be able to use hardware checksum offload
for packets which do not use partial coverage checksums.  It also
means that UDP-Lite loopback no longer does unnecessary checksum
verification.

If any NICs start support UDP-Lite this would also start working
automatically.

This patch removes the assumption that msg_flags has MSG_TRUNC clear
upon entry in recvmsg.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-04-25 22:23:51 -07:00
..
2007-02-20 17:10:15 -08:00
2007-01-30 08:26:45 -08:00
2007-02-20 17:10:14 -08:00
2007-02-16 15:19:17 -08:00
2007-02-09 17:39:36 -05:00
2007-02-11 11:18:07 -08:00
2007-02-01 16:17:06 -08:00
2007-03-27 09:05:15 -07:00
2007-01-08 19:49:54 +00:00
2007-04-07 10:03:43 -07:00
2007-02-13 22:09:01 +01:00
2007-03-02 20:44:51 -08:00
2007-03-06 06:08:11 -05:00
2007-02-09 17:39:36 -05:00
2007-03-01 14:53:38 -08:00
2007-02-12 09:48:30 -08:00
2007-02-16 14:37:06 +00:00
2007-02-07 10:37:14 -08:00
2007-03-16 19:25:07 -07:00
2007-03-04 11:12:42 +02:00
2007-02-17 19:17:37 +01:00
2007-03-01 14:53:35 -08:00
2007-03-12 16:31:50 -07:00
2007-01-23 00:34:54 -05:00
2007-02-08 13:51:54 -08:00
2007-03-16 19:25:05 -07:00
2007-02-09 08:06:14 -08:00
2007-03-12 16:31:50 -07:00
2007-03-27 08:55:47 +02:00
2007-04-17 16:36:26 -07:00
2007-02-11 10:51:28 -08:00
2007-01-11 18:18:21 -08:00
2007-02-11 10:51:28 -08:00
2006-12-22 08:55:49 -08:00
2007-03-05 07:57:51 -08:00
2007-02-17 19:07:33 +01:00
2006-12-13 09:05:49 -08:00
2007-02-20 17:10:14 -08:00
2007-02-20 17:10:14 -08:00
2007-02-12 09:48:41 -08:00
2007-02-11 10:51:18 -08:00
2007-02-20 17:10:13 -08:00
2007-02-07 14:03:19 +11:00
2007-04-25 22:23:21 -07:00
2007-02-16 08:13:57 -08:00
2007-02-16 08:13:56 -08:00
2007-03-05 07:57:51 -08:00
2006-12-15 08:47:51 -08:00
2007-02-11 10:51:25 -08:00
2007-02-11 11:18:05 -08:00