From 33f03210839c661b2e99ccd2f750f78fa260b6f2 Mon Sep 17 00:00:00 2001 From: Ben Walker Date: Tue, 2 Aug 2022 11:03:25 -0700 Subject: [PATCH] test/adq: Combine adq_configure_driver and adq_configure_traffic_classes These are only called back-to-back and they're both configuring the driver. Change-Id: Icc07df1cf23d67954ac3621647b050d4c8c74e64 Signed-off-by: Ben Walker Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/13831 Tested-by: SPDK CI Jenkins Reviewed-by: Changpeng Liu Reviewed-by: Tomasz Zawadzki Reviewed-by: Aleksey Marchuk --- test/nvmf/target/perf_adq.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/nvmf/target/perf_adq.sh b/test/nvmf/target/perf_adq.sh index 313233f56..a242d63c7 100755 --- a/test/nvmf/target/perf_adq.sh +++ b/test/nvmf/target/perf_adq.sh @@ -23,10 +23,7 @@ function adq_configure_driver() { # Since sockets are non-blocking, a non-zero value of net.core.busy_read is sufficient sysctl -w net.core.busy_poll=1 sysctl -w net.core.busy_read=1 -} -# Configuring traffic classes -function adq_configure_traffic_classes() { tc=/usr/sbin/tc # Create 2 traffic classes and 2 tc1 queues "${NVMF_TARGET_NS_CMD[@]}" $tc qdisc add dev $NVMF_TARGET_INTERFACE root \ @@ -146,7 +143,6 @@ adq_reload_driver nvmftestinit sleep 2 adq_configure_driver -adq_configure_traffic_classes adq_start_nvmf_target 1 0xF sleep 2 # The number of I/O connections from initiator is the core count * qpairs per ns, so here its 12.