]> git.baikalelectronics.ru Git - kernel.git/commit
[TCP]: Fix rcv mss estimate for LRO
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 31 Aug 2006 22:11:02 +0000 (15:11 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 22 Sep 2006 22:18:44 +0000 (15:18 -0700)
commite391f4ed74d20942ad89c814dcd79efc6d0a625f
tree65ac7b9220184e96c89626a39df3d45715e7171c
parentc555939ead303c379bbd842a1c7cb9d81184ae2c
[TCP]: Fix rcv mss estimate for LRO

By passing a Linux-generated TSO packet straight back into Linux, Xen
becomes our first LRO user :) Unfortunately, there is at least one spot
in our stack that needs to be changed to cope with this.

The receive MSS estimate is computed from the raw packet size.  This is
broken if the packet is GSO/LRO.  Fortunately the real MSS can be found
in gso_size so we simply need to use that if it is non-zero.

Real LRO NICs should of course set the gso_size field in future.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c