We currently shrink the TCP window permanently if we are ever forced (by a low-memory condition) to discard a previously received TCP packet. This behaviour was intended to reduce the number of retransmissions in a lossy network, since lost packets might potentially result in the entire window contents being retransmitted. Since commit e0fc8fe ("[tcp] Implement support for TCP Selective Acknowledgements (SACK)") the cost of lost packets has been reduced by around one order of magnitude, and the reduction in the window size (which affects the maximum throughput) is now the more significant cost. Remove the code which reduces the TCP maximum window size when a received packet is discarded. Reported-by: Wissam Shoukair <wissams@mellanox.com> Tested-by: Wissam Shoukair <wissams@mellanox.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
101 |
|
101 |
|
102 |
|
102 |
|
103 |
|
103 |
|
104 |
|
|
|
105 |
|
|
|
106 |
|
104 |
|
107 |
|
105 |
|
108 |
|
106 |
|
|
|
||
291 |
|
289 |
|
292 |
|
290 |
|
293 |
|
291 |
|
294 |
|
|
|
295 |
|
292 |
|
296 |
|
293 |
|
297 |
|
294 |
|
|
|
||
615 |
|
612 |
|
616 |
|
613 |
|
617 |
|
614 |
|
618 |
|
|
|
619 |
|
615 |
|
620 |
|
616 |
|
621 |
|
617 |
|
|
|
||
669 |
|
665 |
|
670 |
|
666 |
|
671 |
|
667 |
|
672 |
|
|
|
673 |
|
|
|
674 |
|
|
|
675 |
|
|
|
|
668 |
|
|
|
669 |
|
|
|
670 |
|
|
676 |
|
671 |
|
677 |
|
672 |
|
678 |
|
673 |
|
|
|
||
1482 |
|
1477 |
|
1483 |
|
1478 |
|
1484 |
|
1479 |
|
1485 |
|
|
|
1486 |
|
|
|
1487 |
|
1480 |
|
1488 |
|
1481 |
|
1489 |
|
1482 |
|
1490 |
|
1483 |
|
1491 |
|
1484 |
|
1492 |
|
1485 |
|
1493 |
|
|
|
1494 |
|
|
|
1495 |
|
|
|
1496 |
|
|
|
1497 |
|
|
|
1498 |
|
|
|
1499 |
|
|
|
1500 |
|
|
|
1501 |
|
|
|
1502 |
|
|
|
1503 |
|
1486 |
|
1504 |
|
1487 |
|
1505 |
|
1488 |
|