1 # vcl-ldpreload a LD_PRELOAD library that uses the VPP Communications Library (VCL).
3 User can LD_PRELOAD any application that uses POSIX socket API.
4 This library internally uses libvppcom.so library from VPP project.
9 If VPP is not installed, but rather built in a separate directory, you can use the VPP_DIR 'configure' argument.
11 # 1. Set environment variables for source
12 cd vpp/extras/vcl-ldpreload
15 # 2. Change to VPP source directory and build
16 - Change director and modify uri.am to enable socket_test program
19 perl -pi -e 's/noinst_PROGRAMS/bin_PROGRAMS/g' $VPP_DIR/src/uri.am
23 make install-dep wipe-release bootstrap dpdk-install-dev build-release
25 # 2. Build LD_PRELOAD library against VPP build above
26 ## This does not install the LD_PRELOAD library in your system.
27 ## Instead it will be referenced from the build directory set in VCL_LDPRELOAD_LIB
29 cd $LDP_DIR/vcl-ldpreload/src
31 ./configure VPP_DIR=$VPP_DIR
37 ## Run test script without parameters to see help menu:
39 cd $VPP_DIR/test/scripts
42 # 4. Docker iPerf examples.
43 ## These launch xterms. To quit, close xterms and run following docker kill cmd (WARNING: This will kill all docker containers!) 'docker kill $(docker ps -q)'
46 ## Docker iPerf using default Linux Bridge
48 ./socket_test.sh -bi docker-kernel
50 ## Docker iPerf using VPP
51 ./socket_test.sh -bi docker-preload