https://bugs.dpdk.org/show_bug.cgi?id=1682 Bug ID: 1682 Summary: [dpdk-25.03] vhost_virtio_fuzzing/tso_forward_pkt: testpmd cannot exit normally when test fuzz Product: DPDK Version: 25.03 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: vhost/virtio Assignee: dev@dpdk.org Reporter: songx.jiale@intel.com Target Milestone: --- Created attachment 305 --> https://bugs.dpdk.org/attachment.cgi?id=305&action=edit dpdk fuzz test file Environment =========== DPDK version: 5f37ee9c859f3ce08ca4364f1d8c0e70ec33ac83 version: 25.03.0-rc2 OS: Red Hat Enterprise Linux 9.4/5.14.0-427.13.1.el9_4.x86_64 Compiler: clang version 17.0.6 Hardware platform: Intel(R) Xeon(R) Gold 6139 CPU @ 2.30GHz NIC hardware: N/A NIC firmware: N/A Test Setup Steps to reproduce ================== 1. create packet file(If the environment already has these packets, can skip this step) mkdir -p /tmp/fuzz/vhost_pcap python3 pkt.py 2. Compile dpdk and fuzz tar zxf fuzz.tar.gz cp -r fuzz /root/dpdk/app/ sed -i "s/'test-sad',/'test-sad',\n 'fuzz',/g" app/meson.build rm -rf x86_64-native-linuxapp-clang CC=clang meson --werror -Denable_kmods=True -Dbuildtype=debug -Db_lundef=false -Db_sanitize=address x86_64-native-linuxapp-clang ninja -C x86_64-native-linuxapp-clang 3. create vhost rm -rf /tmp/sock0 x86_64-native-linuxapp-clang/app/dpdk-fuzz /tmp/fuzz/vhost_pcap/ -- -ignore_remaining_args=1 -l 1 -n 4 --file-prefix=vhost --vdev 'net_vhost0,iface=/tmp/sock0,queues=4' -- --rxq=4 --txq=4 --txd=1024 --rxd=1024 RTE>>vhost_autotest 4. start testpmd with virtio device x86_64-native-linuxapp-clang/app/dpdk-testpmd -l 1,2 -n 4 --file-prefix=virtio_26049_20250311133724 --no-pci --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=/tmp/sock0,queues=4 -- -i --rxq=4 --txq=4 --txd=1024 --rxd=1024 5. set csum fwd and start fwd set fwd csum start show port stats all note: Loop query the port status. when the bps of the port receiving and transmitting packets is found to be 0, exit testpmd. 6. exit testpmd quit Results: ======== Unable to exit testpmd, will get stuck. Expected Result: ================ Testpmd receives and sends packets normally and exits normally. bad commit: =========== commit 76730c7b9b5a35d1a74d45a08153a03bdb1b26f8 Author: Jie Hai Date: Fri Feb 14 09:56:38 2025 +0800 app/testpmd: use packet type parsing API 1. Use rte_net_get_ptype() to parse packets instead. 2. Support TSO for packets with IPv6 extension header. Signed-off-by: Jie Hai lib/vhost/fd_man.c | 439 +++++++++++++++++------------------------------------ lib/vhost/fd_man.h | 5 +- 2 files changed, 144 insertions, 300 deletions -- You are receiving this mail because: You are the assignee for the bug.