]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: fix corner case issue in segmentation during rexmitting
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Sat, 28 Feb 2009 04:44:31 +0000 (04:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Mar 2009 11:00:11 +0000 (03:00 -0800)
commitabec2d02d2fdfa95b03cc9aaa513bfa867bba19c
tree040b778209f0694273a9d5d8337814b6a826c74e
parentb7317d39bd19945cd56a171c774bb2c7739fb8cf
tcp: fix corner case issue in segmentation during rexmitting

If cur_mss grew very recently so that the previously G/TSOed skb
now fits well into a single segment it would get send up in
parts unless we calculate # of segments again. This corner-case
could happen eg. after mtu probe completes or less than
previously sack blocks are required for the opposite direction.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c