From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C4F7DA0A0F; Sat, 8 May 2021 09:33:15 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5705140140; Sat, 8 May 2021 09:33:15 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 3D7964013F for ; Sat, 8 May 2021 09:33:14 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 1A248A0C3F; Sat, 8 May 2021 09:33:14 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Sat, 08 May 2021 07:33:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: vhost/virtio X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: weix.ling@intel.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 699] [dpdk-21.05] pvp_virtio_user_multi_queues_port_restart: virtio-user can't recieve packets when use packed ring and ring size is 255 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D699 Bug ID: 699 Summary: [dpdk-21.05] pvp_virtio_user_multi_queues_port_restart: virtio-user can't recieve packets when use packed ring and ring size is 255 Product: DPDK Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: vhost/virtio Assignee: dev@dpdk.org Reporter: weix.ling@intel.com Target Milestone: --- Environment DPDK version:=20 21.05-rc2:47a0c2e11712fc5286d6a197d549817ae8f8f50e Other software versions: N/A OS: Ubuntu 20.04.1 LTS/Linux 5.11.6-051106-generic Compiler: gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04) Hardware platform: Intel(R) Xeon(R) Platinum 8280M CPU @ 2.70GHz NIC hardware: Intel Corporation Ethernet Controller XL710 for 40GbE QSFP+ (= rev 01) NIC driver & firmware: i40e-5.11.6-051106-generic/8.30 0x8000a4ae 1.2926.0 Test Setup Steps to reproduce List the steps to reproduce the issue. #1.Build DPDK CC=3Dgcc meson -Denable_kmods=3DTrue -Dlibdir=3Dlib --default-library=3Dst= atic x86_64-native-linuxapp-gcc ninja -C x86_64-native-linuxapp-gcc #2.Bind NIC port to DPDK dpdk-devbind.py --force --bind=3Dvfio-pci 0000:af:00.0 #3.Start vhost-user testpmd x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 30,31,32 -n 4=20 --file-prefix=3Dvhost_73033_20210508140517 -a 0000:af:00.0 --vdev 'net_vhost0,iface=3Dvhost-net,queues=3D2,client=3D0' -- -i --nb-cores=3D2 -= -rxq=3D2 --txq=3D2 --rss-ip set fwd mac start #4.Start virtio-user testpmd with packed ring path x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 33,34,35 -n 4=20 --file-prefix=3Dvirtio --no-pci --vdev net_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost-net,queues=3D2,pack= ed_vq=3D1,mrg_rxbuf=3D0,in_order=3D0,queue_size=3D255 -- -i --tx-offloads=3D0x0 --enable-hw-vlan-strip --rss-ip --nb-cores=3D2 --= rxq=3D2 --txq=3D2 --txd=3D255 --rxd=3D255 set fwd mac start #5.Use TREX to send pakcets to DUT port cd /opt/trex/v2.84/;./t-rex-64 -i --cfg /etc/trex_cfg_fvl40g.yaml -c 16 cd /opt/trex/v2.84/;./trex-console start -f stl/bench.py -t size=3D64,vm=3Dcached --port 0 -m 100%=20 #6.Execute command to get throught from vhost-user testpmd testpmd> show port stats all Show the output from the previous commands. testpmd> show port stats all=20 ######################## NIC statistics for port 0 ######################= ## RX-packets: 1399768133 RX-missed: 273026869 RX-bytes: 89948812572 RX-errors: 0 RX-nombuf: 0 TX-packets: 1175 TX-errors: 0 TX-bytes: 70500 Throughput (since last show) Rx-pps: 39303277 Rx-bps: 18865575800 Tx-pps: 0 Tx-bps: 0 #########################################################################= ###=20=20 ######################## NIC statistics for port 1 #####################= ### RX-packets: 1175 RX-missed: 0 RX-bytes: 70500 RX-errors: 0 RX-nombuf: 0 TX-packets: 2292 TX-errors: 0 TX-bytes: 137520 Throughput (since last show) Rx-pps: 0 Rx-bps: 0 Tx-pps: 0 Tx-bps: 0 #########################################################################= ### Expected Result Explain what is the expected result in text or as an example output: testpmd> show port stats all=20=20 ######################## NIC statistics for port 0 ######################## RX-packets: 26942470 RX-missed: 98913124 RX-bytes: 5625465796 RX-errors: 0 RX-nombuf: 0 TX-packets: 26941001 TX-errors: 0 TX-bytes: 1616459356=20 Throughput (since last show) Rx-pps: 9136506 Rx-bps: 15263702536 Tx-pps: 9136475 Tx-bps: 4385501336 #########################################################################= ### ######################## NIC statistics for port 1 ######################= ## RX-packets: 26941662 RX-missed: 0 RX-bytes: 1616499720 RX-errors: 0 RX-nombuf: 0 TX-packets: 26941792 TX-errors: 0 TX-bytes: 1616507520=20 Throughput (since last show) Rx-pps: 9136255 Rx-bps: 4385402816 Tx-pps: 9136295 Tx-bps: 4385421736 #########################################################################= ### Regression Is this issue a regression: (Y/N) Y Version the regression was introduced: Specify git id if known. commit d18db8049c7c52fe91058c125c7a59c8c2f9cb42 (HEAD) Author: Balazs Nemeth Date: Wed Apr 28 10:17:31 2021 +0800 vhost: read last used index once Instead of calculating the address of a packed descriptor based on the vq->desc_packed and vq->last_used_idx every time, store that base address in desc_base. On arm, this saves 176 bytes in code size of function in which vhost_flush_enqueue_batch_packed gets inlined. Signed-off-by: Balazs Nemeth Reviewed-by: Maxime Coquelin --=20 You are receiving this mail because: You are the assignee for the bug.=