* RE: [dts] [PATCH V1] tests/l3fwd_func: add a new test suite
2022-04-22 9:58 [dts] [PATCH V1] tests/l3fwd_func: add a new test suite Jiale Song
@ 2022-04-22 2:07 ` Huang, ZhiminX
2022-05-05 8:06 ` lijuan.tu
1 sibling, 0 replies; 3+ messages in thread
From: Huang, ZhiminX @ 2022-04-22 2:07 UTC (permalink / raw)
To: Jiale, SongX, dts; +Cc: Jiale, SongX
[-- Attachment #1: Type: text/plain, Size: 449 bytes --]
> -----Original Message-----
> From: Jiale Song <songx.jiale@intel.com>
> Sent: Friday, April 22, 2022 5:59 PM
> To: dts@dpdk.org
> Cc: Jiale, SongX <songx.jiale@intel.com>
> Subject: [dts] [PATCH V1] tests/l3fwd_func: add a new test suite
>
> test suite for 22.03 new feature.
> add new tests/TestSuite_l3fwd_func.py.
>
> Signed-off-by: Jiale Song <songx.jiale@intel.com>
> ---
Tested-by: Zhimin Huang <zhiminx.huang@intel.com >
[-- Attachment #2: TestL3fwdFunc.log --]
[-- Type: application/octet-stream, Size: 46679 bytes --]
22/04/2022 09:43:45 dts:
TEST SUITE : TestL3fwdFunc
22/04/2022 09:43:45 dts: NIC : columbiaville_100g
22/04/2022 09:43:45 dut.10.239.251.133:
22/04/2022 09:43:45 tester:
22/04/2022 09:43:45 dut.10.239.251.133: meson configure -Dexamples=l3fwd x86_64-native-linuxapp-gcc
22/04/2022 09:43:45 dut.10.239.251.133:
22/04/2022 09:43:45 dut.10.239.251.133: ninja -C x86_64-native-linuxapp-gcc
22/04/2022 09:43:54 dut.10.239.251.133: ninja: Entering directory `x86_64-native-linuxapp-gcc'
[0/1] Regenerating build files.
The Meson build system
Version: 0.57.1
Source dir: /root/dpdk
Build dir: /root/dpdk/x86_64-native-linuxapp-gcc
Build type: native build
Program cat found: YES (/usr/bin/cat)
Project name: DPDK
Project version: 22.07.0-rc0
C compiler for the host machine: gcc (gcc 9.3.0 "gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0")
C linker for the host machine: gcc ld.bfd 2.34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Message: ## Building in Developer Mode ##
Program pkg-config found: YES (/usr/bin/pkg-config)
Program check-symbols.sh found: YES (/root/dpdk/buildtools/check-symbols.sh)
Program options-ibverbs-static.sh found: YES (/root/dpdk/buildtools/options-ibverbs-static.sh)
Program objdump found: YES (/usr/bin/objdump)
Program python3 found: YES (/usr/bin/python3)
Program cat found: YES (/usr/bin/cat)
Program ../buildtools/symlink-drivers-solibs.sh found: YES (/bin/sh /root/dpdk/config/../buildtools/symlink-drivers-solibs.sh)
Checking for size of "void *" : 8
Checking for size of "void *" : 8
Library m found: YES
Library numa found: YES
Has header "numaif.h" : YES (cached)
Library libfdt found: YES
Has header "fdt.h" : YES (cached)
Library libexecinfo found: NO
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Run-time dependency libarchive found: NO (tried pkgconfig)
Run-time dependency libbsd found: NO (tried pkgconfig)
Dependency jansson found: YES 2.12 (cached)
Dependency libpcap found: YES 1.9.1 (cached)
Has header "pcap.h" with dependency libpcap: YES (cached)
Compiler for C supports arguments -Wcast-qual: YES (cached)
Compiler for C supports arguments -Wdeprecated: YES (cached)
Compiler for C supports arguments -Wformat: YES (cached)
Compiler for C supports arguments -Wformat-nonliteral: YES (cached)
Compiler for C supports arguments -Wformat-security: YES (cached)
Compiler for C supports arguments -Wmissing-declarations: YES (cached)
Compiler for C supports arguments -Wmissing-prototypes: YES (cached)
Compiler for C supports arguments -Wnested-externs: YES (cached)
Compiler for C supports arguments -Wold-style-definition: YES (cached)
Compiler for C supports arguments -Wpointer-arith: YES (cached)
Compiler for C supports arguments -Wsign-compare: YES (cached)
Compiler for C supports arguments -Wstrict-prototypes: YES (cached)
Compiler for C supports arguments -Wundef: YES (cached)
Compiler for C supports arguments -Wwrite-strings: YES (cached)
Compiler for C supports arguments -Wno-address-of-packed-member: YES (cached)
Compiler for C supports arguments -Wno-packed-not-aligned: YES (cached)
Compiler for C supports arguments -Wno-missing-field-initializers: YES (cached)
Compiler for C supports arguments -mavx512f: YES (cached)
Checking if "AVX512 checking" compiles: YES (cached)
Fetching value of define "__SSE4_2__" : 1 (cached)
Fetching value of define "__AES__" : 1 (cached)
Fetching value of define "__AVX__" : 1 (cached)
Fetching value of define "__AVX2__" : 1 (cached)
Fetching value of define "__AVX512BW__" : (cached)
Fetching value of define "__AVX512CD__" : (cached)
Fetching value of define "__AVX512DQ__" : (cached)
Fetching value of define "__AVX512F__" : (cached)
Fetching value of define "__AVX512VL__" : (cached)
Fetching value of define "__PCLMUL__" : 1 (cached)
Fetching value of define "__RDRND__" : 1 (cached)
Fetching value of define "__RDSEED__" : (cached)
Fetching value of define "__VPCLMULQDQ__" : (cached)
Compiler for C supports arguments -Wno-format-truncation: YES (cached)
Message: lib/kvargs: Defining dependency "kvargs"
Message: lib/telemetry: Defining dependency "telemetry"
Checking for function "getentropy" : YES (cached)
Message: lib/eal: Defining dependency "eal"
Message: lib/ring: Defining dependency "ring"
Message: lib/rcu: Defining dependency "rcu"
Message: lib/mempool: Defining dependency "mempool"
Message: lib/mbuf: Defining dependency "mbuf"
Fetching value of define "__PCLMUL__" : 1 (cached)
Fetching value of define "__AVX512F__" : (cached)
Compiler for C supports arguments -mpclmul: YES (cached)
Compiler for C supports arguments -maes: YES (cached)
Compiler for C supports arguments -mavx512f: YES (cached)
Compiler for C supports arguments -mavx512bw: YES (cached)
Compiler for C supports arguments -mavx512dq: YES (cached)
Compiler for C supports arguments -mavx512vl: YES (cached)
Compiler for C supports arguments -mvpclmulqdq: YES (cached)
Compiler for C supports arguments -mavx2: YES (cached)
Compiler for C supports arguments -mavx: YES (cached)
Message: lib/net: Defining dependency "net"
Message: lib/meter: Defining dependency "meter"
Message: lib/ethdev: Defining dependency "ethdev"
Message: lib/pci: Defining dependency "pci"
Message: lib/cmdline: Defining dependency "cmdline"
Message: lib/metrics: Defining dependency "metrics"
Message: lib/hash: Defining dependency "hash"
Message: lib/timer: Defining dependency "timer"
Fetching value of define "__AVX2__" : 1 (cached)
Fetching value of define "__AVX512F__" : (cached)
Fetching value of define "__AVX512VL__" : (cached)
Fetching value of define "__AVX512CD__" : (cached)
Fetching value of define "__AVX512BW__" : (cached)
Compiler for C supports arguments -mavx512f -mavx512vl -mavx512cd -mavx512bw: YES (cached)
Message: lib/acl: Defining dependency "acl"
Message: lib/bbdev: Defining dependency "bbdev"
Message: lib/bitratestats: Defining dependency "bitratestats"
Run-time dependency libelf found: NO (tried pkgconfig)
../lib/bpf/meson.build:36: WARNING: libelf is missing, rte_bpf_elf_load API will be disabled
Message: lib/bpf: Defining dependency "bpf"
Message: lib/cfgfile: Defining dependency "cfgfile"
Message: lib/compressdev: Defining dependency "compressdev"
Message: lib/cryptodev: Defining dependency "cryptodev"
Message: lib/distributor: Defining dependency "distributor"
Message: lib/efd: Defining dependency "efd"
Message: lib/eventdev: Defining dependency "eventdev"
Message: lib/gpudev: Defining dependency "gpudev"
Message: lib/gro: Defining dependency "gro"
Message: lib/gso: Defining dependency "gso"
Message: lib/ip_frag: Defining dependency "ip_frag"
Message: lib/jobstats: Defining dependency "jobstats"
Message: lib/kni: Defining dependency "kni"
Message: lib/latencystats: Defining dependency "latencystats"
Message: lib/lpm: Defining dependency "lpm"
Message: lib/member: Defining dependency "member"
Message: lib/pcapng: Defining dependency "pcapng"
Compiler for C supports arguments -Wno-cast-qual: YES (cached)
Message: lib/power: Defining dependency "power"
Message: lib/rawdev: Defining dependency "rawdev"
Message: lib/regexdev: Defining dependency "regexdev"
Message: lib/dmadev: Defining dependency "dmadev"
Message: lib/rib: Defining dependency "rib"
Message: lib/reorder: Defining dependency "reorder"
Message: lib/sched: Defining dependency "sched"
Message: lib/security: Defining dependency "security"
Message: lib/stack: Defining dependency "stack"
Has header "linux/userfaultfd.h" : YES (cached)
Message: lib/vhost: Defining dependency "vhost"
Message: lib/ipsec: Defining dependency "ipsec"
Fetching value of define "__AVX512F__" : (cached)
Fetching value of define "__AVX512DQ__" : (cached)
Compiler for C supports arguments -mavx512f -mavx512dq: YES (cached)
Compiler for C supports arguments -mavx512bw: YES (cached)
Message: lib/fib: Defining dependency "fib"
Message: lib/port: Defining dependency "port"
Message: lib/pdump: Defining dependency "pdump"
Message: lib/table: Defining dependency "table"
Message: lib/pipeline: Defining dependency "pipeline"
Message: lib/flow_classify: Defining dependency "flow_classify"
Message: lib/graph: Defining dependency "graph"
Message: lib/node: Defining dependency "node"
Compiler for C supports arguments -Wno-format-truncation: YES (cached)
Message: drivers/common/cpt: Defining dependency "common_cpt"
Compiler for C supports arguments -Wno-cast-qual: YES (cached)
Compiler for C supports arguments -Wno-pointer-arith: YES (cached)
Message: drivers/common/dpaax: Defining dependency "common_dpaax"
Compiler for C supports arguments -Wno-pointer-to-int-cast: YES (cached)
Message: drivers/common/iavf: Defining dependency "common_iavf"
Run-time dependency libmusdk found: NO (tried pkgconfig)
Message: drivers/common/octeontx: Defining dependency "common_octeontx"
Message: drivers/bus/auxiliary: Defining dependency "bus_auxiliary"
Compiler for C supports arguments -Wno-cast-qual: YES (cached)
Compiler for C supports arguments -Wno-pointer-arith: YES (cached)
Message: drivers/bus/dpaa: Defining dependency "bus_dpaa"
Message: drivers/bus/fslmc: Defining dependency "bus_fslmc"
Message: drivers/bus/ifpga: Defining dependency "bus_ifpga"
Message: drivers/bus/pci: Defining dependency "bus_pci"
Message: drivers/bus/vdev: Defining dependency "bus_vdev"
Message: drivers/bus/vmbus: Defining dependency "bus_vmbus"
Message: drivers/common/cnxk: Defining dependency "common_cnxk"
Compiler for C supports arguments -std=c11: YES (cached)
Compiler for C supports arguments -Wno-strict-prototypes: YES (cached)
Compiler for C supports arguments -D_BSD_SOURCE: YES (cached)
Compiler for C supports arguments -D_DEFAULT_SOURCE: YES (cached)
Compiler for C supports arguments -D_XOPEN_SOURCE=600: YES (cached)
Run-time dependency libmlx5 found: NO (tried pkgconfig)
Library mlx5 found: NO
Run-time dependency libcrypto found: NO (tried pkgconfig)
Message: drivers/common/qat: Defining dependency "common_qat"
Compiler for C supports arguments -Wdisabled-optimization: YES (cached)
Compiler for C supports arguments -Waggregate-return: YES (cached)
Compiler for C supports arguments -Wbad-function-cast: YES (cached)
Compiler for C supports arguments -Wno-sign-compare: YES (cached)
Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
Compiler for C supports arguments -Wno-unused-variable: YES (cached)
Compiler for C supports arguments -Wno-empty-body: YES (cached)
Compiler for C supports arguments -Wno-unused-but-set-variable: YES (cached)
Message: drivers/common/sfc_efx: Defining dependency "common_sfc_efx"
Message: drivers/mempool/bucket: Defining dependency "mempool_bucket"
Message: drivers/mempool/cnxk: Defining dependency "mempool_cnxk"
Message: drivers/mempool/dpaa: Defining dependency "mempool_dpaa"
Message: drivers/mempool/dpaa2: Defining dependency "mempool_dpaa2"
Message: drivers/mempool/octeontx: Defining dependency "mempool_octeontx"
Message: drivers/mempool/ring: Defining dependency "mempool_ring"
Message: drivers/mempool/stack: Defining dependency "mempool_stack"
Message: drivers/dma/cnxk: Defining dependency "dma_cnxk"
Compiler for C supports arguments -Wno-pointer-arith: YES (cached)
Message: drivers/dma/dpaa: Defining dependency "dma_dpaa"
Message: drivers/dma/hisilicon: Defining dependency "dma_hisilicon"
Message: drivers/dma/idxd: Defining dependency "dma_idxd"
Message: drivers/dma/ioat: Defining dependency "dma_ioat"
Message: drivers/dma/skeleton: Defining dependency "dma_skeleton"
Message: drivers/net/af_packet: Defining dependency "net_af_packet"
Run-time dependency libxdp found: NO (tried pkgconfig)
Run-time dependency libbpf found: NO (tried pkgconfig)
Library bpf found: NO
Has header "linux/if_xdp.h" : YES (cached)
Message: drivers/net/ark: Defining dependency "net_ark"
Message: drivers/net/atlantic: Defining dependency "net_atlantic"
Message: drivers/net/avp: Defining dependency "net_avp"
Message: drivers/net/axgbe: Defining dependency "net_axgbe"
Dependency zlib found: YES 1.2.11 (cached)
Message: drivers/net/bnx2x: Defining dependency "net_bnx2x"
Compiler for C supports arguments -DSUPPORT_CFA_HW_ALL=1: YES (cached)
Fetching value of define "__AVX2__" : 1 (cached)
Message: drivers/net/bnxt: Defining dependency "net_bnxt"
Message: drivers/net/bonding: Defining dependency "net_bond"
Compiler for C supports arguments -flax-vector-conversions: YES (cached)
Compiler for C supports arguments -Wno-strict-aliasing: YES (cached)
Message: drivers/net/cnxk: Defining dependency "net_cnxk"
Message: drivers/net/cxgbe: Defining dependency "net_cxgbe"
Compiler for C supports arguments -Wno-pointer-arith: YES (cached)
Message: drivers/net/dpaa: Defining dependency "net_dpaa"
Message: drivers/net/dpaa2: Defining dependency "net_dpaa2"
Compiler for C supports arguments -Wno-uninitialized: YES (cached)
Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
Compiler for C supports arguments -Wno-unused-variable: YES (cached)
Compiler for C supports arguments -Wno-misleading-indentation: YES (cached)
Compiler for C supports arguments -Wno-implicit-fallthrough: YES (cached)
Message: drivers/net/e1000: Defining dependency "net_e1000"
Message: drivers/net/ena: Defining dependency "net_ena"
Message: drivers/net/enetc: Defining dependency "net_enetc"
Message: drivers/net/enetfec: Defining dependency "net_enetfec"
Fetching value of define "__AVX2__" : 1 (cached)
Message: drivers/net/enic: Defining dependency "net_enic"
Message: drivers/net/failsafe: Defining dependency "net_failsafe"
Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
Compiler for C supports arguments -Wno-unused-value: YES (cached)
Compiler for C supports arguments -Wno-strict-aliasing: YES (cached)
Compiler for C supports arguments -Wno-format-extra-args: YES (cached)
Compiler for C supports arguments -Wno-unused-variable: YES (cached)
Compiler for C supports arguments -Wno-implicit-fallthrough: YES (cached)
Message: drivers/net/fm10k: Defining dependency "net_fm10k"
Message: drivers/net/hinic: Defining dependency "net_hinic"
Message: drivers/net/hns3: Defining dependency "net_hns3"
Compiler for C supports arguments -Wno-sign-compare: YES (cached)
Compiler for C supports arguments -Wno-unused-value: YES (cached)
Compiler for C supports arguments -Wno-format: YES (cached)
Compiler for C supports arguments -Wno-format-security: YES (cached)
Compiler for C supports arguments -Wno-format-nonliteral: YES (cached)
Compiler for C supports arguments -Wno-strict-aliasing: YES (cached)
Compiler for C supports arguments -Wno-unused-but-set-variable: YES (cached)
Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
Fetching value of define "__AVX2__" : 1 (cached)
Fetching value of define "__AVX512F__" : (cached)
Compiler for C supports arguments -mavx512f: YES (cached)
Compiler for C supports arguments -mavx512bw: YES (cached)
Compiler for C supports arguments -march=skylake-avx512: YES (cached)
Message: drivers/net/i40e: Defining dependency "net_i40e"
Fetching value of define "__AVX2__" : 1 (cached)
Fetching value of define "__AVX512F__" : (cached)
Compiler for C supports arguments -mavx512f: YES (cached)
Compiler for C supports arguments -mavx512bw: YES (cached)
Compiler for C supports arguments -march=skylake-avx512: YES (cached)
Message: drivers/net/iavf: Defining dependency "net_iavf"
Compiler for C supports arguments -Wno-unused-value: YES (cached)
Compiler for C supports arguments -Wno-unused-but-set-variable: YES (cached)
Compiler for C supports arguments -Wno-unused-variable: YES (cached)
Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
Fetching value of define "__AVX2__" : 1 (cached)
Fetching value of define "__AVX512F__" : (cached)
Compiler for C supports arguments -mavx512f: YES (cached)
Compiler for C supports arguments -mavx512bw: YES (cached)
Compiler for C supports arguments -march=skylake-avx512: YES (cached)
Message: drivers/net/ice: Defining dependency "net_ice"
Message: drivers/net/igc: Defining dependency "net_igc"
Message: drivers/net/ionic: Defining dependency "net_ionic"
Message: drivers/net/ipn3ke: Defining dependency "net_ipn3ke"
Compiler for C supports arguments -Wno-unused-value: YES (cached)
Compiler for C supports arguments -Wno-unused-but-set-variable: YES (cached)
Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
Message: drivers/net/ixgbe: Defining dependency "net_ixgbe"
Message: drivers/net/kni: Defining dependency "net_kni"
Message: drivers/net/liquidio: Defining dependency "net_liquidio"
Message: drivers/net/memif: Defining dependency "net_memif"
Run-time dependency libmlx4 found: NO (tried pkgconfig)
Library mlx4 found: NO
Compiler for C supports arguments -std=c11: YES (cached)
Compiler for C supports arguments -Wno-strict-prototypes: YES (cached)
Compiler for C supports arguments -D_BSD_SOURCE: YES (cached)
Compiler for C supports arguments -D_DEFAULT_SOURCE: YES (cached)
Compiler for C supports arguments -D_XOPEN_SOURCE=600: YES (cached)
Message: Disabling mlx5 [drivers/net/mlx5]: missing internal dependency "common_mlx5"
Run-time dependency libmusdk found: NO (tried pkgconfig)
Run-time dependency libmusdk found: NO (tried pkgconfig)
Message: drivers/net/netvsc: Defining dependency "net_netvsc"
Run-time dependency netcope-common found: NO (tried pkgconfig)
Message: drivers/net/nfp: Defining dependency "net_nfp"
Message: drivers/net/ngbe: Defining dependency "net_ngbe"
Message: drivers/net/null: Defining dependency "net_null"
Message: drivers/net/octeontx: Defining dependency "net_octeontx"
Message: drivers/net/octeontx_ep: Defining dependency "net_octeontx_ep"
Message: drivers/net/pcap: Defining dependency "net_pcap"
Compiler for C supports arguments -Wno-pointer-arith: YES (cached)
Message: drivers/net/pfe: Defining dependency "net_pfe"
Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
Compiler for C supports arguments -Wno-sign-compare: YES (cached)
Compiler for C supports arguments -Wno-missing-prototypes: YES (cached)
Compiler for C supports arguments -Wno-cast-qual: YES (cached)
Compiler for C supports arguments -Wno-unused-function: YES (cached)
Compiler for C supports arguments -Wno-unused-variable: YES (cached)
Compiler for C supports arguments -Wno-strict-aliasing: YES (cached)
Compiler for C supports arguments -Wno-missing-prototypes: YES (cached)
Compiler for C supports arguments -Wno-unused-value: YES (cached)
Compiler for C supports arguments -Wno-format-nonliteral: YES (cached)
Compiler for C supports arguments -Wno-shift-negative-value: YES (cached)
Compiler for C supports arguments -Wno-unused-but-set-variable: YES (cached)
Compiler for C supports arguments -Wno-missing-declarations: YES (cached)
Compiler for C supports arguments -Wno-maybe-uninitialized: YES (cached)
Compiler for C supports arguments -Wno-strict-prototypes: YES (cached)
Compiler for C supports arguments -Wno-shift-negative-value: YES (cached)
Compiler for C supports arguments -Wno-implicit-fallthrough: YES (cached)
Compiler for C supports arguments -Wno-format-extra-args: YES (cached)
Compiler for C supports arguments -Wno-visibility: NO (cached)
Compiler for C supports arguments -Wno-empty-body: YES (cached)
Compiler for C supports arguments -Wno-invalid-source-encoding: NO (cached)
Compiler for C supports arguments -Wno-sometimes-uninitialized: NO (cached)
Compiler for C supports arguments -Wno-pointer-bool-conversion: NO (cached)
Compiler for C supports arguments -Wno-format-nonliteral: YES (cached)
Message: drivers/net/qede: Defining dependency "net_qede"
Message: drivers/net/ring: Defining dependency "net_ring"
Compiler for C supports arguments -Wno-strict-aliasing: YES (cached)
Compiler for C supports arguments -Wdisabled-optimization: YES (cached)
Compiler for C supports arguments -Waggregate-return: YES (cached)
Compiler for C supports arguments -Wbad-function-cast: YES (cached)
Library atomic found: YES
Message: drivers/net/sfc: Defining dependency "net_sfc"
Message: drivers/net/softnic: Defining dependency "net_softnic"
Header <linux/pkt_cls.h> has symbol "TCA_FLOWER_UNSPEC" : YES (cached)
Header <linux/pkt_cls.h> has symbol "TCA_FLOWER_KEY_VLAN_PRIO" : YES (cached)
Header <linux/pkt_cls.h> has symbol "TCA_BPF_UNSPEC" : YES (cached)
Header <linux/pkt_cls.h> has symbol "TCA_BPF_FD" : YES (cached)
Header <linux/tc_act/tc_bpf.h> has symbol "TCA_ACT_BPF_UNSPEC" : YES (cached)
Header <linux/tc_act/tc_bpf.h> has symbol "TCA_ACT_BPF_FD" : YES (cached)
Configuring tap_autoconf.h using configuration
Message: drivers/net/tap: Defining dependency "net_tap"
Compiler for C supports arguments -fno-prefetch-loop-arrays: YES (cached)
Compiler for C supports arguments -Wno-maybe-uninitialized: YES (cached)
Message: drivers/net/thunderx: Defining dependency "net_thunderx"
Message: drivers/net/txgbe: Defining dependency "net_txgbe"
Compiler for C supports arguments -D_BSD_SOURCE: YES (cached)
Compiler for C supports arguments -D_DEFAULT_SOURCE: YES (cached)
Compiler for C supports arguments -D_XOPEN_SOURCE=600: YES (cached)
Message: drivers/net/vdev_netvsc: Defining dependency "net_vdev_netvsc"
Message: drivers/net/vhost: Defining dependency "net_vhost"
Compiler for C supports arguments -mavx512f: YES (cached)
Compiler for C supports arguments -mavx512vl: YES (cached)
Compiler for C supports arguments -mavx512bw: YES (cached)
Message: drivers/net/virtio: Defining dependency "net_virtio"
Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
Compiler for C supports arguments -Wno-unused-value: YES (cached)
Compiler for C supports arguments -Wno-strict-aliasing: YES (cached)
Compiler for C supports arguments -Wno-format-extra-args: YES (cached)
Message: drivers/net/vmxnet3: Defining dependency "net_vmxnet3"
Message: drivers/raw/cnxk_bphy: Defining dependency "raw_cnxk_bphy"
Message: drivers/raw/cnxk_gpio: Defining dependency "raw_cnxk_gpio"
Message: drivers/raw/dpaa2_cmdif: Defining dependency "raw_dpaa2_cmdif"
Message: drivers/raw/dpaa2_qdma: Defining dependency "raw_dpaa2_qdma"
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency librt found: NO (tried pkgconfig and cmake)
Library rt found: YES
Message: drivers/raw/ifpga: Defining dependency "raw_ifpga"
Message: drivers/raw/ntb: Defining dependency "raw_ntb"
Message: drivers/raw/skeleton: Defining dependency "raw_skeleton"
Run-time dependency libaarch64crypto found: NO (tried pkgconfig)
Message: drivers/crypto/bcmfs: Defining dependency "crypto_bcmfs"
Message: drivers/crypto/caam_jr: Defining dependency "crypto_caam_jr"
Run-time dependency libcrypto found: NO (tried pkgconfig)
Message: drivers/crypto/cnxk: Defining dependency "crypto_cnxk"
Message: drivers/crypto/dpaa_sec: Defining dependency "crypto_dpaa_sec"
Message: drivers/crypto/dpaa2_sec: Defining dependency "crypto_dpaa2_sec"
Library IPSec_MB found: NO
Compiler for C supports arguments -std=c11: YES (cached)
Compiler for C supports arguments -Wno-strict-prototypes: YES (cached)
Compiler for C supports arguments -D_BSD_SOURCE: YES (cached)
Compiler for C supports arguments -D_DEFAULT_SOURCE: YES (cached)
Compiler for C supports arguments -D_XOPEN_SOURCE=600: YES (cached)
Message: Disabling mlx5 [drivers/crypto/mlx5]: missing internal dependency "common_mlx5"
Run-time dependency libmusdk found: NO (tried pkgconfig)
Message: drivers/crypto/nitrox: Defining dependency "crypto_nitrox"
Message: drivers/crypto/null: Defining dependency "crypto_null"
Message: drivers/crypto/octeontx: Defining dependency "crypto_octeontx"
Run-time dependency libcrypto found: NO (tried pkgconfig)
Message: drivers/crypto/scheduler: Defining dependency "crypto_scheduler"
Message: drivers/crypto/virtio: Defining dependency "crypto_virtio"
Run-time dependency libisal found: NO (tried pkgconfig)
Compiler for C supports arguments -std=c11: YES (cached)
Compiler for C supports arguments -Wno-strict-prototypes: YES (cached)
Compiler for C supports arguments -D_BSD_SOURCE: YES (cached)
Compiler for C supports arguments -D_DEFAULT_SOURCE: YES (cached)
Compiler for C supports arguments -D_XOPEN_SOURCE=600: YES (cached)
Message: Disabling mlx5 [drivers/compress/mlx5]: missing internal dependency "common_mlx5"
Message: drivers/compress/octeontx: Defining dependency "compress_octeontx"
Dependency zlib found: YES 1.2.11 (cached)
Message: drivers/compress/zlib: Defining dependency "compress_zlib"
Compiler for C supports arguments -std=c11: YES (cached)
Compiler for C supports arguments -Wno-strict-prototypes: YES (cached)
Compiler for C supports arguments -D_BSD_SOURCE: YES (cached)
Compiler for C supports arguments -D_DEFAULT_SOURCE: YES (cached)
Compiler for C supports arguments -D_XOPEN_SOURCE=600: YES (cached)
Message: Disabling mlx5 [drivers/regex/mlx5]: missing internal dependency "common_mlx5"
Library librxp_compiler found: NO
Message: drivers/regex/cn9k: Defining dependency "regex_cn9k"
Message: drivers/vdpa/ifc: Defining dependency "vdpa_ifc"
Compiler for C supports arguments -std=c11: YES (cached)
Compiler for C supports arguments -Wno-strict-prototypes: YES (cached)
Compiler for C supports arguments -D_BSD_SOURCE: YES (cached)
Compiler for C supports arguments -D_DEFAULT_SOURCE: YES (cached)
Compiler for C supports arguments -D_XOPEN_SOURCE=600: YES (cached)
Message: Disabling mlx5 [drivers/vdpa/mlx5]: missing internal dependency "common_mlx5"
Message: drivers/vdpa/sfc: Defining dependency "vdpa_sfc"
Compiler for C supports arguments -flax-vector-conversions: YES (cached)
Compiler for C supports arguments -Wno-strict-aliasing: YES (cached)
Message: drivers/event/cnxk: Defining dependency "event_cnxk"
Message: drivers/event/dlb2: Defining dependency "event_dlb2"
Message: drivers/event/dpaa: Defining dependency "event_dpaa"
Message: drivers/event/dpaa2: Defining dependency "event_dpaa2"
Compiler for C supports arguments -Wno-format-nonliteral: YES (cached)
Message: drivers/event/dsw: Defining dependency "event_dsw"
Message: drivers/event/opdl: Defining dependency "event_opdl"
Message: drivers/event/skeleton: Defining dependency "event_skeleton"
Message: drivers/event/sw: Defining dependency "event_sw"
Message: drivers/event/octeontx: Defining dependency "event_octeontx"
Message: drivers/baseband/acc100: Defining dependency "baseband_acc100"
Message: drivers/baseband/fpga_5gnr_fec: Defining dependency "baseband_fpga_5gnr_fec"
Message: drivers/baseband/fpga_lte_fec: Defining dependency "baseband_fpga_lte_fec"
Message: drivers/baseband/la12xx: Defining dependency "baseband_la12xx"
Message: drivers/baseband/null: Defining dependency "baseband_null"
Library libturbo found: NO
Library libldpc_decoder_5gnr found: NO
Message: drivers/baseband/turbo_sw: Defining dependency "baseband_turbo_sw"
Has header "cuda.h" : NO (cached)
Compiler for C supports arguments -Wno-format-truncation: YES (cached)
Dependency zlib found: YES 1.2.11 (cached)
Message: hugepage availability: true
Program doxygen found: NO
Program sphinx-build found: YES (/usr/bin/sphinx-build)
Compiler for C supports arguments -Wno-format-truncation: YES (cached)
Configuring rte_build_config.h using configuration
Message:
=================
Libraries Enabled
=================
libs:
kvargs, telemetry, eal, ring, rcu, mempool, mbuf, net,
meter, ethdev, pci, cmdline, metrics, hash, timer, acl,
bbdev, bitratestats, bpf, cfgfile, compressdev, cryptodev, distributor, efd,
eventdev, gpudev, gro, gso, ip_frag, jobstats, kni, latencystats,
lpm, member, pcapng, power, rawdev, regexdev, dmadev, rib,
reorder, sched, security, stack, vhost, ipsec, fib, port,
pdump, table, pipeline, flow_classify, graph, node,
Message:
===============
Drivers Enabled
===============
common:
cpt, dpaax, iavf, octeontx, cnxk, qat, sfc_efx,
bus:
auxiliary, dpaa, fslmc, ifpga, pci, vdev, vmbus,
mempool:
bucket, cnxk, dpaa, dpaa2, octeontx, ring, stack,
dma:
cnxk, dpaa, hisilicon, idxd, ioat, skeleton,
net:
af_packet, ark, atlantic, avp, axgbe, bnx2x, bnxt, bond,
cnxk, cxgbe, dpaa, dpaa2, e1000, ena, enetc, enetfec,
enic, failsafe, fm10k, hinic, hns3, i40e, iavf, ice,
igc, ionic, ipn3ke, ixgbe, kni, liquidio, memif, netvsc,
nfp, ngbe, null, octeontx, octeontx_ep, pcap, pfe, qede,
ring, sfc, softnic, tap, thunderx, txgbe, vdev_netvsc, vhost,
virtio, vmxnet3,
raw:
cnxk_bphy, cnxk_gpio, dpaa2_cmdif, dpaa2_qdma, ifpga, ntb, skeleton,
crypto:
bcmfs, caam_jr, cnxk, dpaa_sec, dpaa2_sec, nitrox, null, octeontx,
scheduler, virtio,
compress:
octeontx, zlib,
regex:
cn9k,
vdpa:
ifc, sfc,
event:
cnxk, dlb2, dpaa, dpaa2, dsw, opdl, skeleton, sw,
octeontx,
baseband:
acc100, fpga_5gnr_fec, fpga_lte_fec, la12xx, null, turbo_sw,
gpu:
Message:
=================
Content Skipped
=================
libs:
drivers:
common/mvep: missing dependency, "libmusdk"
common/mlx5: missing dependency, "mlx5"
crypto/qat: missing dependency, libcrypto
net/af_xdp: missing dependency, "libxdp" and "libbpf"
net/mlx4: missing dependency, "mlx4"
net/mlx5: missing internal dependency, "common_mlx5"
net/mvneta: missing dependency, "libmusdk"
net/mvpp2: missing dependency, "libmusdk"
net/nfb: missing dependency, "libnfb"
raw/ioat: replaced by dmadev drivers
crypto/armv8: missing dependency, "libAArch64crypto"
crypto/ccp: missing dependency, "libcrypto"
crypto/ipsec_mb: missing dependency, "libIPSec_MB"
crypto/mlx5: missing internal dependency, "common_mlx5"
crypto/mvsam: missing dependency, "libmusdk"
crypto/openssl: missing dependency, "libcrypto"
compress/isal: missing dependency, "libisal"
compress/mlx5: missing internal dependency, "common_mlx5"
regex/mlx5: missing internal dependency, "common_mlx5"
vdpa/mlx5: missing internal dependency, "common_mlx5"
gpu/cuda: missing dependency, "cuda.h"
Build targets in project: 1114
Found ninja-1.10.0.git.kitware.jobserver-1 at /usr/local/bin/ninja
[1/8] Compiling C object examples/dpdk-l3fwd.p/l3fwd_l3fwd_event.c.o
[2/8] Compiling C object examples/dpdk-l3fwd.p/l3fwd_l3fwd_event_generic.c.o
[3/8] Compiling C object examples/dpdk-l3fwd.p/l3fwd_l3fwd_event_internal_port.c.o
[4/8] Compiling C object examples/dpdk-l3fwd.p/l3fwd_main.c.o
[5/8] Compiling C object examples/dpdk-l3fwd.p/l3fwd_l3fwd_lpm.c.o
[6/8] Compiling C object examples/dpdk-l3fwd.p/l3fwd_l3fwd_fib.c.o
[7/8] Compiling C object examples/dpdk-l3fwd.p/l3fwd_l3fwd_em.c.o
[8/8] Linking target examples/dpdk-l3fwd
22/04/2022 09:43:54 dut.10.239.251.133: ls x86_64-native-linuxapp-gcc/examples/dpdk-l3fwd
22/04/2022 09:43:54 dut.10.239.251.133: x86_64-native-linuxapp-gcc/examples/dpdk-l3fwd
22/04/2022 09:43:54 TestL3fwdFunc: Test Case test_1_port_1_queue_default Begin
22/04/2022 09:43:54 dut.10.239.251.133:
22/04/2022 09:43:54 tester:
22/04/2022 09:43:54 dut.10.239.251.133: x86_64-native-linuxapp-gcc/examples/dpdk-l3fwd -l 1 -n 4 -a 0000:81:00.0 --file-prefix=dpdk_17196_20220422094157 -- -p 0x1 --config="(0,0,1)" --eth-dest=0,b4:96:91:9f:64:b9
22/04/2022 09:43:58 dut.10.239.251.133: EAL: Detected CPU lcores: 72
EAL: Detected NUMA nodes: 2
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/dpdk_17196_20220422094157/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: VFIO support initialized
EAL: Using IOMMU type 1 (Type 1)
EAL: Ignore mapping IO port bar(1)
EAL: Ignore mapping IO port bar(4)
EAL: Probe PCI driver: net_ice (8086:1592) device: 0000:81:00.0 (socket 1)
ice_load_pkg_type(): Active package is: 1.3.28.0, ICE OS Default Package (double VLAN mode)
Neither LPM, EM, or FIB selected, defaulting to LPM
L3FWD: Missing 1 or more rule files, using default instead
Initializing port 0 ... Creating queues: nb_rxq=1 nb_txq=1... Port 0 modified RSS hash function based on hardware support,requested:0xa38c configured:0x238c
Address:40:A6:B7:0B:55:88, Destination:B4:96:91:9F:64:B9, Allocated mbuf pool on socket 0
LPM: Adding route 198.18.0.0 / 24 (0) [0000:81:00.0]
LPM: Adding route 2001:200:: / 64 (0) [0000:81:00.0]
txq=1,0,0
Initializing rx queues on lcore 1 ... rxq=0,0,0 ice_set_rx_function(): Using AVX2 OFFLOAD Vector Rx (port 0).
Checking link status...............done
22/04/2022 09:43:58 tester: ls -d /tmp/tester/
22/04/2022 09:43:58 tester: /tmp/tester/
22/04/2022 09:43:58 tester: rm -rf /tmp/tester/sniff_ens2f0.pcap
22/04/2022 09:43:58 tester:
22/04/2022 09:44:14 tester: tcpdump -r /tmp/tester/sniff_ens2f0.pcap
22/04/2022 09:44:15 tester: reading from file /tmp/tester/sniff_ens2f0.pcap, link-type EN10MB (Ethernet)
09:44:07.327937 IP 1.2.3.4 > 198.168.0.1: hopopt 80
09:44:07.329196 IP 1.2.3.4 > 198.168.0.2: hopopt 80
09:44:07.330645 IP 1.2.3.4 > 198.168.0.3: hopopt 80
09:44:07.331839 IP 1.2.3.4 > 198.168.0.4: hopopt 80
09:44:07.333142 IP 1.2.3.4 > 198.168.0.5: hopopt 80
09:44:07.334398 IP 1.2.3.4 > 198.168.0.6: hopopt 80
09:44:07.335742 IP 1.2.3.4 > 198.168.0.7: hopopt 80
09:44:07.337046 IP 1.2.3.4 > 198.168.0.8: hopopt 80
09:44:07.338355 IP 1.2.3.4 > 198.168.0.9: hopopt 80
09:44:07.339559 IP 1.2.3.4 > 198.168.0.10: hopopt 80
22/04/2022 09:44:15 tester: ls -d /tmp/tester/
22/04/2022 09:44:15 tester: /tmp/tester/
22/04/2022 09:44:15 tester: rm -rf /tmp/tester/sniff_ens2f0.pcap
22/04/2022 09:44:16 tester:
22/04/2022 09:44:30 tester: tcpdump -r /tmp/tester/sniff_ens2f0.pcap
22/04/2022 09:44:41 tester: reading from file /tmp/tester/sniff_ens2f0.pcap, link-type EN10MB (Ethernet)
09:44:24.232911 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::1: no next header
09:44:24.234018 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::2: no next header
09:44:24.234873 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::3: no next header
09:44:24.235723 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::4: no next header
09:44:24.236486 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::5: no next header
09:44:24.237326 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::6: no next header
09:44:24.238127 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::7: no next header
09:44:24.238920 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::8: no next header
09:44:24.239824 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::9: no next header
09:44:24.240626 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::10: no next header
22/04/2022 09:44:41 TestL3fwdFunc: Test Case test_1_port_1_queue_default Result PASSED:
22/04/2022 09:44:41 dut.10.239.251.133: ^C
22/04/2022 09:44:41 dut.10.239.251.133:
Signal 2 received, preparing to exit...
Closing port 0... Done
Bye...
22/04/2022 09:44:41 dut.10.239.251.133: kill_all: called by dut and prefix list has value.
22/04/2022 09:44:42 TestL3fwdFunc: Test Case test_1_port_4_queues_non_default Begin
22/04/2022 09:44:42 dut.10.239.251.133:
22/04/2022 09:44:42 tester:
22/04/2022 09:44:42 TestL3fwdFunc: Test Case test_1_port_4_queues_non_default N/A:
22/04/2022 09:44:42 dut.10.239.251.133: ^C
22/04/2022 09:44:42 dut.10.239.251.133:
22/04/2022 09:44:42 dut.10.239.251.133: kill_all: called by dut and has no prefix list.
22/04/2022 09:44:43 TestL3fwdFunc: Test Case test_2_ports_4_queues_non_default Begin
22/04/2022 09:44:43 dut.10.239.251.133:
22/04/2022 09:44:43 tester:
22/04/2022 09:44:43 dut.10.239.251.133: x86_64-native-linuxapp-gcc/examples/dpdk-l3fwd -l 1-2 -n 4 -a 0000:81:00.0 -a 0000:81:00.1 --file-prefix=dpdk_17196_20220422094157 -- -p 0x3 --config="(0,0,1),(0,1,1),(0,2,2),(0,3,2),(1,0,1),(1,1,1),(1,2,2),(1,3,2)" -P --rule_ipv4="./examples/l3fwd/em_default_v4.cfg" --rule_ipv6="./examples/l3fwd/em_default_v6.cfg" --lookup=em --rx-queue-size=2048 --tx-queue-size=2048 --parse-ptype
22/04/2022 09:44:46 dut.10.239.251.133: EAL: Detected CPU lcores: 72
EAL: Detected NUMA nodes: 2
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/dpdk_17196_20220422094157/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: VFIO support initialized
EAL: Using IOMMU type 1 (Type 1)
EAL: Ignore mapping IO port bar(1)
EAL: Ignore mapping IO port bar(4)
EAL: Probe PCI driver: net_ice (8086:1592) device: 0000:81:00.0 (socket 1)
ice_load_pkg_type(): Active package is: 1.3.28.0, ICE OS Default Package (double VLAN mode)
EAL: Ignore mapping IO port bar(1)
EAL: Ignore mapping IO port bar(4)
EAL: Probe PCI driver: net_ice (8086:1592) device: 0000:81:00.1 (socket 1)
ice_load_pkg_type(): Active package is: 1.3.28.0, ICE OS Default Package (double VLAN mode)
soft parse-ptype is enabled
Initializing port 0 ... Creating queues: nb_rxq=4 nb_txq=2... Port 0 modified RSS hash function based on hardware support,requested:0xa38c configured:0x238c
Address:40:A6:B7:0B:55:88, Destination:02:00:00:00:00:00, Allocated mbuf pool on socket 0
EM: Adding route 198.18.0.0, 198.18.0.1, 9, 9, 17 (0) [0000:81:00.0]
EM: Adding route 198.18.1.0, 198.18.1.1, 9, 9, 17 (1) [0000:81:00.1]
Hash: Adding 0x10 keys
txq=1,0,0 txq=2,1,0
Initializing port 1 ... Creating queues: nb_rxq=4 nb_txq=2... Port 1 modified RSS hash function based on hardware support,requested:0xa38c configured:0x238c
Address:40:A6:B7:0B:55:89, Destination:02:00:00:00:00:01, txq=1,0,0 txq=2,1,0
Initializing rx queues on lcore 1 ... rxq=0,0,0 rxq=0,1,0 rxq=1,0,0 rxq=1,1,0
Initializing rx queues on lcore 2 ... rxq=0,2,0 rxq=0,3,0 rxq=1,2,0 rxq=1,3,0 ice_set_rx_function(): Using AVX2 OFFLOAD Vector Rx (port 0).
ice_set_rx_function(): Using AVX2 OFFLOAD Vector Rx (port 1).
Port 0: softly parse packet type info
Port 0: softly parse packet type info
Port 1: softly parse packet type info
Port 1: softly parse packet type info
Port 0: softly parse packet type info
Port 0: softly parse packet type info
Port 1: softly parse packet type info
Port 1: softly parse packet type info
Checking link statusdone
22/04/2022 09:44:46 tester: ls -d /tmp/tester/
22/04/2022 09:44:46 tester: /tmp/tester/
22/04/2022 09:44:46 tester: rm -rf /tmp/tester/sniff_ens2f0.pcap
22/04/2022 09:44:46 tester:
22/04/2022 09:45:00 tester: tcpdump -r /tmp/tester/sniff_ens2f0.pcap
22/04/2022 09:45:02 tester: reading from file /tmp/tester/sniff_ens2f0.pcap, link-type EN10MB (Ethernet)
09:44:54.567677 IP 1.2.3.4 > 198.168.0.1: hopopt 80
09:44:54.568674 IP 1.2.3.4 > 198.168.0.2: hopopt 80
09:44:54.569720 IP 1.2.3.4 > 198.168.0.3: hopopt 80
09:44:54.570771 IP 1.2.3.4 > 198.168.0.4: hopopt 80
09:44:54.571793 IP 1.2.3.4 > 198.168.0.5: hopopt 80
09:44:54.572798 IP 1.2.3.4 > 198.168.0.6: hopopt 80
09:44:54.573843 IP 1.2.3.4 > 198.168.0.7: hopopt 80
09:44:54.574929 IP 1.2.3.4 > 198.168.0.8: hopopt 80
09:44:54.575932 IP 1.2.3.4 > 198.168.0.9: hopopt 80
09:44:54.576948 IP 1.2.3.4 > 198.168.0.10: hopopt 80
09:44:54.577991 IP 1.2.3.4 > 198.168.0.11: hopopt 80
09:44:54.578999 IP 1.2.3.4 > 198.168.0.12: hopopt 80
09:44:54.580051 IP 1.2.3.4 > 198.168.0.13: hopopt 80
09:44:54.581098 IP 1.2.3.4 > 198.168.0.14: hopopt 80
09:44:54.582101 IP 1.2.3.4 > 198.168.0.15: hopopt 80
09:44:54.583109 IP 1.2.3.4 > 198.168.0.16: hopopt 80
09:44:54.584157 IP 1.2.3.4 > 198.168.0.17: hopopt 80
09:44:54.585209 IP 1.2.3.4 > 198.168.0.18: hopopt 80
09:44:54.586212 IP 1.2.3.4 > 198.168.0.19: hopopt 80
09:44:54.587266 IP 1.2.3.4 > 198.168.0.20: hopopt 80
22/04/2022 09:45:02 tester: ls -d /tmp/tester/
22/04/2022 09:45:03 tester: /tmp/tester/
22/04/2022 09:45:03 tester: rm -rf /tmp/tester/sniff_ens2f1.pcap
22/04/2022 09:45:03 tester:
22/04/2022 09:45:18 tester: tcpdump -r /tmp/tester/sniff_ens2f0.pcap
22/04/2022 09:45:20 tester: reading from file /tmp/tester/sniff_ens2f0.pcap, link-type EN10MB (Ethernet)
09:44:54.567677 IP 1.2.3.4 > 198.168.0.1: hopopt 80
09:44:54.568674 IP 1.2.3.4 > 198.168.0.2: hopopt 80
09:44:54.569720 IP 1.2.3.4 > 198.168.0.3: hopopt 80
09:44:54.570771 IP 1.2.3.4 > 198.168.0.4: hopopt 80
09:44:54.571793 IP 1.2.3.4 > 198.168.0.5: hopopt 80
09:44:54.572798 IP 1.2.3.4 > 198.168.0.6: hopopt 80
09:44:54.573843 IP 1.2.3.4 > 198.168.0.7: hopopt 80
09:44:54.574929 IP 1.2.3.4 > 198.168.0.8: hopopt 80
09:44:54.575932 IP 1.2.3.4 > 198.168.0.9: hopopt 80
09:44:54.576948 IP 1.2.3.4 > 198.168.0.10: hopopt 80
09:44:54.577991 IP 1.2.3.4 > 198.168.0.11: hopopt 80
09:44:54.578999 IP 1.2.3.4 > 198.168.0.12: hopopt 80
09:44:54.580051 IP 1.2.3.4 > 198.168.0.13: hopopt 80
09:44:54.581098 IP 1.2.3.4 > 198.168.0.14: hopopt 80
09:44:54.582101 IP 1.2.3.4 > 198.168.0.15: hopopt 80
09:44:54.583109 IP 1.2.3.4 > 198.168.0.16: hopopt 80
09:44:54.584157 IP 1.2.3.4 > 198.168.0.17: hopopt 80
09:44:54.585209 IP 1.2.3.4 > 198.168.0.18: hopopt 80
09:44:54.586212 IP 1.2.3.4 > 198.168.0.19: hopopt 80
09:44:54.587266 IP 1.2.3.4 > 198.168.0.20: hopopt 80
22/04/2022 09:45:20 tester: ls -d /tmp/tester/
22/04/2022 09:45:20 tester: /tmp/tester/
22/04/2022 09:45:20 tester: rm -rf /tmp/tester/sniff_ens2f0.pcap
22/04/2022 09:45:20 tester:
22/04/2022 09:45:34 tester: tcpdump -r /tmp/tester/sniff_ens2f0.pcap
22/04/2022 09:45:41 tester: reading from file /tmp/tester/sniff_ens2f0.pcap, link-type EN10MB (Ethernet)
09:45:28.160887 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::1: no next header
09:45:28.161794 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::2: no next header
09:45:28.162549 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::3: no next header
09:45:28.163791 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::4: no next header
09:45:28.164558 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::5: no next header
09:45:28.165435 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::6: no next header
09:45:28.166205 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::7: no next header
09:45:28.167033 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::8: no next header
09:45:28.167902 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::9: no next header
09:45:28.168703 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::10: no next header
09:45:28.169469 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::11: no next header
09:45:28.170250 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::12: no next header
09:45:28.171110 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::13: no next header
09:45:28.171860 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::14: no next header
09:45:28.172713 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::15: no next header
09:45:28.173515 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::16: no next header
09:45:28.174295 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::17: no next header
09:45:28.175119 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::18: no next header
09:45:28.175855 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::19: no next header
09:45:28.176683 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::20: no next header
22/04/2022 09:45:41 tester: ls -d /tmp/tester/
22/04/2022 09:45:41 tester: /tmp/tester/
22/04/2022 09:45:41 tester: rm -rf /tmp/tester/sniff_ens2f1.pcap
22/04/2022 09:45:41 tester:
22/04/2022 09:45:55 tester: tcpdump -r /tmp/tester/sniff_ens2f0.pcap
22/04/2022 09:45:56 tester: reading from file /tmp/tester/sniff_ens2f0.pcap, link-type EN10MB (Ethernet)
09:45:28.160887 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::1: no next header
09:45:28.161794 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::2: no next header
09:45:28.162549 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::3: no next header
09:45:28.163791 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::4: no next header
09:45:28.164558 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::5: no next header
09:45:28.165435 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::6: no next header
09:45:28.166205 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::7: no next header
09:45:28.167033 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::8: no next header
09:45:28.167902 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::9: no next header
09:45:28.168703 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::10: no next header
09:45:28.169469 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::11: no next header
09:45:28.170250 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::12: no next header
09:45:28.171110 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::13: no next header
09:45:28.171860 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::14: no next header
09:45:28.172713 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::15: no next header
09:45:28.173515 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::16: no next header
09:45:28.174295 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::17: no next header
09:45:28.175119 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::18: no next header
09:45:28.175855 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::19: no next header
09:45:28.176683 IP6 fe80::b696:91ff:fe9f:64b9 > 2001:200::20: no next header
22/04/2022 09:45:57 TestL3fwdFunc: Test Case test_2_ports_4_queues_non_default Result PASSED:
22/04/2022 09:45:57 dut.10.239.251.133: ^C
22/04/2022 09:45:57 dut.10.239.251.133:
Signal 2 received, preparing to exit...
Closing port 0... Done
Closing port 1... Done
Bye...
22/04/2022 09:45:57 dut.10.239.251.133: kill_all: called by dut and prefix list has value.
22/04/2022 09:45:58 dts:
TEST SUITE ENDED: TestL3fwdFunc
^ permalink raw reply [flat|nested] 3+ messages in thread
* [dts] [PATCH V1] tests/l3fwd_func: add a new test suite
@ 2022-04-22 9:58 Jiale Song
2022-04-22 2:07 ` Huang, ZhiminX
2022-05-05 8:06 ` lijuan.tu
0 siblings, 2 replies; 3+ messages in thread
From: Jiale Song @ 2022-04-22 9:58 UTC (permalink / raw)
To: dts; +Cc: Jiale Song
test suite for 22.03 new feature.
add new tests/TestSuite_l3fwd_func.py.
Signed-off-by: Jiale Song <songx.jiale@intel.com>
---
tests/TestSuite_l3fwd_func.py | 281 ++++++++++++++++++++++++++++++++++
1 file changed, 281 insertions(+)
create mode 100644 tests/TestSuite_l3fwd_func.py
diff --git a/tests/TestSuite_l3fwd_func.py b/tests/TestSuite_l3fwd_func.py
new file mode 100644
index 00000000..7340c09d
--- /dev/null
+++ b/tests/TestSuite_l3fwd_func.py
@@ -0,0 +1,281 @@
+# BSD LICENSE
+#
+# Copyright(c) 2022 Intel Corporation. All rights reserved.
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# * Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# * Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in
+# the documentation and/or other materials provided with the
+# distribution.
+# * Neither the name of Intel Corporation nor the names of its
+# contributors may be used to endorse or promote products derived
+# from this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+from framework.packet import Packet
+from framework.test_case import TestCase
+
+
+class TestL3fwdFunc(TestCase):
+ """
+ This suite is focus on l3fwd application, so any standard Ethernet Network Adapter is qualified.
+ """
+
+ def set_up_all(self):
+ """
+ Run at the start of each test suite.
+ L3fwd Prerequisites
+ """
+ self.dut_ports = self.dut.get_ports(self.nic)
+ self.verify(len(self.dut_ports) >= 1, "Insufficient ports")
+ self.app_path = self.dut.build_dpdk_apps("examples/l3fwd")
+ self.pkt = Packet()
+ self.dport_info0 = self.dut.ports_info[self.dut_ports[0]]
+ self.tport_info0 = self.tester.ports_info[self.dut_ports[0]]
+ self.tport_intf0 = self.tport_info0["intf"]
+ # judgment is added to avoid errors caused by the absence of port 1
+ if len(self.dut_ports) >= 2:
+ self.dport_info1 = self.dut.ports_info[self.dut_ports[1]]
+ self.tport_info1 = self.tester.ports_info[self.dut_ports[1]]
+ self.tport_intf1 = self.tport_info1["intf"]
+ self.ip_src = "1.2.3.4"
+ self.ip_dst = "198.168.0.%s"
+ self.ipv6_src = "fe80::b696:91ff:fe9f:64b9"
+ self.ipv6_dst = "2001:200::%s"
+
+ def set_up(self):
+ """
+ Run before each test case.
+ """
+ pass
+
+ def launch_l3fwd(self, eal_params, params):
+ """
+ launch l3fwd and return echo information
+ :param eal_params: the eal parameter of launch l3fwd
+ :param params: other params
+ :return: echo information after launch l3fwd
+ """
+ expected = "Link up"
+ out = self.dut.send_expect(
+ "%s %s -- %s" % (self.app_path, eal_params, params), expected, timeout=30
+ )
+ return out
+
+ def check_l3fwd_message(self, message, check_mesg):
+ """
+ check check_mesg in message
+ :param message: information to be detected
+ :param check_mesg: detection information, list or str
+ :return:
+ """
+ mesg = [check_mesg] if isinstance(check_mesg, str) else check_mesg
+ for info in mesg:
+ self.verify(info in message, "%s not found in l3fwd" % info)
+
+ def build_packet(self, packet_pattern, type, num, dstmac, srcmac):
+ """
+ build the required packages
+ :param packet_pattern: 'Ether(dst="%s", src="%s")/IP(src="%s",dst="%s")/Raw("x"*80)'
+ :param type: ipv4 or ipv6
+ :param num: number of packets required
+ :param dstip: Ether dts mac
+ :param srcip: Ether src mac
+ :return: the list of packets
+ """
+ packets = []
+ if type == "ipv4":
+ for i in range(num):
+ pkt = packet_pattern % (
+ dstmac,
+ srcmac,
+ self.ip_src,
+ self.ip_dst % (1 + i),
+ )
+ packets.append(pkt)
+ elif type == "ipv6":
+ for i in range(num):
+ pkt = packet_pattern % (
+ dstmac,
+ srcmac,
+ self.ipv6_src,
+ self.ipv6_dst % (1 + i),
+ )
+ packets.append(pkt)
+ else:
+ self.verify(False, "The type of packet is not defined")
+ return packets
+
+ def check_package_received(self, send_pkt_num, type):
+ """
+ check the type and number of packets received
+ :param send_pkt_num: the number of send packets, list
+ :param type: the type of packet, ipv4 or ipv6
+ :return:
+ """
+ out = self.tester.send_expect(
+ "tcpdump -r /tmp/tester/sniff_%s.pcap" % (self.tport_intf0),
+ "# ",
+ timeout=30,
+ )
+ lost_list = []
+ for i in range(send_pkt_num):
+ if type == "ipv4":
+ lost_list if "IP %s > %s" % (
+ self.ip_src,
+ self.ip_dst % (i + 1),
+ ) in out else lost_list.append(self.ip_dst % (i + 1))
+
+ elif type == "ipv6":
+ lost_list if "IP6 %s > %s" % (
+ self.ipv6_src,
+ self.ipv6_dst % (i + 1),
+ ) in out else lost_list.append(self.ip_dst % (i + 1))
+
+ else:
+ self.verify(False, "The type of packet is not defined")
+
+ if lost_list:
+ self.verify(False, "Packet with DST mac %s is missing" % lost_list)
+
+ def test_1_port_1_queue_default(self):
+ """
+ 1 port 1 queue with default setting
+ """
+ eal_params = self.dut.create_eal_parameters(
+ cores=[1], ports=self.dut_ports[0:1]
+ )
+ params = '-p 0x1 --config="(0,0,1)" --eth-dest=0,b4:96:91:9f:64:b9'
+ out = self.launch_l3fwd(eal_params, params)
+ mesg_list = [
+ "Neither LPM, EM, or FIB selected, defaulting to LPM",
+ "L3FWD: Missing 1 or more rule files, using default instead",
+ ]
+ self.check_l3fwd_message(out, mesg_list)
+ packets = {
+ "ipv4": 'Ether(dst="%s", src="%s")/IP(src="%s",dst="%s")/Raw("x"*80)',
+ "ipv6": 'Ether(dst="%s", src="%s")/IPv6(src="%s",dst="%s")/Raw("x"*80)',
+ }
+ match_dst = self.dport_info0["mac"]
+ src = self.tport_info0["mac"]
+ for type in packets.keys():
+ pkts = self.build_packet(packets[type], type, 10, match_dst, src)
+ inst = self.tester.tcpdump_sniff_packets(self.tport_intf0)
+ self.pkt.pktgen.pkts = []
+ self.pkt.update_pkt(pkts)
+ self.pkt.send_pkt(self.tester, self.tport_intf0)
+ self.tester.load_tcpdump_sniff_packets(inst)
+ self.check_package_received(len(pkts), type)
+
+ def test_1_port_4_queues_non_default(self):
+ """
+ 1 port 4 queue with non-default setting
+ """
+ # if port number > 1, skip this case
+ self.skip_case(len(self.dut_ports) <= 1, "Only support 1 port")
+ eal_params = self.dut.create_eal_parameters(
+ cores=[1, 2], ports=self.dut_ports[0:2]
+ )
+ params = (
+ '-p 0x1 --config="(0,0,1),(0,1,1),(0,2,2),(0,3,2)" -P '
+ '--rule_ipv4="./examples/l3fwd/em_default_v4.cfg" --rule_ipv6="./examples/l3fwd/em_default_v6.cfg"'
+ " --lookup=em --rx-queue-size=2048 --tx-queue-size=2048 --parse-ptype"
+ )
+ out = self.launch_l3fwd(eal_params, params)
+ mesg_list = "EM: Adding route 198.18.0.0, 198.18.0.1, 9, 9, 17 (0) [%s]" % (
+ self.dport_info0["pci"]
+ )
+ self.check_l3fwd_message(out, mesg_list)
+ packets = {
+ "ipv4": 'Ether(dst="%s", src="%s")/IP(src="%s",dst="%s")/Raw("x"*80)',
+ "ipv6": 'Ether(dst="%s", src="%s")/IPv6(src="%s",dst="%s")/Raw("x"*80)',
+ }
+ unmatch_dst = "0123456"
+ src = self.tport_info0["mac"]
+ for type in packets.keys():
+ pkts = self.build_packet(packets[type], type, 20, unmatch_dst, src)
+ inst = self.tester.tcpdump_sniff_packets(self.tport_intf0)
+ self.pkt.pktgen.pkts = []
+ self.pkt.update_pkt(pkts)
+ self.pkt.send_pkt(self.tester, self.tport_intf0)
+ self.tester.load_tcpdump_sniff_packets(inst)
+ self.check_package_received(len(pkts), type)
+
+ def test_2_ports_4_queues_non_default(self):
+ """
+ 2 ports 4 queues with non-default setting
+ """
+ # if port number < 2, skip this case
+ self.skip_case(len(self.dut_ports) >= 2, "At least 2 ports are required")
+ eal_params = self.dut.create_eal_parameters(
+ cores=[1, 2], ports=self.dut_ports[0:2]
+ )
+ params = (
+ '-p 0x3 --config="(0,0,1),(0,1,1),(0,2,2),(0,3,2),(1,0,1),(1,1,1),(1,2,2),(1,3,2)" -P '
+ '--rule_ipv4="./examples/l3fwd/em_default_v4.cfg" --rule_ipv6="./examples/l3fwd/em_default_v6.cfg" '
+ "--lookup=em --rx-queue-size=2048 --tx-queue-size=2048 --parse-ptype"
+ )
+ out = self.launch_l3fwd(eal_params, params)
+ mesg_list = [
+ "EM: Adding route 198.18.0.0, 198.18.0.1, 9, 9, 17 (0) [%s]"
+ % (self.dport_info0["pci"]),
+ "EM: Adding route 198.18.1.0, 198.18.1.1, 9, 9, 17 (1) [%s]"
+ % (self.dport_info1["pci"]),
+ ]
+ self.check_l3fwd_message(out, mesg_list)
+ packets = {
+ "ipv4": 'Ether(dst="%s", src="%s")/IP(src="%s",dst="%s")/Raw("x"*80)',
+ "ipv6": 'Ether(dst="%s", src="%s")/IPv6(src="%s",dst="%s")/Raw("x"*80)',
+ }
+ unmatch_dst = "0123456"
+ src0 = self.tport_info0["mac"]
+ src1 = self.tport_info1["mac"]
+ for type in packets.keys():
+ # port 0
+ pkts0 = self.build_packet(packets[type], type, 20, unmatch_dst, src0)
+ inst0 = self.tester.tcpdump_sniff_packets(self.tport_intf0)
+ self.pkt.pktgen.pkts = []
+ self.pkt.update_pkt(pkts0)
+ self.pkt.send_pkt(self.tester, self.tport_intf0)
+ self.tester.load_tcpdump_sniff_packets(inst0)
+ self.check_package_received(len(pkts0), type)
+
+ # port 1
+ pkts1 = self.build_packet(packets[type], type, 20, unmatch_dst, src1)
+ inst1 = self.tester.tcpdump_sniff_packets(self.tport_intf1)
+ self.pkt.update_pkt(pkts1)
+ self.pkt.send_pkt(self.tester, self.tport_intf1)
+ self.tester.load_tcpdump_sniff_packets(inst1)
+ self.check_package_received(len(pkts1), type)
+
+ def tear_down(self):
+ """
+ run after each test case.
+ """
+ # close l3fwd
+ self.dut.send_expect("^C", "# ")
+ self.dut.kill_all()
+
+ def tear_down_all(self):
+ """
+ run after each test suite.
+ """
+ pass
--
2.17.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [dts] [PATCH V1] tests/l3fwd_func: add a new test suite
2022-04-22 9:58 [dts] [PATCH V1] tests/l3fwd_func: add a new test suite Jiale Song
2022-04-22 2:07 ` Huang, ZhiminX
@ 2022-05-05 8:06 ` lijuan.tu
1 sibling, 0 replies; 3+ messages in thread
From: lijuan.tu @ 2022-05-05 8:06 UTC (permalink / raw)
To: dts, Jiale Song; +Cc: Jiale Song
On Fri, 22 Apr 2022 09:58:34 +0000, Jiale Song <songx.jiale@intel.com> wrote:
> test suite for 22.03 new feature.
> add new tests/TestSuite_l3fwd_func.py.
>
> Signed-off-by: Jiale Song <songx.jiale@intel.com>
Reviewed-by: Lijuan Tu <lijuan.tu@intel.com>
Applied, thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-05-05 8:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-22 9:58 [dts] [PATCH V1] tests/l3fwd_func: add a new test suite Jiale Song
2022-04-22 2:07 ` Huang, ZhiminX
2022-05-05 8:06 ` lijuan.tu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).