aboutsummaryrefslogtreecommitdiffstats
path: root/extras
AgeCommit message (Expand)AuthorFilesLines
2021-04-18vppinfra: remove linux/syscall.hDamjan Marion1-2/+0
2021-04-12tests: support attaching to existing vppKlement Sekera1-2/+2
2021-04-07misc: add build_static_vppctl.shDamjan Marion1-0/+36
2021-03-30misc: vpptop makefile targetVladimir Lavor3-0/+276
2021-03-24misc: fuse fs for the stats segmentArthur de Kerhor4-0/+633
2021-03-23misc: allow explicitelly setting CLANG_FORMAT_VERDamjan Marion1-1/+1
2021-03-16misc: fix checkstyle on fedoraRay Kinsella1-3/+51
2021-03-15misc: finish removing deprecated cop APIDave Barach1-4/+7
2021-03-15libmemif: fix the include for ssize_tAndrew Yourtchenko1-0/+1
2021-03-12libmemif: add an include of sys/types.h header fileAndrew Yourtchenko1-0/+1
2021-03-05api: crchcecker ignore version < 1.0.0 and outside of src directoryOle Troan2-93/+174
2021-03-04misc: add ikev2 tests usecasesFilip Tehlar26-0/+640
2021-03-04libmemif: verify length of transmitted buffersJakub Grajciar1-3/+4
2021-03-04dpdk: deprecate ipsec backendFan Zhang8-0/+4057
2021-03-04libmemif: socket filename length 108Jakub Grajciar2-27/+3
2021-02-15vlib: refactor checksum offload supportMohsin Kazmi1-1/+2
2021-02-08libmemif: fix insecure uses of strncpyAndrew Yourtchenko4-45/+67
2021-02-08libmemif: set data offset for memif bufferJakub Grajciar1-2/+25
2021-02-05libmemif: fix memif_refill_queueJakub Grajciar1-5/+6
2021-02-05libmemif: set next free bufferJakub Grajciar2-0/+41
2021-01-26misc: fix snap image buildDave Barach3-5/+92
2021-01-21libmemif: buffer enqueue refactorJakub Grajciar3-75/+121
2021-01-15misc: checkstyle ignore .patch files in trailing whitespace checkNeale Ranns1-1/+1
2021-01-14bash: move jjb sandbox bash functions to ci-management repoDave Wallace1-87/+1
2020-12-28vlib: add missing file template descriptionsPaul Vinciguerra1-0/+1
2020-12-18misc: deprecate old perfmonDamjan Marion25-0/+25549
2020-12-18misc: migrate from GNU indent to clang-formatDamjan Marion1-0/+90
2020-12-15api: crchcecker ignore version < 1.0.0 and outside of src directoryOle Tr�an2-171/+93
2020-12-15api: crchcecker ignore version < 1.0.0 and outside of src directoryOle Troan2-93/+171
2020-12-14build: stop trying to build py2 versions of vpp_papiPaul Vinciguerra1-26/+0
2020-12-09bash: Update jjb version in jjb-sandbox-env functionDave Wallace1-1/+1
2020-12-04libmemif: clean up typosPaul Vinciguerra10-46/+46
2020-11-25api: vat2 and json autogeneration for api messagesOle Troan1-1/+2
2020-10-24build: add compile_commands.json cleanup scriptDamjan Marion1-0/+28
2020-10-17misc: move gmod to extras/Damjan Marion4-0/+222
2020-10-16misc: deprecate VOMDamjan Marion263-250/+2635
2020-09-23vppapigen: crcchecker: harmonize the in_progress markingAndrew Yourtchenko2-6/+44
2020-09-21build: touch files when extracting rpm tarballsDave Wallace1-2/+5
2020-09-21build: remove opensuse build infraDave Wallace5-344/+3
2020-09-16vppapigen: crcchecker: report in-progress messagesAndrew Yourtchenko1-0/+6
2020-09-16vppapigen: crcchecker: report deprecated messagesAndrew Yourtchenko1-5/+15
2020-09-15build: fix the the build on centos/rhel 8Yichen Wang1-2/+1
2020-09-11misc: selinux fixes (packet_socket r/w)Martin Millnert1-1/+1
2020-09-09docs: Fix create memif cliNathan Skrzypczak3-4/+4
2020-08-31vpp_config: update node variants to skx and iclRay Kinsella1-2/+2
2020-08-31af_xdp: AF_XDP input pluginBenoît Ganne2-0/+105
2020-08-11vppapigen: add support for empty optionsOle Troan1-1/+1
2020-08-06bash: fix pip install issue with jjb-sandbox-env functionDave Wallace1-1/+2
2020-08-06misc: harmonize namesDave Barach1-2/+2
2020-07-02nat: nat66 to pluginOle Troan3-10/+9
ninja -C build || die "Failed to compile DPDK!" } function dpdk_extract () { # Extract DPDK framework. # # Variables read: # - DPDK_DIR - Path to DPDK framework. # - CSIT_DIR - Path to CSIT framework. # Functions called: # - die - Print to stderr and exit. set -exuo pipefail pushd "${CSIT_DIR}" || die "Pushd failed" tar -xvf download_dir/dpdk*.tar.xz --strip=1 --directory "${DPDK_DIR}" || { die "Failed to extract DPDK!" } } function dpdk_kill () { # Kill testpmd and/or l3fwd if running. # Function will be noisy and requires custom error handling. set -x set +e # Try to kill the testpmd. sudo pgrep testpmd if [ $? -eq "0" ]; then success=false sudo pkill testpmd for attempt in {1..60}; do echo "Checking if testpmd is still alive, attempt nr ${attempt}" sudo pgrep testpmd if [ $? -eq "1" ]; then success=true break fi echo "testpmd is still alive, waiting 1 second" sleep 1 done if [ "$success" = false ]; then echo "The command sudo pkill testpmd failed" sudo pkill -9 testpmd exit 1 fi else echo "testpmd is not running" fi # Try to kill the l3fwd. l3fwd_pid="$(pgrep l3fwd)" if [ ! -z "${l3fwd_pid}" ]; then success=false sudo kill -15 "${l3fwd_pid}" for attempt in {1..60}; do echo "Checking if l3fwd is still alive, attempt nr ${attempt}" l3fwd_pid="$(pgrep l3fwd)" if [ -z "${l3fwd_pid}" ]; then success=true break fi echo "l3fwd is still alive, waiting 1 second" sleep 1 done if [ "${success}" = false ]; then echo "The command sudo kill -15 l3fwd failed" sudo kill -9 "${l3fwd_pid}" exit 1 fi else echo "l3fwd is not running" fi # Remove hugepages sudo rm -rf /dev/hugepages/* || die "Removing hugepages failed!" } function dpdk_l3fwd_compile () { # Compile DPDK l3fwd sample app. # # Variables read: # - DPDK_DIR - Path to DPDK framework. # Functions called: # - die - Print to stderr and exit. set -exuo pipefail pushd "${DPDK_DIR}" || die "Pushd failed" # Patch L3FWD. pushd examples/l3fwd || die "Pushd failed" chmod +x ${1} && source ${1} || die "Patch failed" popd || die "Popd failed" ninja -C build || die "Failed to compile DPDK!" } function dpdk_l3fwd () { # Run DPDK l3fwd. # # Variables read: # - DPDK_DIR - Path to DPDK framework. # Functions called: # - die - Print to stderr and exit. set -exuo pipefail rm -f screenlog.0 || true binary="${DPDK_DIR}/build/examples/dpdk-l3fwd" sudo sh -c "screen -dmSL DPDK-test ${binary} ${@}" || { die "Failed to start l3fwd" } for attempt in {1..60}; do echo "Checking if l3fwd is alive, attempt nr ${attempt}" if fgrep "L3FWD: entering main loop on lcore" screenlog.0; then cat screenlog.0 exit 0 fi sleep 1 done cat screenlog.0 exit 1 } function dpdk_l3fwd_check () { # DPDK l3fwd check state. set -exuo pipefail for attempt in {1..60}; do echo "Checking if l3fwd state is ok, attempt nr ${attempt}" if fgrep "Link up" screenlog.0; then cat screenlog.0 dpdk_l3fwd_pid exit 0 fi sleep 1 done cat screenlog.0 exit 1 } function dpdk_l3fwd_pid () { l3fwd_pid="$(pidof dpdk-l3fwd)" if [ ! -z "${l3fwd_pid}" ]; then echo "L3fwd process ID: ${l3fwd_pid}" else echo "L3fwd not running!" fi } function dpdk_precheck () { # Precheck system settings (nr_hugepages, max_map_count). # # Functions called: # - die - Print to stderr and exit. set -exuo pipefail sys_hugepage="$(< /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages)" node0="/sys/devices/system/node/node0/hugepages/hugepages-2048kB/" node1="/sys/devices/system/node/node1/hugepages/hugepages-2048kB/" if [ ${sys_hugepage} -lt 4096 ]; then echo 2048 | sudo tee "${node0}"/nr_hugepages || die echo 2048 | sudo tee "${node1}"/nr_hugepages || die fi sys_map="$(< /proc/sys/vm/max_map_count)" if [ ${sys_map} -lt 200000 ]; then echo 200000 | sudo tee /proc/sys/vm/max_map_count || die fi } function dpdk_testpmd () { # Run DPDK testpmd. # # Variables read: # - DPDK_DIR - Path to DPDK framework. # Functions called: # - die - Print to stderr and exit. set -exuo pipefail rm -f screenlog.0 || true binary="${DPDK_DIR}/build/app/dpdk-testpmd" sudo sh -c "screen -dmSL DPDK-test ${binary} ${@}" || { die "Failed to start testpmd" } for attempt in {1..60}; do echo "Checking if testpmd is alive, attempt nr ${attempt}" if fgrep "Press enter to exit" screenlog.0; then cat screenlog.0 dpdk_testpmd_pid exit 0 fi sleep 1 done cat screenlog.0 exit 1 } function dpdk_testpmd_check () { # DPDK testpmd check links state. set -exuo pipefail for attempt in {1..60}; do echo "Checking if testpmd links state changed, attempt nr ${attempt}" if fgrep "link state change event" screenlog.0; then cat screenlog.0 exit 0 fi sleep 1 done cat screenlog.0 exit 1 } function dpdk_testpmd_pid () { testpmd_pid="$(pidof dpdk-testpmd)" if [ ! -z "${testpmd_pid}" ]; then echo "Testpmd process ID: ${testpmd_pid}" else echo "Testpmd not running!" fi }