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 9FD3C41CB9; Fri, 17 Feb 2023 04:12:32 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4387440EE1; Fri, 17 Feb 2023 04:12:32 +0100 (CET) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id B1C1B40A8B for ; Fri, 17 Feb 2023 04:12:30 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id 91D9941CBA; Fri, 17 Feb 2023 04:12:30 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: =?UTF-8?B?W0J1ZyAxMTYxXSBbZHBkay0yMy4wM112aXJ0aW9fdXNlcl9hc19l?= =?UTF-8?B?eGNlcHRpb25hbF9wYXRoL3Zob3N0X2V4Y2VwdGlvbl9wYXRoX3dpdGhfdmly?= =?UTF-8?B?dGlvX3VzZXI6IGxhdW5jaCB0ZXN0cG1kIGFzIHZpcnRpby11c2VyIGZhaWxl?= =?UTF-8?B?ZA==?= Date: Fri, 17 Feb 2023 03:12:30 +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: 22.03 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: multipart/alternative; boundary=16766035500.168CaD637.3416349 Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 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 --16766035500.168CaD637.3416349 Date: Fri, 17 Feb 2023 04:12:30 +0100 MIME-Version: 1.0 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 https://bugs.dpdk.org/show_bug.cgi?id=3D1161 Bug ID: 1161 Summary: [dpdk-23.03]virtio_user_as_exceptional_path/vhost_exce ption_path_with_virtio_user: launch testpmd as virtio-user failed Product: DPDK Version: 22.03 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: vhost/virtio Assignee: dev@dpdk.org Reporter: weix.ling@intel.com Target Milestone: --- [Environment] DPDK version: Use make showversion or for a non-released version: git remot= e -v && git show-ref --heads DPDK-23.03.0-rc0 Other software versions: N/A OS: Ubuntu 22.04.1 LTS/Linux 5.15.45-051545-generic Compiler: gcc version 11.3.0 (Ubuntu 11.3.0-1ubuntu1~22.04) Hardware platform: Intel(R) Xeon(R) Platinum 8380 CPU @ 2.30GHz NIC hardware: Intel Ethernet Controller XL710 for 40GbE QSFP+ 1583 Driver/NIC firmware: i40e-2.22.8/firmware-version: 9.10 0x8000d01e 1.3295.0 [Test Setup] Steps to reproduce List the steps to reproduce the issue. 1. Build DPDK: rm -fr x86_64-native-linuxapp-gcc CC=3Dgcc meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dexamples=3Da= ll --default-library=3Dstatic x86_64-native-linuxapp-gcc ninja -C x86_64-native-linuxapp-gcc 2. Bind 1 NIC port to vfio-pci: dpdk-devbind.py --bind=3Dvfio-pci 0000:31:00.0 3. Start testpmd as virito-user: x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 5-6 -n 8 -a 0000:31:00.0=20 --file-prefix=3Ddpdk_1925052_20230217094416=20=20=20=20 --vdev=3Dvirtio_user0,mac=3D52:54:00:00:00:01,path=3D/dev/vhost-net,queue_s= ize=3D1024 -- -i --rxd=3D1024 --txd=3D1024 [Show the output from the previous commands.] # Start testpmd as virtio-user failed: root@dut245:~/dpdk# x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 5-6 -n = 8 -a 0000:31:00.0 --file-prefix=3Ddpdk_1925052_20230217094416=20=20=20=20 --vdev=3Dvirtio_user0,mac=3D52:54:00:00:00:01,path=3D/dev/vhost-net,queue_s= ize=3D1024 -- -i --rxd=3D1024 --txd=3D1024 EAL: Detected CPU lcores: 128 EAL: Detected NUMA nodes: 2 EAL: Detected static linkage of DPDK EAL: Multi-process socket /var/run/dpdk/dpdk_1925052_20230217094416/mp_sock= et EAL: Selected IOVA mode 'VA' EAL: 4096 hugepages of size 2097152 reserved, but no mounted hugetlbfs found for that size 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_i40e (8086:1583) device: 0000:31:00.0 (socket 0) i40e_GLQF_reg_init(): i40e device 0000:31:00.0 changed global register [0x002689a0]. original: 0x00000021, new: 0x00000029 vhost_kernel_ioctl(): Vhost-kernel ioctl 2148052736 failed (Bad file descriptor) vhost_kernel_get_features(): Failed to get features virtio_user_dev_init(): (/dev/vhost-net) Failed to get device features virtio_user_pmd_probe(): virtio_user_dev_init fails vdev_probe(): failed to initialize virtio_user0 device EAL: Bus (vdev) probe failed. Interactive-mode selected testpmd: create a new mbuf pool : n=3D155456, size=3D2176, socke= t=3D0 testpmd: preferred mempool ops selected: ring_mp_mcWarning! port-topology=3Dpaired and odd forward ports number, the last port will pai= r with itself.Configuring Port 0 (socket 0) Port 0: 00:00:00:00:01:00 Checking link statuses... Done testpmd> Port 0: link state change eventtestpmd> show port summary all Number of available ports: 1 Port MAC Address Name Driver Status Link 0 00:00:00:00:01:00 0000:31:00.0 net_i40e up 40 Gbps testpmd> [Expected Result] Explain what is the expected result in text or as an example output: # Start testpmd as virtio-user sucessed: root@dut245:~/dpdk# x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 5-6 -n = 8 -a 0000:31:00.0 --file-prefix=3Ddpdk_1925052_20230217094416=20=20=20=20 --vdev=3Dvirtio_user0,mac=3D52:54:00:00:00:01,path=3D/dev/vhost-net,queue_s= ize=3D1024 -- -i --rxd=3D1024 --txd=3D1024 EAL: Detected CPU lcores: 128 EAL: Detected NUMA nodes: 2 EAL: Detected static linkage of DPDK EAL: Multi-process socket /var/run/dpdk/dpdk_1925052_20230217094416/mp_sock= et EAL: Selected IOVA mode 'VA' EAL: 4096 hugepages of size 2097152 reserved, but no mounted hugetlbfs found for that size 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_i40e (8086:1583) device: 0000:31:00.0 (socket 0) Interactive-mode selected Warning: NUMA should be configured manually by using --port-numa-config and --ring-numa-config parameters along with --numa. testpmd: create a new mbuf pool : n=3D155456, size=3D2176, socke= t=3D0 testpmd: preferred mempool ops selected: ring_mp_mc Configuring Port 0 (socket 0) i40e_set_mac_max_frame(): Set max frame size at port level not applicable on link down Port 0: 00:00:00:00:01:00 Configuring Port 1 (socket 0) Port 1: 52:54:00:00:00:01 Checking link statuses... Done Error during enabling promiscuous mode for port 1: Operation not supported - ignore testpmd> Port 0: link state change eventtestpmd> show port summary all Number of available ports: 2 Port MAC Address Name Driver Status Link 0 00:00:00:00:01:00 0000:31:00.0 net_i40e up 40 Gbps 1 52:54:00:00:00:01 virtio_user0 net_virtio_user up Unknown testpmd>=20 [Regression] Is this issue a regression: (Y/N) Y Version the regression was introduced: Specify git id if known. 7be724856315a0dab9645c20a617fba276607294 is the first bad commit commit 7be724856315a0dab9645c20a617fba276607294 Author: Maxime Coquelin Date: Thu Feb 9 10:17:04 2023 +0100 net/virtio-user: get max number of queue pairs from device When supported by the backend (only vDPA for now), this patch gets the maximum number of queue pairs supported by the device by querying it in its config space. This is required for adding backend control queue support, as is index equals the maximum number of queues supported by the device as described by the Virtio specification. Signed-off-by: Maxime Coquelin Reviewed-by: Chenbo Xia Acked-by: Eugenio P=C3=A9rez drivers/net/virtio/virtio_user/virtio_user_dev.c | 93 ++++++++++++++++++---= --- drivers/net/virtio/virtio_user_ethdev.c | 7 =E2=80=93 2 files changed, 71 insertions, 29 deletions --=20 You are receiving this mail because: You are the assignee for the bug.= --16766035500.168CaD637.3416349 Date: Fri, 17 Feb 2023 04:12:30 +0100 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All
Bug ID 1161
Summary [dpdk-23.03]virtio_user_as_exceptional_path/vhost_exception_p= ath_with_virtio_user: launch testpmd as virtio-user failed
Product DPDK
Version 22.03
Hardware x86
OS Linux
Status UNCONFIRMED
Severity normal
Priority Normal
Component vhost/virtio
Assignee dev@dpdk.org
Reporter weix.ling@intel.com
Target Milestone ---

[Environment]

DPDK version: Use make showversion or for a non-released version: git remot=
e -v
&& git show-ref --heads
DPDK-23.03.0-rc0
Other software versions: N/A
OS: Ubuntu 22.04.1 LTS/Linux 5.15.45-051545-generic
Compiler: gcc version 11.3.0 (Ubuntu 11.3.0-1ubuntu1~22.04)
Hardware platform: Intel(R) Xeon(R) Platinum 8380 CPU @ 2.30GHz
NIC hardware: Intel Ethernet Controller XL710 for 40GbE QSFP+ 1583
Driver/NIC firmware: i40e-2.22.8/firmware-version: 9.10 0x8000d01e 1.3295.0

[Test Setup]

Steps to reproduce
List the steps to reproduce the issue.

1. Build DPDK:

rm -fr x86_64-native-linuxapp-gcc
CC=3Dgcc meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dexamples=3Da=
ll
--default-library=3Dstatic x86_64-native-linuxapp-gcc
ninja -C x86_64-native-linuxapp-gcc

2. Bind 1 NIC port to vfio-pci:

dpdk-devbind.py --bind=3Dvfio-pci 0000:31:00.0

3. Start testpmd as virito-user:

x86_64-native-linuxapp-gcc/app/dpdk-testpmd  -l 5-6 -n 8 -a 0000:31:00.0=20
--file-prefix=3Ddpdk_1925052_20230217094416=20=20=20=20
--vdev=3Dvirtio_user0,mac=3D52:54:00:00:00:01,path=3D/dev/vhost-net,queue_s=
ize=3D1024
-- -i --rxd=3D1024 --txd=3D1024

[Show the output from the previous commands.]

# Start testpmd as virtio-user failed:

root@dut245:~/dpdk# x86_64-native-linuxapp-gcc/app/dpdk-testpmd  -l 5-6=
 -n 8 -a
0000:31:00.0  --file-prefix=3Ddpdk_1925052_20230217094416=20=20=20=20
--vdev=3Dvirtio_user0,mac=3D52:54:00:00:00:01,path=3D/dev/vhost-net,queue_s=
ize=3D1024
-- -i --rxd=3D1024 --txd=3D1024
EAL: Detected CPU lcores: 128
EAL: Detected NUMA nodes: 2
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/dpdk_1925052_20230217094416/mp_sock=
et
EAL: Selected IOVA mode 'VA'
EAL: 4096 hugepages of size 2097152 reserved, but no mounted hugetlbfs found
for that size
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_i40e (8086:1583) device: 0000:31:00.0 (socket 0)
i40e_GLQF_reg_init(): i40e device 0000:31:00.0 changed global register
[0x002689a0]. original: 0x00000021, new: 0x00000029
vhost_kernel_ioctl(): Vhost-kernel ioctl 2148052736 failed (Bad file
descriptor)
vhost_kernel_get_features(): Failed to get features
virtio_user_dev_init(): (/dev/vhost-net) Failed to get device features
virtio_user_pmd_probe(): virtio_user_dev_init fails
vdev_probe(): failed to initialize virtio_user0 device
EAL: Bus (vdev) probe failed.
Interactive-mode selected
testpmd: create a new mbuf pool <mb_pool_0>: n=3D155456, size=3D2176,=
 socket=3D0
testpmd: preferred mempool ops selected: ring_mp_mcWarning!
port-topology=3Dpaired and odd forward ports number, the last port will pai=
r with
itself.Configuring Port 0 (socket 0)
Port 0: 00:00:00:00:01:00
Checking link statuses...
Done
testpmd>
Port 0: link state change eventtestpmd> show port summary all
Number of available ports: 1
Port MAC Address       Name         Driver         Status   Link
0    00:00:00:00:01:00 0000:31:00.0 net_i40e       up       40 Gbps
testpmd>

[Expected Result]

Explain what is the expected result in text or as an example output:

# Start testpmd as virtio-user sucessed:

root@dut245:~/dpdk# x86_64-native-linuxapp-gcc/app/dpdk-testpmd  -l 5-6=
 -n 8 -a
0000:31:00.0  --file-prefix=3Ddpdk_1925052_20230217094416=20=20=20=20
--vdev=3Dvirtio_user0,mac=3D52:54:00:00:00:01,path=3D/dev/vhost-net,queue_s=
ize=3D1024
-- -i --rxd=3D1024 --txd=3D1024
EAL: Detected CPU lcores: 128
EAL: Detected NUMA nodes: 2
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/dpdk_1925052_20230217094416/mp_sock=
et
EAL: Selected IOVA mode 'VA'
EAL: 4096 hugepages of size 2097152 reserved, but no mounted hugetlbfs found
for that size
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_i40e (8086:1583) device: 0000:31:00.0 (socket 0)
Interactive-mode selected
Warning: NUMA should be configured manually by using --port-numa-config and
--ring-numa-config parameters along with --numa.
testpmd: create a new mbuf pool <mb_pool_0>: n=3D155456, size=3D2176,=
 socket=3D0
testpmd: preferred mempool ops selected: ring_mp_mc
Configuring Port 0 (socket 0)
i40e_set_mac_max_frame(): Set max frame size at port level not applicable on
link down
Port 0: 00:00:00:00:01:00
Configuring Port 1 (socket 0)
Port 1: 52:54:00:00:00:01
Checking link statuses...
Done
Error during enabling promiscuous mode for port 1: Operation not supported -
ignore
testpmd>
Port 0: link state change eventtestpmd> show port summary all
Number of available ports: 2
Port MAC Address       Name         Driver         Status   Link
0    00:00:00:00:01:00 0000:31:00.0 net_i40e       up       40 Gbps
1    52:54:00:00:00:01 virtio_user0 net_virtio_user up       Unknown
testpmd>=20

[Regression]
Is this issue a regression: (Y/N) Y

Version the regression was introduced: Specify git id if known.

7be724856315a0dab9645c20a617fba276607294 is the first bad commit
commit 7be724856315a0dab9645c20a617fba276607294
Author: Maxime Coquelin <maxime.coquelin@redhat.com>
Date:   Thu Feb 9 10:17:04 2023 +0100



    net/virtio-user: get max number of queue pairs from device



    When supported by the backend (only vDPA for now), this
    patch gets the maximum number of queue pairs supported by
    the device by querying it in its config space.



    This is required for adding backend control queue support,
    as is index equals the maximum number of queues supported
    by the device as described by the Virtio specification.



    Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
    Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
    Acked-by: Eugenio P=C3=A9rez <eperezma@redhat.com>



drivers/net/virtio/virtio_user/virtio_user_dev.c | 93 ++++++++++++++++++---=
---
drivers/net/virtio/virtio_user_ethdev.c          |  7 =E2=80=93
2 files changed, 71 insertions, 29 deletions
          


You are receiving this mail because:
  • You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
= --16766035500.168CaD637.3416349--