[LTP] [PATCH v4 08/10] netstress: Rename option -D => -d
Petr Vorel
pvorel@suse.cz
Thu Dec 14 16:19:52 CET 2023
-D will be used for enabling debug info.
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
testcases/lib/tst_net.sh | 6 +++---
testcases/network/netstress/netstress.c | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/testcases/lib/tst_net.sh b/testcases/lib/tst_net.sh
index 0718a8ad1..e47ee9676 100644
--- a/testcases/lib/tst_net.sh
+++ b/testcases/lib/tst_net.sh
@@ -766,7 +766,7 @@ tst_netload()
f) cs_opts="${cs_opts}-f " ;;
F) cs_opts="${cs_opts}-F " ;;
e) expect_res="$OPTARG" ;;
- D) [ "$TST_NETLOAD_BINDTODEVICE" = 1 ] && cs_opts="${cs_opts}-D $OPTARG "
+ D) [ "$TST_NETLOAD_BINDTODEVICE" = 1 ] && cs_opts="${cs_opts}-d $OPTARG "
bind_to_device=0 ;;
*) tst_brk_ TBROK "tst_netload: unknown option: $OPTARG" ;;
esac
@@ -776,8 +776,8 @@ tst_netload()
[ "$setup_srchost" = 1 ] && s_opts="${s_opts}-S $hostopt "
if [ "$bind_to_device" = 1 -a "$TST_NETLOAD_BINDTODEVICE" = 1 ]; then
- c_opts="${c_opts}-D $(tst_iface) "
- s_opts="${s_opts}-D $(tst_iface rhost) "
+ c_opts="${c_opts}-d $(tst_iface) "
+ s_opts="${s_opts}-d $(tst_iface rhost) "
fi
local expect_ret=0
diff --git a/testcases/network/netstress/netstress.c b/testcases/network/netstress/netstress.c
index fb6281cd0..5958150cc 100644
--- a/testcases/network/netstress/netstress.c
+++ b/testcases/network/netstress/netstress.c
@@ -1009,7 +1009,7 @@ static struct tst_test test = {
{"T:", &type, "Tcp (default), udp, udp_lite, dccp, sctp"},
{"z", &zcopy, "Enable SO_ZEROCOPY"},
{"P:", &reuse_port, "Enable SO_REUSEPORT"},
- {"D:", &dev, "Bind to device x"},
+ {"d:", &dev, "Bind to device x"},
{"H:", &server_addr, "Server name or IP address"},
{"l", &client_mode, "Become client, default is server"},
--
2.43.0
More information about the ltp
mailing list