tst_net.sh: Require veth for netns
PATCH 1/1 tst_net.sh: Require veth for netns
new error message is more informative:tcp_fastopen_run 1 TCONF: veth driver not available
then the old one:
Error: Unknown device type.tcp_fastopen_run 1 TBROK: ip li add name ltp_ns_veth1 type veth peer name ltp_ns_veth2 failed
Signed-off-by Petr Vorel <[email protected]>
--- testcases/lib/tst_net.sh | 1 + 1 file changed, 1 insertion(+)
testcases/lib/tst_net.sh +1 -0
@@ -106,6 +106,7 @@ init_ltp_netspace() tst_require_cmds ip tst_require_root + tst_require_drivers veth ROD ip li add name ltp_ns_veth1 type veth peer name ltp_ns_veth2 pid="$(ROD ns_create net,mnt)" mkdir -p /var/run/netns
Signature · 1 line
2.29.2
PATCH 1/1 tst_net.sh: Require veth for netns
Hi,
Quoted 6 lines
new error message is more informative:
tcp_fastopen_run1 TCONF: veth driver not availablethen the old one:
Error: Unknown device type.tcp_fastopen_run1 TBROK: ip li add nameltp_ns_veth1type veth peer nameltp_ns_veth2failed
Merged.
Kind regards,
Petr