Files
ubports_kernel_google_msm/drivers/net
Mark McLoughlin 23cde76d80 virtio_net: Fix skb->csum_start computation
hdr->csum_start is the offset from the start of the ethernet
header to the transport layer checksum field. skb->csum_start
is the offset from skb->head.

skb_partial_csum_set() assumes that skb->data points to the
ethernet header - i.e. it computes skb->csum_start by adding
the headroom to hdr->csum_start.

Since eth_type_trans() skb_pull()s the ethernet header,
skb_partial_csum_set() should be called before
eth_type_trans().

(Without this patch, GSO packets from a guest to the world outside the
host are corrupted).

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2008-06-10 18:20:29 -04:00
..
2008-05-13 01:31:37 -04:00
2008-06-10 18:20:23 -04:00
2008-06-09 15:47:38 -07:00
2008-06-10 18:20:15 -04:00
2008-05-30 22:07:19 -04:00
2008-03-26 00:18:44 -04:00
2008-03-17 08:11:03 -04:00
2008-06-10 18:20:17 -04:00
2008-03-26 00:18:43 -04:00
2008-03-26 00:18:43 -04:00
2008-05-22 06:20:14 -04:00
2008-04-29 01:56:14 -04:00
2008-05-02 16:58:18 -07:00
2008-02-28 11:51:50 -08:00
2008-02-28 11:51:50 -08:00
2008-02-28 11:57:55 -08:00
2008-05-22 06:20:02 -04:00
2008-03-26 00:18:43 -04:00
2008-04-29 08:06:27 -07:00
2008-04-29 01:56:01 -04:00
2008-03-05 18:51:19 -08:00
2008-05-01 08:08:36 -07:00
2008-06-10 18:20:13 -04:00
2008-04-29 08:06:27 -07:00
2008-03-17 08:11:41 -04:00
2008-05-21 16:55:59 -07:00
2008-04-25 02:08:51 -04:00
2008-03-17 07:56:33 -04:00
2008-03-26 00:18:04 -04:00
2008-03-26 00:18:00 -04:00
2008-03-05 16:34:41 -06:00
2008-05-22 06:03:29 -04:00
2008-03-17 07:56:27 -04:00
2008-04-16 20:41:44 -04:00
2008-05-22 06:18:55 -04:00
2008-05-30 22:07:17 -04:00
2008-04-27 18:19:08 +02:00
2008-05-13 01:31:44 -04:00
2008-04-30 08:29:47 -07:00
2008-04-16 20:06:50 -04:00
2008-03-23 03:35:12 -07:00
2008-04-17 15:31:31 -04:00
2008-06-09 15:41:33 -07:00
2008-04-25 02:45:23 -04:00