virtio_net: Set correct gso->hdr_len
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 4 Jun 2009 00:59:18 +0000 (00:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jun 2009 07:19:11 +0000 (00:19 -0700)
commitb82f08ea162edeee6c2c70c6c4321bea4763fa35
treec8f18af83b66604eeac54884871c7ffe91b37d46
parent1feede014bf3c58f60b35f91dcd8a2f89b3908ad
virtio_net: Set correct gso->hdr_len

Through a bug in the tun driver, I noticed that virtio_net is
producing bogus hdr_len values.  In particular, it only includes
the IP header in the linear area, and excludes the entire TCP
header.  This causes the TCP header to be copied twice for each
packet.  (The bug omitted the second copy :)

This patch corrects this.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c
This page took 0.025368 seconds and 5 git commands to generate.