* Re: [dts] [PATCH V1] tests/TestSuite_hotplug:fix use incorrect path to start app issue
2020-09-16 14:10 [dts] [PATCH V1] tests/TestSuite_hotplug:fix use incorrect path to start app issue lingwei
@ 2020-09-16 6:15 ` Ling, WeiX
2020-09-16 7:53 ` Tu, Lijuan
1 sibling, 0 replies; 3+ messages in thread
From: Ling, WeiX @ 2020-09-16 6:15 UTC (permalink / raw)
To: dts
[-- Attachment #1: Type: text/plain, Size: 1328 bytes --]
Tested-by: Ling, Wei <weix.ling@intel.com>
Regards,
Ling Wei
-----Original Message-----
From: Ling, WeiX <weix.ling@intel.com>
Sent: Wednesday, September 16, 2020 10:11 PM
To: dts@dpdk.org
Cc: Ling, WeiX <weix.ling@intel.com>
Subject: [dts][PATCH V1] tests/TestSuite_hotplug:fix use incorrect path to start app issue
fix use incorrect path to start app issue
Signed-off-by: lingwei <weix.ling@intel.com>
---
tests/TestSuite_hotplug.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/TestSuite_hotplug.py b/tests/TestSuite_hotplug.py index 1882c84..22df230 100644
--- a/tests/TestSuite_hotplug.py
+++ b/tests/TestSuite_hotplug.py
@@ -177,7 +177,7 @@ class TestPortHotPlug(TestCase):
self.session2 = self.dut.create_session(name="virtio_user")
eal_param = self.dut.create_eal_parameters(no_pci=True, fixed_prefix="virtio1", cores=cores[5:9])
- testpmd_cmd2 = "%s " % (self.path) + eal_param + ' -- -i'
+ testpmd_cmd2 = "%s/%s " % (self.dut.base_dir, self.path) + eal_param + ' -- -i'
self.session2.send_expect(testpmd_cmd2, "testpmd>", timeout=60)
self.session2.send_expect(
"port attach net_virtio_user1,mac=00:01:02:03:04:05,path=%s,queues=1,packed_vq=1,mrg_rxbuf=1,in_order=0" % path,
--
2.17.1
[-- Attachment #2: TestPortHotPlug.log --]
[-- Type: application/octet-stream, Size: 31268 bytes --]
16/09/2020 13:59:40 dts:
TEST SUITE : TestPortHotPlug
16/09/2020 13:59:40 dts: NIC : powerville
16/09/2020 13:59:40 dut.10.240.183.171:
16/09/2020 13:59:40 tester:
16/09/2020 13:59:40 TestPortHotPlug: Test Case test_after_attach Begin
16/09/2020 13:59:40 dut.10.240.183.171:
16/09/2020 13:59:40 tester:
16/09/2020 13:59:40 dut.10.240.183.171: ./usertools/dpdk-devbind.py -u 0000:83:00.3
16/09/2020 13:59:41 dut.10.240.183.171: WARNING: Python 2 is deprecated for use in DPDK, and will not work in future releases.
Please use Python 3 instead
16/09/2020 13:59:41 dut.10.240.183.171: x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x1e -n 4 -- -i
16/09/2020 13:59:43 dut.10.240.183.171: EAL: Detected 88 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: 1024 hugepages of size 2097152 reserved, but no mounted hugetlbfs found for that size
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: using IOMMU type 1 (Type 1)
EAL: Probe PCI driver: net_e1000_igb (8086:1521) device: 0000:83:00.0 (socket 1)
EAL: Probe PCI driver: net_e1000_igb (8086:1521) device: 0000:83:00.1 (socket 1)
EAL: Probe PCI driver: net_e1000_igb (8086:1521) device: 0000:83:00.2 (socket 1)
EAL: No legacy callbacks, legacy socket not created
Interactive-mode selected
testpmd: create a new mbuf pool <mbuf_pool_socket_0>: n=171456, size=2176, socket=0
testpmd: preferred mempool ops selected: ring_mp_mc
testpmd: create a new mbuf pool <mbuf_pool_socket_1>: n=171456, size=2176, socket=1
testpmd: preferred mempool ops selected: ring_mp_mc
Warning! port-topology=paired and odd forward ports number, the last port will pair with itself.
Configuring Port 0 (socket 1)
Port 0: B4:96:91:49:98:CC
Configuring Port 1 (socket 1)
Port 1: B4:96:91:49:98:CD
Configuring Port 2 (socket 1)
Port 2: B4:96:91:49:98:CE
Checking link statuses...
Done
16/09/2020 13:59:45 dut.10.240.183.171: port attach 0000:83:00.3
16/09/2020 13:59:45 dut.10.240.183.171:
Attaching a new port...
EAL: Probe PCI driver: net_e1000_igb (8086:1521) device: 0000:83:00.3 (socket 1)
16/09/2020 13:59:45 dut.10.240.183.171: port start 3
16/09/2020 13:59:46 dut.10.240.183.171:
16/09/2020 13:59:56 dut.10.240.183.171: show port info 3
16/09/2020 13:59:56 dut.10.240.183.171:
********************* Infos for port 3 *********************
MAC address: B4:96:91:49:98:CF
Device name: 0000:83:00.3
Driver name: net_e1000_igb
Firmware-version: 1.63, 0x80001001
Devargs:
Connect to socket: 1
memory allocation on the socket: 1
Link status: up
Link speed: 1000 Mbps
Link duplex: full-duplex
MTU: 1500
Promiscuous mode: enabled
Allmulticast mode: disabled
Maximum number of MAC addresses: 32
Maximum number of MAC addresses of hash filtering: 0
VLAN offload:
strip off, filter off, extend off, qinq strip off
Hash key size in bytes: 40
Redirection table size: 128
Supported RSS offload flow types:
ipv4
ipv4-tcp
ipv4-udp
ipv6
ipv6-tcp
ipv6-udp
user defined 15
user defined 16
user defined 17
Minimum size of RX buffer: 256
Maximum configurable length of RX packet: 16383
Maximum configurable size of LRO aggregated packet: 0
Maximum number of VMDq pools: 8
Current number of RX queues: 1
Max possible RX queues: 8
Max possible number of RXDs per queue: 4096
Min possible number of RXDs per queue: 32
RXDs number alignment: 8
Current number of TX queues: 1
Max possible TX queues: 8
Max possible number of TXDs per queue: 4096
Min possible number of TXDs per queue: 32
TXDs number alignment: 8
Max segment number per packet: 255
Max segment number per MTU/TSO: 255
16/09/2020 13:59:56 dut.10.240.183.171: start
16/09/2020 13:59:56 dut.10.240.183.171:
io packet forwarding - ports=4 - cores=1 - streams=4 - NUMA support enabled, MP allocation mode: native
Logical Core 2 (socket 0) forwards packets on 4 streams:
RX P=0/Q=0 (socket 1) -> TX P=1/Q=0 (socket 1) peer=02:00:00:00:00:01
RX P=1/Q=0 (socket 1) -> TX P=0/Q=0 (socket 1) peer=02:00:00:00:00:00
RX P=2/Q=0 (socket 1) -> TX P=3/Q=0 (socket 1) peer=02:00:00:00:00:03
RX P=3/Q=0 (socket 1) -> TX P=2/Q=0 (socket 1) peer=02:00:00:00:00:02
io packet forwarding packets/burst=32
nb forwarding cores=1 - nb forwarding ports=4
port 0: RX queue number: 1 Tx queue number: 1
Rx offloads=0x0 Tx offloads=0x0
RX queue: 0
RX desc=512 - RX free threshold=32
RX threshold registers: pthresh=8 hthresh=8 wthresh=4
RX Offloads=0x0
TX queue: 0
TX desc=512 - TX free threshold=0
TX threshold registers: pthresh=8 hthresh=1 wthresh=16
TX offloads=0x0 - TX RS bit threshold=0
port 1: RX queue number: 1 Tx queue number: 1
Rx offloads=0x0 Tx offloads=0x0
RX queue: 0
RX desc=512 - RX free threshold=32
RX threshold registers: pthresh=8 hthresh=8 wthresh=4
RX Offloads=0x0
TX queue: 0
TX desc=512 - TX free threshold=0
TX threshold registers: pthresh=8 hthresh=1 wthresh=16
TX offloads=0x0 - TX RS bit threshold=0
port 2: RX queue number: 1 Tx queue number: 1
Rx offloads=0x0 Tx offloads=0x0
RX queue: 0
RX desc=512 - RX free threshold=32
RX threshold registers: pthresh=8 hthresh=8 wthresh=4
RX Offloads=0x0
TX queue: 0
TX desc=512 - TX free threshold=0
TX threshold registers: pthresh=8 hthresh=1 wthresh=16
TX offloads=0x0 - TX RS bit threshold=0
port 3: RX queue number: 1 Tx queue number: 1
Rx offloads=0x0 Tx offloads=0x0
RX queue: 0
RX desc=512 - RX free threshold=32
RX threshold registers: pthresh=8 hthresh=8 wthresh=4
RX Offloads=0x0
TX queue: 0
TX desc=512 - TX free threshold=0
TX threshold registers: pthresh=8 hthresh=1 wthresh=16
TX offloads=0x0 - TX RS bit threshold=0
16/09/2020 13:59:56 dut.10.240.183.171: port detach 3
16/09/2020 13:59:56 dut.10.240.183.171:
16/09/2020 13:59:56 dut.10.240.183.171: stop
16/09/2020 13:59:56 dut.10.240.183.171:
Telling cores to ...
Waiting for lcores to finish...
---------------------- Forward statistics for port 0 ----------------------
RX-packets: 0 RX-dropped: 0 RX-total: 0
TX-packets: 0 TX-dropped: 0 TX-total: 0
----------------------------------------------------------------------------
---------------------- Forward statistics for port 1 ----------------------
RX-packets: 0 RX-dropped: 0 RX-total: 0
TX-packets: 0 TX-dropped: 0 TX-total: 0
----------------------------------------------------------------------------
---------------------- Forward statistics for port 2 ----------------------
RX-packets: 0 RX-dropped: 0 RX-total: 0
TX-packets: 0 TX-dropped: 0 TX-total: 0
----------------------------------------------------------------------------
---------------------- Forward statistics for port 3 ----------------------
RX-packets: 0 RX-dropped: 0 RX-total: 0
TX-packets: 0 TX-dropped: 0 TX-total: 0
----------------------------------------------------------------------------
+++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++
RX-packets: 0 RX-dropped: 0 RX-total: 0
TX-packets: 0 TX-dropped: 0 TX-total: 0
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Done.
16/09/2020 13:59:56 dut.10.240.183.171: port stop 3
16/09/2020 13:59:56 dut.10.240.183.171:
16/09/2020 14:00:06 dut.10.240.183.171: port detach 3
16/09/2020 14:00:06 dut.10.240.183.171:
Port was not closed
Removing a device...
EAL: Releasing pci mapped resource for 0000:83:00.3
EAL: Calling pci_unmap_resource for 0000:83:00.3 at 0x220030c000
EAL: Calling pci_unmap_resource for 0000:83:00.3 at 0x220040c000
16/09/2020 14:00:06 dut.10.240.183.171: port attach 0000:83:00.3
16/09/2020 14:00:06 dut.10.240.183.171:
Attaching a new port...
EAL: Probe PCI driver: net_e1000_igb (8086:1521) device: 0000:83:00.3 (socket 1)
16/09/2020 14:00:06 dut.10.240.183.171: port start 3
16/09/2020 14:00:07 dut.10.240.183.171:
16/09/2020 14:00:17 dut.10.240.183.171: show port info 3
16/09/2020 14:00:17 dut.10.240.183.171:
********************* Infos for port 3 *********************
MAC address: B4:96:91:49:98:CF
Device name: 0000:83:00.3
Driver name: net_e1000_igb
Firmware-version: 1.63, 0x80001001
Devargs:
Connect to socket: 1
memory allocation on the socket: 1
Link status: up
Link speed: 1000 Mbps
Link duplex: full-duplex
MTU: 1500
Promiscuous mode: enabled
Allmulticast mode: disabled
Maximum number of MAC addresses: 32
Maximum number of MAC addresses of hash filtering: 0
VLAN offload:
strip off, filter off, extend off, qinq strip off
Hash key size in bytes: 40
Redirection table size: 128
Supported RSS offload flow types:
ipv4
ipv4-tcp
ipv4-udp
ipv6
ipv6-tcp
ipv6-udp
user defined 15
user defined 16
user defined 17
Minimum size of RX buffer: 256
Maximum configurable length of RX packet: 16383
Maximum configurable size of LRO aggregated packet: 0
Maximum number of VMDq pools: 8
Current number of RX queues: 1
Max possible RX queues: 8
Max possible number of RXDs per queue: 4096
Min possible number of RXDs per queue: 32
RXDs number alignment: 8
Current number of TX queues: 1
Max possible TX queues: 8
Max possible number of TXDs per queue: 4096
Min possible number of TXDs per queue: 32
TXDs number alignment: 8
Max segment number per packet: 255
Max segment number per MTU/TSO: 255
16/09/2020 14:00:17 dut.10.240.183.171: start
16/09/2020 14:00:17 dut.10.240.183.171:
io packet forwarding - ports=4 - cores=1 - streams=4 - NUMA support enabled, MP allocation mode: native
Logical Core 2 (socket 0) forwards packets on 4 streams:
RX P=0/Q=0 (socket 1) -> TX P=1/Q=0 (socket 1) peer=02:00:00:00:00:01
RX P=1/Q=0 (socket 1) -> TX P=0/Q=0 (socket 1) peer=02:00:00:00:00:00
RX P=2/Q=0 (socket 1) -> TX P=3/Q=0 (socket 1) peer=02:00:00:00:00:03
RX P=3/Q=0 (socket 1) -> TX P=2/Q=0 (socket 1) peer=02:00:00:00:00:02
io packet forwarding packets/burst=32
nb forwarding cores=1 - nb forwarding ports=4
port 0: RX queue number: 1 Tx queue number: 1
Rx offloads=0x0 Tx offloads=0x0
RX queue: 0
RX desc=512 - RX free threshold=32
RX threshold registers: pthresh=8 hthresh=8 wthresh=4
RX Offloads=0x0
TX queue: 0
TX desc=512 - TX free threshold=0
TX threshold registers: pthresh=8 hthresh=1 wthresh=16
TX offloads=0x0 - TX RS bit threshold=0
port 1: RX queue number: 1 Tx queue number: 1
Rx offloads=0x0 Tx offloads=0x0
RX queue: 0
RX desc=512 - RX free threshold=32
RX threshold registers: pthresh=8 hthresh=8 wthresh=4
RX Offloads=0x0
TX queue: 0
TX desc=512 - TX free threshold=0
TX threshold registers: pthresh=8 hthresh=1 wthresh=16
TX offloads=0x0 - TX RS bit threshold=0
port 2: RX queue number: 1 Tx queue number: 1
Rx offloads=0x0 Tx offloads=0x0
RX queue: 0
RX desc=512 - RX free threshold=32
RX threshold registers: pthresh=8 hthresh=8 wthresh=4
RX Offloads=0x0
TX queue: 0
TX desc=512 - TX free threshold=0
TX threshold registers: pthresh=8 hthresh=1 wthresh=16
TX offloads=0x0 - TX RS bit threshold=0
port 3: RX queue number: 1 Tx queue number: 1
Rx offloads=0x0 Tx offloads=0x0
RX queue: 0
RX desc=512 - RX free threshold=32
RX threshold registers: pthresh=8 hthresh=8 wthresh=4
RX Offloads=0x0
TX queue: 0
TX desc=512 - TX free threshold=0
TX threshold registers: pthresh=8 hthresh=1 wthresh=16
TX offloads=0x0 - TX RS bit threshold=0
16/09/2020 14:00:17 dut.10.240.183.171: port detach 3
16/09/2020 14:00:17 dut.10.240.183.171:
16/09/2020 14:00:17 dut.10.240.183.171: clear port stats 3
16/09/2020 14:00:17 dut.10.240.183.171:
NIC statistics for port 3 cleared
16/09/2020 14:00:17 dut.10.240.183.171: show port stats 3
16/09/2020 14:00:17 dut.10.240.183.171:
######################## NIC statistics for port 3 ########################
RX-packets: 1 RX-missed: 0 RX-bytes: 60
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
############################################################################
16/09/2020 14:00:17 dut.10.240.183.171: quit
16/09/2020 14:00:19 dut.10.240.183.171:
Telling cores to stop...
Waiting for lcores to finish...
---------------------- Forward statistics for port 0 ----------------------
RX-packets: 0 RX-dropped: 0 RX-total: 0
TX-packets: 0 TX-dropped: 0 TX-total: 0
----------------------------------------------------------------------------
---------------------- Forward statistics for port 1 ----------------------
RX-packets: 0 RX-dropped: 0 RX-total: 0
TX-packets: 0 TX-dropped: 0 TX-total: 0
----------------------------------------------------------------------------
---------------------- Forward statistics for port 2 ----------------------
RX-packets: 0 RX-dropped: 0 RX-total: 0
TX-packets: 1 TX-dropped: 0 TX-total: 1
----------------------------------------------------------------------------
---------------------- Forward statistics for port 3 ----------------------
RX-packets: 1 RX-dropped: 0 RX-total: 1
TX-packets: 0 TX-dropped: 0 TX-total: 0
----------------------------------------------------------------------------
+++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++
RX-packets: 1 RX-dropped: 0 RX-total: 1
TX-packets: 1 TX-dropped: 0 TX-total: 1
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Done.
Stopping port 0...
Stopping ports...
Done
Stopping port 1...
Stopping ports...
Done
Stopping port 2...
Stopping ports...
Done
Stopping port 3...
Stopping ports...
Done
Shutting down port 0...
Closing ports...
Done
Shutting down port 1...
Closing ports...
Done
Shutting down port 2...
Closing ports...
Done
Shutting down port 3...
Closing ports...
Done
Bye...
16/09/2020 14:00:19 TestPortHotPlug: Test Case test_after_attach Result PASSED:
16/09/2020 14:00:19 dut.10.240.183.171: kill_all: called by dut and has no prefix list.
16/09/2020 14:00:20 dut.10.240.183.171: ./usertools/dpdk-devbind.py --bind=vfio-pci 0000:83:00.3
16/09/2020 14:00:21 dut.10.240.183.171: WARNING: Python 2 is deprecated for use in DPDK, and will not work in future releases.
Please use Python 3 instead
Notice: 0000:83:00.3 already bound to driver vfio-pci, skipping
16/09/2020 14:00:23 TestPortHotPlug: Test Case test_before_attach Begin
16/09/2020 14:00:23 dut.10.240.183.171:
16/09/2020 14:00:23 tester:
16/09/2020 14:00:23 dut.10.240.183.171: ./usertools/dpdk-devbind.py -u 0000:83:00.3
16/09/2020 14:00:23 dut.10.240.183.171: WARNING: Python 2 is deprecated for use in DPDK, and will not work in future releases.
Please use Python 3 instead
16/09/2020 14:00:26 dut.10.240.183.171: x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x1e -n 4 -- -i
16/09/2020 14:00:28 dut.10.240.183.171: EAL: Detected 88 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: 1024 hugepages of size 2097152 reserved, but no mounted hugetlbfs found for that size
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: using IOMMU type 1 (Type 1)
EAL: Probe PCI driver: net_e1000_igb (8086:1521) device: 0000:83:00.0 (socket 1)
EAL: Probe PCI driver: net_e1000_igb (8086:1521) device: 0000:83:00.1 (socket 1)
EAL: Probe PCI driver: net_e1000_igb (8086:1521) device: 0000:83:00.2 (socket 1)
EAL: Probe PCI driver: net_e1000_igb (8086:1521) device: 0000:83:00.3 (socket 1)
EAL: No legacy callbacks, legacy socket not created
Interactive-mode selected
testpmd: create a new mbuf pool <mbuf_pool_socket_0>: n=171456, size=2176, socket=0
testpmd: preferred mempool ops selected: ring_mp_mc
testpmd: create a new mbuf pool <mbuf_pool_socket_1>: n=171456, size=2176, socket=1
testpmd: preferred mempool ops selected: ring_mp_mc
Configuring Port 0 (socket 1)
Port 0: B4:96:91:49:98:CC
Configuring Port 1 (socket 1)
Port 1: B4:96:91:49:98:CD
Configuring Port 2 (socket 1)
Port 2: B4:96:91:49:98:CE
Configuring Port 3 (socket 1)
Port 3: B4:96:91:49:98:CF
Checking link statuses...
Done
16/09/2020 14:00:28 dut.10.240.183.171: port stop 3
16/09/2020 14:00:28 dut.10.240.183.171:
16/09/2020 14:00:39 dut.10.240.183.171: port detach 3
16/09/2020 14:00:39 dut.10.240.183.171:
Port was not closed
Removing a device...
EAL: Releasing pci mapped resource for 0000:83:00.3
EAL: Calling pci_unmap_resource for 0000:83:00.3 at 0x220030c000
EAL: Calling pci_unmap_resource for 0000:83:00.3 at 0x220040c000
16/09/2020 14:00:39 dut.10.240.183.171: port attach 0000:83:00.3
16/09/2020 14:00:39 dut.10.240.183.171:
Attaching a new port...
EAL: Probe PCI driver: net_e1000_igb (8086:1521) device: 0000:83:00.3 (socket 1)
16/09/2020 14:00:39 dut.10.240.183.171: port start 3
16/09/2020 14:00:39 dut.10.240.183.171:
16/09/2020 14:00:49 dut.10.240.183.171: show port info 3
16/09/2020 14:00:49 dut.10.240.183.171:
********************* Infos for port 3 *********************
MAC address: B4:96:91:49:98:CF
Device name: 0000:83:00.3
Driver name: net_e1000_igb
Firmware-version: 1.63, 0x80001001
Devargs:
Connect to socket: 1
memory allocation on the socket: 1
Link status: up
Link speed: 1000 Mbps
Link duplex: full-duplex
MTU: 1500
Promiscuous mode: enabled
Allmulticast mode: disabled
Maximum number of MAC addresses: 32
Maximum number of MAC addresses of hash filtering: 0
VLAN offload:
strip off, filter off, extend off, qinq strip off
Hash key size in bytes: 40
Redirection table size: 128
Supported RSS offload flow types:
ipv4
ipv4-tcp
ipv4-udp
ipv6
ipv6-tcp
ipv6-udp
user defined 15
user defined 16
user defined 17
Minimum size of RX buffer: 256
Maximum configurable length of RX packet: 16383
Maximum configurable size of LRO aggregated packet: 0
Maximum number of VMDq pools: 8
Current number of RX queues: 1
Max possible RX queues: 8
Max possible number of RXDs per queue: 4096
Min possible number of RXDs per queue: 32
RXDs number alignment: 8
Current number of TX queues: 1
Max possible TX queues: 8
Max possible number of TXDs per queue: 4096
Min possible number of TXDs per queue: 32
TXDs number alignment: 8
Max segment number per packet: 255
Max segment number per MTU/TSO: 255
16/09/2020 14:00:49 dut.10.240.183.171: start
16/09/2020 14:00:49 dut.10.240.183.171:
io packet forwarding - ports=4 - cores=1 - streams=4 - NUMA support enabled, MP allocation mode: native
Logical Core 2 (socket 0) forwards packets on 4 streams:
RX P=0/Q=0 (socket 1) -> TX P=1/Q=0 (socket 1) peer=02:00:00:00:00:01
RX P=1/Q=0 (socket 1) -> TX P=0/Q=0 (socket 1) peer=02:00:00:00:00:00
RX P=2/Q=0 (socket 1) -> TX P=3/Q=0 (socket 1) peer=02:00:00:00:00:03
RX P=3/Q=0 (socket 1) -> TX P=2/Q=0 (socket 1) peer=02:00:00:00:00:02
io packet forwarding packets/burst=32
nb forwarding cores=1 - nb forwarding ports=4
port 0: RX queue number: 1 Tx queue number: 1
Rx offloads=0x0 Tx offloads=0x0
RX queue: 0
RX desc=512 - RX free threshold=32
RX threshold registers: pthresh=8 hthresh=8 wthresh=4
RX Offloads=0x0
TX queue: 0
TX desc=512 - TX free threshold=0
TX threshold registers: pthresh=8 hthresh=1 wthresh=16
TX offloads=0x0 - TX RS bit threshold=0
port 1: RX queue number: 1 Tx queue number: 1
Rx offloads=0x0 Tx offloads=0x0
RX queue: 0
RX desc=512 - RX free threshold=32
RX threshold registers: pthresh=8 hthresh=8 wthresh=4
RX Offloads=0x0
TX queue: 0
TX desc=512 - TX free threshold=0
TX threshold registers: pthresh=8 hthresh=1 wthresh=16
TX offloads=0x0 - TX RS bit threshold=0
port 2: RX queue number: 1 Tx queue number: 1
Rx offloads=0x0 Tx offloads=0x0
RX queue: 0
RX desc=512 - RX free threshold=32
RX threshold registers: pthresh=8 hthresh=8 wthresh=4
RX Offloads=0x0
TX queue: 0
TX desc=512 - TX free threshold=0
TX threshold registers: pthresh=8 hthresh=1 wthresh=16
TX offloads=0x0 - TX RS bit threshold=0
port 3: RX queue number: 1 Tx queue number: 1
Rx offloads=0x0 Tx offloads=0x0
RX queue: 0
RX desc=512 - RX free threshold=32
RX threshold registers: pthresh=8 hthresh=8 wthresh=4
RX Offloads=0x0
TX queue: 0
TX desc=512 - TX free threshold=0
TX threshold registers: pthresh=8 hthresh=1 wthresh=16
TX offloads=0x0 - TX RS bit threshold=0
16/09/2020 14:00:49 dut.10.240.183.171: port detach 3
16/09/2020 14:00:49 dut.10.240.183.171:
16/09/2020 14:00:49 dut.10.240.183.171: clear port stats 3
16/09/2020 14:00:49 dut.10.240.183.171:
NIC statistics for port 3 cleared
16/09/2020 14:00:50 dut.10.240.183.171: show port stats 3
16/09/2020 14:00:50 dut.10.240.183.171:
######################## NIC statistics for port 3 ########################
RX-packets: 1 RX-missed: 0 RX-bytes: 60
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
############################################################################
16/09/2020 14:00:50 dut.10.240.183.171: quit
16/09/2020 14:00:52 dut.10.240.183.171:
Telling cores to stop...
Waiting for lcores to finish...
---------------------- Forward statistics for port 0 ----------------------
RX-packets: 0 RX-dropped: 0 RX-total: 0
TX-packets: 0 TX-dropped: 0 TX-total: 0
----------------------------------------------------------------------------
---------------------- Forward statistics for port 1 ----------------------
RX-packets: 0 RX-dropped: 0 RX-total: 0
TX-packets: 0 TX-dropped: 0 TX-total: 0
----------------------------------------------------------------------------
---------------------- Forward statistics for port 2 ----------------------
RX-packets: 0 RX-dropped: 0 RX-total: 0
TX-packets: 1 TX-dropped: 0 TX-total: 1
----------------------------------------------------------------------------
---------------------- Forward statistics for port 3 ----------------------
RX-packets: 1 RX-dropped: 0 RX-total: 1
TX-packets: 0 TX-dropped: 0 TX-total: 0
----------------------------------------------------------------------------
+++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++
RX-packets: 1 RX-dropped: 0 RX-total: 1
TX-packets: 1 TX-dropped: 0 TX-total: 1
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Done.
Stopping port 0...
Stopping ports...
Done
Stopping port 1...
Stopping ports...
Done
Stopping port 2...
Stopping ports...
Done
Stopping port 3...
Stopping ports...
Done
Shutting down port 0...
Closing ports...
Done
Shutting down port 1...
Closing ports...
Done
Shutting down port 2...
Closing ports...
Done
Shutting down port 3...
Closing ports...
Done
Bye...
16/09/2020 14:00:52 TestPortHotPlug: Test Case test_before_attach Result PASSED:
16/09/2020 14:00:52 dut.10.240.183.171: kill_all: called by dut and has no prefix list.
16/09/2020 14:00:53 dut.10.240.183.171: ./usertools/dpdk-devbind.py --bind=vfio-pci 0000:83:00.3
16/09/2020 14:00:53 dut.10.240.183.171: WARNING: Python 2 is deprecated for use in DPDK, and will not work in future releases.
Please use Python 3 instead
Notice: 0000:83:00.3 already bound to driver vfio-pci, skipping
16/09/2020 14:00:55 TestPortHotPlug: Test Case test_port_detach_attach_for_vhost_user_virtio_user Begin
16/09/2020 14:00:56 dut.10.240.183.171:
16/09/2020 14:00:56 tester:
16/09/2020 14:00:56 dut.10.240.183.171: ./usertools/dpdk-devbind.py -u 0000:83:00.3
16/09/2020 14:00:56 dut.10.240.183.171: WARNING: Python 2 is deprecated for use in DPDK, and will not work in future releases.
Please use Python 3 instead
16/09/2020 14:00:56 dut.10.240.183.171: rm -rf vhost-net1
16/09/2020 14:00:56 dut.10.240.183.171:
16/09/2020 14:00:56 dut.10.240.183.171: x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 2,3,4,5 -n 4 --file-prefix=vhost_18039_20200916135755 --no-pci --vdev eth_vhost0,iface=vhost-net,queues=1 -- -i
16/09/2020 14:00:57 dut.10.240.183.171: EAL: Detected 88 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/vhost_18039_20200916135755/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: 1024 hugepages of size 2097152 reserved, but no mounted hugetlbfs found for that size
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: No legacy callbacks, legacy socket not created
Interactive-mode selected
testpmd: create a new mbuf pool <mbuf_pool_socket_0>: n=171456, size=2176, socket=0
testpmd: preferred mempool ops selected: ring_mp_mc
Warning! port-topology=paired and odd forward ports number, the last port will pair with itself.
Configuring Port 0 (socket 0)
VHOST_CONFIG: vhost-user server: socket created, fd: 31
VHOST_CONFIG: bind to vhost-net
Port 0: 56:48:4F:53:54:00
Checking link statuses...
Done
16/09/2020 14:00:57 dut.10.240.183.171: port stop 0
16/09/2020 14:00:57 dut.10.240.183.171:
Stopping ports...
Checking link statuses...
Done
16/09/2020 14:00:57 dut.10.240.183.171: port detach 0
16/09/2020 14:00:57 dut.10.240.183.171:
Port was not closed
Removing a device...
16/09/2020 14:00:57 dut.10.240.183.171: Command: ls /root/dpdk/vhost-net1 failure!
16/09/2020 14:00:57 dut.10.240.183.171: ls: cannot access '/root/dpdk/vhost-net1': No such file or directory
16/09/2020 14:00:58 dut.10.240.183.171: port attach eth_vhost1,iface=vhost-net1,queues=1
16/09/2020 14:00:58 dut.10.240.183.171:
Attaching a new port...
16/09/2020 14:00:58 dut.10.240.183.171: port start 0
16/09/2020 14:00:58 dut.10.240.183.171:
Configuring Port 0 (socket 0)
VHOST_CONFIG: vhost-user server: socket created, fd: 31
VHOST_CONFIG: bind to vhost-net1
Port 0: 56:48:4F:53:54:00
Checking link statuses...
Done
16/09/2020 14:01:01 dut.10.240.183.171: start
16/09/2020 14:01:01 dut.10.240.183.171:
io packet forwarding - ports=1 - cores=1 - streams=1 - NUMA support enabled, MP allocation mode: native
Logical Core 3 (socket 0) forwards packets on 1 streams:
RX P=0/Q=0 (socket 0) -> TX P=0/Q=0 (socket 0) peer=02:00:00:00:00:00
io packet forwarding packets/burst=32
nb forwarding cores=1 - nb forwarding ports=1
port 0: RX queue number: 1 Tx queue number: 1
Rx offloads=0x0 Tx offloads=0x0
RX queue: 0
RX desc=0 - RX free threshold=0
RX threshold registers: pthresh=0 hthresh=0 wthresh=0
RX Offloads=0x0
TX queue: 0
TX desc=0 - TX free threshold=0
TX threshold registers: pthresh=0 hthresh=0 wthresh=0
TX offloads=0x0 - TX RS bit threshold=0
16/09/2020 14:01:01 TestPortHotPlug: rx packets: 472832
16/09/2020 14:01:01 TestPortHotPlug: tx packets: 473856
16/09/2020 14:01:02 dut.10.240.183.171: stop
16/09/2020 14:01:02 dut.10.240.183.171:
Telling cores to ...
Waiting for lcores to finish...
---------------------- Forward statistics for port 0 ----------------------
RX-packets: 1550752 RX-dropped: 0 RX-total: 1550752
TX-packets: 1549984 TX-dropped: 768 TX-total: 1550752
----------------------------------------------------------------------------
+++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++
RX-packets: 1550752 RX-dropped: 0 RX-total: 1550752
TX-packets: 1549984 TX-dropped: 768 TX-total: 1550752
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Done.
16/09/2020 14:01:02 dut.10.240.183.171: quit
16/09/2020 14:01:03 dut.10.240.183.171:
Stopping port 0...
Stopping ports...
Done
Shutting down port 0...
Closing ports...
Done
Bye...
16/09/2020 14:01:03 TestPortHotPlug: Test Case test_port_detach_attach_for_vhost_user_virtio_user Result PASSED:
16/09/2020 14:01:03 dut.10.240.183.171: kill_all: called by dut and prefix list has value.
16/09/2020 14:01:04 dut.10.240.183.171: ./usertools/dpdk-devbind.py --bind=vfio-pci 0000:83:00.3
16/09/2020 14:01:05 dut.10.240.183.171: WARNING: Python 2 is deprecated for use in DPDK, and will not work in future releases.
Please use Python 3 instead
16/09/2020 14:01:07 dts:
TEST SUITE ENDED: TestPortHotPlug
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dts] [PATCH V1] tests/TestSuite_hotplug:fix use incorrect path to start app issue
2020-09-16 14:10 [dts] [PATCH V1] tests/TestSuite_hotplug:fix use incorrect path to start app issue lingwei
2020-09-16 6:15 ` Ling, WeiX
@ 2020-09-16 7:53 ` Tu, Lijuan
1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2020-09-16 7:53 UTC (permalink / raw)
To: Ling, WeiX, dts; +Cc: Ling, WeiX
Applied
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of lingwei
> Sent: 2020年9月16日 22:11
> To: dts@dpdk.org
> Cc: Ling, WeiX <weix.ling@intel.com>
> Subject: [dts] [PATCH V1] tests/TestSuite_hotplug:fix use incorrect path to start
> app issue
>
> fix use incorrect path to start app issue
>
> Signed-off-by: lingwei <weix.ling@intel.com>
> ---
> tests/TestSuite_hotplug.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/TestSuite_hotplug.py b/tests/TestSuite_hotplug.py index
> 1882c84..22df230 100644
> --- a/tests/TestSuite_hotplug.py
> +++ b/tests/TestSuite_hotplug.py
> @@ -177,7 +177,7 @@ class TestPortHotPlug(TestCase):
>
> self.session2 = self.dut.create_session(name="virtio_user")
> eal_param = self.dut.create_eal_parameters(no_pci=True,
> fixed_prefix="virtio1", cores=cores[5:9])
> - testpmd_cmd2 = "%s " % (self.path) + eal_param + ' -- -i'
> + testpmd_cmd2 = "%s/%s " % (self.dut.base_dir, self.path) + eal_param + ' -
> - -i'
> self.session2.send_expect(testpmd_cmd2, "testpmd>", timeout=60)
> self.session2.send_expect(
> "port attach
> net_virtio_user1,mac=00:01:02:03:04:05,path=%s,queues=1,packed_vq=1,mrg_
> rxbuf=1,in_order=0" % path,
> --
> 2.17.1
^ permalink raw reply [flat|nested] 3+ messages in thread