Skip to contentSkip to conversation

tst_net.sh: Require veth for netns

PATCH New Petr Vorel 1 participant 2 messages Dec 17, 2020 – Dec 28, 2020

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

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

---
 testcases/lib/tst_net.sh | 1 +
 1 file changed, 1 insertion(+)
testcases/lib/tst_net.sh +1 -0
index ef9354903..1ddef2fea 100644
@@ -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
author
#1 lore raw

PATCH 1/1 tst_net.sh: Require veth for netns

Hi,

Quoted 6 lines

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

Merged.

Kind regards,
Petr