Skip to content

Commit a19747c

Browse files
Paolo Abenidavem330
Paolo Abeni
authored andcommitted
selftests: net: let big_tcp test cope with slow env
In very slow environments, most big TCP cases including segmentation and reassembly of big TCP packets have a good chance to fail: by default the TCP client uses write size well below 64K. If the host is low enough autocorking is unable to build real big TCP packets. Address the issue using much larger write operations. Note that is hard to observe the issue without an extremely slow and/or overloaded environment; reduce the TCP transfer time to allow for much easier/faster reproducibility. Fixes: 6bb382b ("selftests: add a selftest for big tcp") Signed-off-by: Paolo Abeni <[email protected]> Reviewed-by: Eric Dumazet <[email protected]> Acked-by: Xin Long <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 645eb54 commit a19747c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/testing/selftests/net/big_tcp.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ do_netperf() {
122122
local netns=$1
123123

124124
[ "$NF" = "6" ] && serip=$SERVER_IP6
125-
ip net exec $netns netperf -$NF -t TCP_STREAM -H $serip 2>&1 >/dev/null
125+
126+
# use large write to be sure to generate big tcp packets
127+
ip net exec $netns netperf -$NF -t TCP_STREAM -l 1 -H $serip -- -m 262144 2>&1 >/dev/null
126128
}
127129

128130
do_test() {

0 commit comments

Comments
 (0)