From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id AE682A0555; Wed, 19 Feb 2020 03:53:31 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1138B1C07C; Wed, 19 Feb 2020 03:53:31 +0100 (CET) Received: from inbox.dpdk.org (xvm-172-178.dc0.ghst.net [95.142.172.178]) by dpdk.org (Postfix) with ESMTP id B75271C020 for ; Wed, 19 Feb 2020 03:53:29 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id 7D222A0556; Wed, 19 Feb 2020 03:53:29 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Wed, 19 Feb 2020 02:53:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: testpmd X-Bugzilla-Version: 19.05 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hailinx.xu@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 400] start testpmd with vmxnet3 can't receive and forward packets X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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=3D400 Bug ID: 400 Summary: start testpmd with vmxnet3 can't receive and forward packets Product: DPDK Version: 19.05 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: testpmd Assignee: dev@dpdk.org Reporter: hailinx.xu@intel.com Target Milestone: --- 1. install vmware exsi 6.7.0 2. install centoe 7.6 in vmware 3. reboot vmware after add new switch for vmxnet3 4. start centos 7.6 after Assign switch to centos 7.6(After booting, you can see the assigned network card) [root@localhost dpdk]# ./usertools/dpdk-devbind.py -s Network devices using kernel driver =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 0000:03:00.0 'VMXNET3 Ethernet Controller 07b0' if=3Dens160 drv=3Dvmxnet3 unused=3Digb_uio *Active* 0000:13:00.0 'VMXNET3 Ethernet Controller 07b0' if=3Dens224 drv=3Dvmxnet3 unused=3Digb_uio 5. the NIC bind igb_uio=20 [root@localhost dpdk]# ./usertools/dpdk-devbind.py -b igb_uio 0000:13:00.0 6. start testpmd [root@localhost dpdk]# ./x86_64-native-linuxapp-gcc/app/testpmd -c 6 -n 4 -= - -i EAL: Detected 12 lcore(s) EAL: Detected 1 NUMA nodes EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Selected IOVA mode 'PA' EAL: 1024 hugepages of size 2097152 reserved, but no mounted hugetlbfs found for that size EAL: Probing VFIO support... EAL: PCI device 0000:03:00.0 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 15ad:7b0 net_vmxnet3 EAL: PCI device 0000:0b:00.0 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:10ed net_ixgbe_vf EAL: PCI device 0000:13:00.0 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 15ad:7b0 net_vmxnet3 Interactive-mode selected testpmd: create a new mbuf pool : n=3D155456, size=3D21= 76, socket=3D0 testpmd: preferred mempool ops selected: ring_mp_mc Warning! port-topology=3Dpaired and odd forward ports number, the last port= will pair with itself. Configuring Port 0 (socket 0) vmxnet3_v4_rss_configure(): Set RSS fields (v4) failed: 1 vmxnet3_dev_start(): Failed to configure v4 RSS Port 0: 00:0C:29:D7:2F:BF Checking link statuses... Done 7. Set IO/MAC forwarding mode and start testpmd> set fwd io Set io packet forwarding mode testpmd> start io packet forwarding - ports=3D1 - cores=3D1 - streams=3D1 - NUMA support e= nabled, MP allocation mode: native Logical Core 2 (socket 0) forwards packets on 1 streams: RX P=3D0/Q=3D0 (socket 0) -> TX P=3D0/Q=3D0 (socket 0) peer=3D02:00:00:00:0= 0:00 io packet forwarding packets/burst=3D32 nb forwarding cores=3D1 - nb forwarding ports=3D1 port 0: RX queue number: 1 Tx queue number: 1 Rx offloads=3D0x0 Tx offloads=3D0x0 RX queue: 0 RX desc=3D0 - RX free threshold=3D0 RX threshold registers: pthresh=3D0 hthresh=3D0 wthresh=3D0 RX Offloads=3D0x0 TX queue: 0 TX desc=3D0 - TX free threshold=3D0 TX threshold registers: pthresh=3D0 hthresh=3D0 wthresh=3D0 TX offloads=3D0x0 - TX RS bit threshold=3D0 testpmd> 8. send packet from tester port 0 to dut port 0 use scapy >>> >>> sendp([Ether(src=3D"02:00:00:00:00:00",dst=3D"00:0C:29:D7:2F:1A")/IP()/= TCP()],iface=3D"p4p1") . Sent 1 packets. 9. verify dut port 0 received and forwarding packets testpmd> show port stats 0 ######################## NIC statistics for port 0 ######################## RX-packets: 0 RX-missed: 1 RX-bytes: 0 RX-errors: 0 RX-nombuf: 0 TX-packets: 0 TX-errors: 0 TX-bytes: 0 Throughput (since last show) Rx-pps: 0 Rx-bps: 0 Tx-pps: 0 Tx-bps: 0 ############################################################################ testpmd> Find the 1st bad point: 643fba77070571d69f3b6ea0b8d26bd50d5a3cff commit 643fba77070571d69f3b6ea0b8d26bd50d5a3cff Author: Eduard Serra Date: Thu Apr 18 20:59:37 2019 +0000 net/vmxnet3: add v4 boot and guest UDP RSS config This patch introduces: - VMxnet3 v4 negotiation and, - entirely guest-driven UDP RSS support. VMxnet3 v3 already has UDP RSS support, however it depends on hypervisor provisioning on the VM through ESX specific flags, which are not transparent or known to the guest later on. Vmxnet3 v4 introduces a new API transaction which allows configuring RSS entirely from the guest. This API must be invoked after device shared mem region is initialized. IPv4 ESP RSS (SPI based) is also available, but currently there are no ESP RSS definitions on rte_eth layer to handle that. Signed-off-by: Eduard Serra Acked-by: Yong Wang --=20 You are receiving this mail because: You are the assignee for the bug.=