]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: net: properly support IPv6 in GSO GRE test
authorAndrea Righi <andrea.righi@canonical.com>
Thu, 4 Nov 2021 10:46:13 +0000 (11:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Nov 2021 11:23:57 +0000 (11:23 +0000)
commit89cdce434a0a1bcdfccd347281d0de8d3d8afde3
tree8a31a1071843c2acad2d7cf3a3614415afbb7296
parentee4038a08ecff51abbccfa5df51e6a4df691bb62
selftests: net: properly support IPv6 in GSO GRE test

Explicitly pass -6 to netcat when the test is using IPv6 to prevent
failures.

Also make sure to pass "-N" to netcat to close the socket after EOF on
the client side, otherwise we would always hit the timeout and the test
would fail.

Without this fix applied:

 TEST: GREv6/v4 - copy file w/ TSO                                   [FAIL]
 TEST: GREv6/v4 - copy file w/ GSO                                   [FAIL]
 TEST: GREv6/v6 - copy file w/ TSO                                   [FAIL]
 TEST: GREv6/v6 - copy file w/ GSO                                   [FAIL]

With this fix applied:

 TEST: GREv6/v4 - copy file w/ TSO                                   [ OK ]
 TEST: GREv6/v4 - copy file w/ GSO                                   [ OK ]
 TEST: GREv6/v6 - copy file w/ TSO                                   [ OK ]
 TEST: GREv6/v6 - copy file w/ GSO                                   [ OK ]

Fixes: 628f434d2129 ("selftests: add simple GSO GRE test")
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/gre_gso.sh