Skip to content

Commit 43ea186

Browse files
florincorasDave Barach
authored andcommitted
hsa vperf: move and rename vcl/builtin perf client apps
Type: refactor Change-Id: Ib8bbd4f3deb17b3a59bd839f18c97699569c56cf Signed-off-by: Florin Coras <fcoras@cisco.com>
1 parent 5707bc4 commit 43ea186

58 files changed

Lines changed: 7077 additions & 7157 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

MAINTAINERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,13 @@ M: Aloys Augustin <aloaugus@cisco.com>
755755
M: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
756756
F: src/plugins/hs_apps/
757757

758+
Plugin - VPP Perf
759+
I: vperf
760+
M: Florin Coras <fcoras@cisco.com>
761+
M: Matus Fabian <matfabia@cisco.com>
762+
M: Dave Wallace <dwallacelf@gmail.com>
763+
F: src/plugins/hs_apps/
764+
758765
Python binding for the VPP API
759766
I: papi
760767
M: Ole Troan <otroan@employees.org>

docs/spelling_wordlist.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,6 +1341,7 @@ vnet
13411341
Vnet
13421342
vom
13431343
vpe
1344+
vperf
13441345
vpn
13451346
vpp
13461347
Vpp

extras/kube-test/docker/Dockerfile.vpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ ENV DIR=vpp-data/lib/vpp_plugins
1212
COPY \
1313
$DIR/af_packet_plugin.so \
1414
$DIR/hs_apps_plugin.so \
15+
$DIR/vperf_plugin.so \
1516
$DIR/http_plugin.so \
1617
$DIR/http_static_plugin.so \
1718
$DIR/ping_plugin.so \
@@ -23,6 +24,7 @@ COPY \
2324
COPY vpp-data/bin/vpp /usr/bin/
2425
COPY vpp-data/bin/vppctl /usr/bin/
2526
COPY vpp-data/bin/vpp_echo /usr/bin/
27+
COPY vpp-data/bin/vperf_* /usr/bin/
2628
COPY vpp-data/bin/vcl_* /usr/bin/
2729
COPY vpp-data/lib/*.so /usr/lib/
2830

extras/kube-test/infra/vpp.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ plugins {
4444
4545
plugin af_packet_plugin.so { enable }
4646
plugin hs_apps_plugin.so { enable }
47+
plugin vperf_plugin.so { enable }
4748
plugin http_plugin.so { enable }
4849
plugin http_static_plugin.so { enable }
4950
plugin ping_plugin.so { enable }

extras/kube-test/kube_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,10 @@ func EchoBuiltinEchobytesTest(s *KubeSuite) {
192192
vppCln := s.Pods.ClientGeneric.InitVpp()
193193
vppSrv := s.Pods.ServerGeneric.InitVpp()
194194

195-
o, err := vppSrv.VppctlBackground(ctx, "test echo server uri tcp://"+s.Pods.ServerGeneric.IpAddress+"/1234")
195+
o, err := vppSrv.VppctlBackground(ctx, "vperf server uri tcp://"+s.Pods.ServerGeneric.IpAddress+"/1234")
196196
Log(o)
197197
AssertNil(err)
198-
o, err = vppCln.Vppctl(ctx, "test echo client echo-bytes run-time 10 verbose uri tcp://"+s.Pods.ServerGeneric.IpAddress+"/1234")
198+
o, err = vppCln.Vppctl(ctx, "vperf client echo-bytes run-time 10 verbose uri tcp://"+s.Pods.ServerGeneric.IpAddress+"/1234")
199199
Log(o)
200200
AssertContains(o, "Test started")
201201
AssertContains(o, "Test finished")

extras/rpm/vpp.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,8 @@ fi
376376
/usr/bin/vat2
377377
/usr/bin/vpp*
378378
/usr/bin/svm*
379-
/usr/bin/vcl_test_client
380-
/usr/bin/vcl_test_server
379+
/usr/bin/vperf_client
380+
/usr/bin/vperf_server
381381
%config(noreplace) /etc/sysctl.d/80-vpp.conf
382382
%config(noreplace) /etc/vpp/startup.conf
383383
/usr/share/vpp/api/*

extras/scripts/host-stack/perf-tests/vcl_client

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
VPP_WS=${VPP_WS:-/scratch/fcoras/vpp}
77
CFG_WS=$VPP_WS/extras/scripts/host-stack/perf-tests
8-
BIN=$VPP_WS/build-root/build-vpp-native/vpp/bin/vcl_test_client
8+
BIN=$VPP_WS/build-root/build-vpp-native/vpp/bin/vperf_client
99
GDB_ENV=$CFG_WS/gdb_vcl_env
1010
VCL_CFG=$CFG_WS/vcl_perf.conf
1111
PARAMS=$@

extras/scripts/host-stack/perf-tests/vcl_server

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
VPP_WS=${VPP_WS:-/scratch/fcoras/vpp}
77
CFG_WS=$VPP_WS/extras/scripts/host-stack/perf-tests
8-
BIN=$VPP_WS/build-root/build-vpp-native/vpp/bin/vcl_test_server
8+
BIN=$VPP_WS/build-root/build-vpp-native/vpp/bin/vperf_server
99
GDB_ENV=$CFG_WS/gdb_init_tls
1010
VCL_CFG=$CFG_WS/vcl_perf.conf
1111
PARAMS=$@

src/plugins/hs_apps/CMakeLists.txt

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ add_vpp_plugin(hs_apps
2222
SOURCES
2323
tls_client.c
2424
tls_server.c
25-
builtin_echo/echo_cli.c
26-
builtin_echo/echo_client.c
27-
builtin_echo/echo_server.c
28-
builtin_echo/echo_stats.c
29-
builtin_echo/echo_test_protos.c
3025
hs_apps.c
3126
http_cli.c
3227
http_client_cli.c
@@ -79,23 +74,6 @@ if(VPP_BUILD_VCL_TESTS)
7974
NO_INSTALL
8075
)
8176

82-
foreach(test
83-
vcl_test_server
84-
vcl_test_client
85-
)
86-
add_vpp_test(${test}
87-
SOURCES
88-
"vcl/${test}.c"
89-
vcl/vcl_test_protos.c
90-
LINK_LIBRARIES vppcom pthread ${EPOLL_LIB}
91-
)
92-
endforeach()
93-
94-
add_vpp_test(vcl_test_cl_udp SOURCES "vcl/vcl_test_cl_udp.c"
95-
LINK_LIBRARIES vppcom pthread ${EPOLL_LIB}
96-
NO_INSTALL
97-
)
98-
9977
add_vpp_test(vcl_cfg_test SOURCES "vcl/vcl_cfg_test.c"
10078
LINK_LIBRARIES vppcom pthread ${EPOLL_LIB}
10179
NO_INSTALL

0 commit comments

Comments
 (0)