test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/TestSuite_dcf_lifecycle:get app name to kill testpmd
@ 2020-09-22  9:40 Xie wei
  2020-09-22  9:45 ` Xie, WeiX
  2020-10-12  8:02 ` Tu, Lijuan
  0 siblings, 2 replies; 4+ messages in thread
From: Xie wei @ 2020-09-22  9:40 UTC (permalink / raw)
  To: dts; +Cc: Xie wei

support meson build method, get app name to kill testpmd process.

Signed-off-by: Xie wei <weix.xie@intel.com>
---
 tests/TestSuite_dcf_lifecycle.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/TestSuite_dcf_lifecycle.py b/tests/TestSuite_dcf_lifecycle.py
index 76c29f89..0923dab0 100644
--- a/tests/TestSuite_dcf_lifecycle.py
+++ b/tests/TestSuite_dcf_lifecycle.py
@@ -341,7 +341,7 @@ class TestDcfLifeCycle(TestCase):
         '''
         cmd = "ps aux | grep testpmd"
         self.d_a_con(cmd)
-        cmd = r"kill -9 `ps -ef | grep testpmd | grep -v grep | grep -v testpmd_vf | awk '{print $2}'`"
+        cmd = r"kill -9 `ps -ef | grep %s | grep -v grep | grep -v %s | awk '{print $2}'`" % (self.vf_dcf_testpmd.split('/')[-1], self.vf_testpmd2.split('/')[-1])
         self.d_a_con(cmd)
         self.is_vf_dcf_pmd_on = False
         time.sleep(2)
-- 
2.17.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dts] [PATCH V1] tests/TestSuite_dcf_lifecycle:get app name to kill testpmd
  2020-09-22  9:40 [dts] [PATCH V1] tests/TestSuite_dcf_lifecycle:get app name to kill testpmd Xie wei
@ 2020-09-22  9:45 ` Xie, WeiX
  2020-09-29  1:07   ` Ma, LihongX
  2020-10-12  8:02 ` Tu, Lijuan
  1 sibling, 1 reply; 4+ messages in thread
From: Xie, WeiX @ 2020-09-22  9:45 UTC (permalink / raw)
  To: dts

[-- Attachment #1: Type: text/plain, Size: 311 bytes --]

Tested-by:  Xie,WeiX < weix.xie@intel.com>

Regards,
Xie Wei

> -----Original Message-----
> From: Xie, WeiX
> Sent: Tuesday, September 22, 2020 5:40 PM
> To: dts@dpdk.org
> Cc: Xie, WeiX <weix.xie@intel.com>
> Subject: [dts][PATCH V1] tests/TestSuite_dcf_lifecycle:get app name to kill
> testpmd


[-- Attachment #2: TestDcfLifeCycle.log --]
[-- Type: application/octet-stream, Size: 11941 bytes --]

23/09/2020 17:35:08                            dts: 
TEST SUITE : TestDcfLifeCycle
23/09/2020 17:35:08                            dts: NIC :        columbiaville_100g
23/09/2020 17:35:08             dut.10.240.183.133: 
23/09/2020 17:35:08                         tester: 
23/09/2020 17:35:08             dut.10.240.183.133: rmmod vfio_pci
23/09/2020 17:35:08             dut.10.240.183.133: rmmod: ERROR: Module vfio_pci is builtin.
23/09/2020 17:35:08             dut.10.240.183.133: rmmod vfio_iommu_type1
23/09/2020 17:35:08             dut.10.240.183.133: rmmod: ERROR: Module vfio_iommu_type1 is builtin.
23/09/2020 17:35:08             dut.10.240.183.133: rmmod vfio
23/09/2020 17:35:08             dut.10.240.183.133: rmmod: ERROR: Module vfio is builtin.
23/09/2020 17:35:08             dut.10.240.183.133: modprobe vfio
23/09/2020 17:35:08             dut.10.240.183.133: 
23/09/2020 17:35:08             dut.10.240.183.133: modprobe vfio-pci
23/09/2020 17:35:08             dut.10.240.183.133: 
23/09/2020 17:35:08             dut.10.240.183.133: ls /sys/module|grep vfio_pci
23/09/2020 17:35:08             dut.10.240.183.133: vfio_pci
23/09/2020 17:35:08             dut.10.240.183.133: uname -a
23/09/2020 17:35:08             dut.10.240.183.133: Linux cvl-100g-c0 5.4.0-45-generic #49-Ubuntu SMP Wed Aug 26 13:38:52 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
23/09/2020 17:35:08             dut.10.240.183.133: modinfo ice | grep version:
23/09/2020 17:35:08             dut.10.240.183.133: version:        1.1.4
srcversion:     CC4D5A9F89D0374A93BCD69
23/09/2020 17:35:08             dut.10.240.183.133: modprobe sch_mqprio
23/09/2020 17:35:08             dut.10.240.183.133: 
23/09/2020 17:35:08             dut.10.240.183.133: modprobe act_mirred
23/09/2020 17:35:08             dut.10.240.183.133: 
23/09/2020 17:35:08             dut.10.240.183.133: modprobe cls_flower
23/09/2020 17:35:09             dut.10.240.183.133: 
23/09/2020 17:35:09             dut.10.240.183.133: rm -f /root/dpdk/x86_64-native-linuxapp-gcc/app/dpdk-testpmd-vf ;cp /root/dpdk/x86_64-native-linuxapp-gcc/app/dpdk-testpmd  /root/dpdk/x86_64-native-linuxapp-gcc/app/dpdk-testpmd-vf 
23/09/2020 17:35:09             dut.10.240.183.133: 
23/09/2020 17:35:16             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:01.0/vendor
23/09/2020 17:35:16             dut.10.240.183.133: 0x8086
23/09/2020 17:35:16             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:01.0/device
23/09/2020 17:35:16             dut.10.240.183.133: 0x1889
23/09/2020 17:35:16             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:01.0/vendor
23/09/2020 17:35:16             dut.10.240.183.133: 0x8086
23/09/2020 17:35:16             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:01.0/device
23/09/2020 17:35:16             dut.10.240.183.133: 0x1889
23/09/2020 17:35:16             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:01.1/vendor
23/09/2020 17:35:16             dut.10.240.183.133: 0x8086
23/09/2020 17:35:16             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:01.1/device
23/09/2020 17:35:16             dut.10.240.183.133: 0x1889
23/09/2020 17:35:16             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:01.1/vendor
23/09/2020 17:35:16             dut.10.240.183.133: 0x8086
23/09/2020 17:35:16             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:01.1/device
23/09/2020 17:35:16             dut.10.240.183.133: 0x1889
23/09/2020 17:35:17             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:01.2/vendor
23/09/2020 17:35:17             dut.10.240.183.133: 0x8086
23/09/2020 17:35:17             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:01.2/device
23/09/2020 17:35:17             dut.10.240.183.133: 0x1889
23/09/2020 17:35:17             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:01.2/vendor
23/09/2020 17:35:17             dut.10.240.183.133: 0x8086
23/09/2020 17:35:17             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:01.2/device
23/09/2020 17:35:17             dut.10.240.183.133: 0x1889
23/09/2020 17:35:17             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:01.3/vendor
23/09/2020 17:35:17             dut.10.240.183.133: 0x8086
23/09/2020 17:35:17             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:01.3/device
23/09/2020 17:35:17             dut.10.240.183.133: 0x1889
23/09/2020 17:35:17             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:01.3/vendor
23/09/2020 17:35:17             dut.10.240.183.133: 0x8086
23/09/2020 17:35:17             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:01.3/device
23/09/2020 17:35:17             dut.10.240.183.133: 0x1889
23/09/2020 17:35:28             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:11.0/vendor
23/09/2020 17:35:28             dut.10.240.183.133: 0x8086
23/09/2020 17:35:28             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:11.0/device
23/09/2020 17:35:28             dut.10.240.183.133: 0x1889
23/09/2020 17:35:28             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:11.0/vendor
23/09/2020 17:35:28             dut.10.240.183.133: 0x8086
23/09/2020 17:35:28             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:11.0/device
23/09/2020 17:35:28             dut.10.240.183.133: 0x1889
23/09/2020 17:35:28             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:11.1/vendor
23/09/2020 17:35:28             dut.10.240.183.133: 0x8086
23/09/2020 17:35:28             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:11.1/device
23/09/2020 17:35:28             dut.10.240.183.133: 0x1889
23/09/2020 17:35:28             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:11.1/vendor
23/09/2020 17:35:28             dut.10.240.183.133: 0x8086
23/09/2020 17:35:28             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:11.1/device
23/09/2020 17:35:28             dut.10.240.183.133: 0x1889
23/09/2020 17:35:29             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:11.2/vendor
23/09/2020 17:35:29             dut.10.240.183.133: 0x8086
23/09/2020 17:35:29             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:11.2/device
23/09/2020 17:35:29             dut.10.240.183.133: 0x1889
23/09/2020 17:35:29             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:11.2/vendor
23/09/2020 17:35:29             dut.10.240.183.133: 0x8086
23/09/2020 17:35:29             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:11.2/device
23/09/2020 17:35:29             dut.10.240.183.133: 0x1889
23/09/2020 17:35:29             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:11.3/vendor
23/09/2020 17:35:29             dut.10.240.183.133: 0x8086
23/09/2020 17:35:29             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:11.3/device
23/09/2020 17:35:29             dut.10.240.183.133: 0x1889
23/09/2020 17:35:29             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:11.3/vendor
23/09/2020 17:35:29             dut.10.240.183.133: 0x8086
23/09/2020 17:35:29             dut.10.240.183.133: cat /sys/bus/pci/devices/0000\:81\:11.3/device
23/09/2020 17:35:29             dut.10.240.183.133: 0x1889
23/09/2020 17:35:35               TestDcfLifeCycle: {0: {'pf_pci': '0000:81:00.0',
     'src_mac': '02:00:00:00:00:00',
     'vfs_mac': ['00:12:34:56:01:00',
                 '00:12:34:56:01:01',
                 '00:12:34:56:01:02',
                 '00:12:34:56:01:03'],
     'vfs_pci': ['0000:81:01.0',
                 '0000:81:01.1',
                 '0000:81:01.2',
                 '0000:81:01.3']},
 1: {'pf_pci': '0000:81:00.1',
     'src_mac': '02:00:00:00:00:01',
     'vfs_mac': ['00:12:34:56:02:00',
                 '00:12:34:56:02:01',
                 '00:12:34:56:02:02',
                 '00:12:34:56:02:03'],
     'vfs_pci': ['0000:81:11.0',
                 '0000:81:11.1',
                 '0000:81:11.2',
                 '0000:81:11.3']}}
23/09/2020 17:35:35               TestDcfLifeCycle: Test Case test_handle_switch_filter_02 Begin
23/09/2020 17:35:35             dut.10.240.183.133: 
23/09/2020 17:35:35                         tester: 
23/09/2020 17:35:35               TestDcfLifeCycle: begin : Kill DCF process
23/09/2020 17:35:35             dut.10.240.183.133: ip link set ens801f0 vf 0 trust on
23/09/2020 17:35:35             dut.10.240.183.133: 
23/09/2020 17:35:35             dut.10.240.183.133: x86_64-native-linuxapp-gcc/app/dpdk-testpmd  -v -c 0x7c0000 -n 4 -w 0000:81:01.0,cap=dcf --file-prefix=dcf -- -i 
23/09/2020 17:35:37             dut.10.240.183.133: EAL: Detected 72 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: RTE Version: 'DPDK 20.11.0-rc0'
EAL: Multi-process socket /var/run/dpdk/dcf/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL:   using IOMMU type 1 (Type 1)
EAL: Probe PCI driver: net_iavf (8086:1889) device: 0000:81:01.0 (socket 1)
EAL: Releasing pci mapped resource for 0000:81:01.0
EAL: Calling pci_unmap_resource for 0000:81:01.0 at 0x2200000000
EAL: Calling pci_unmap_resource for 0000:81:01.0 at 0x2200020000
EAL:   using IOMMU type 1 (Type 1)
EAL: Probe PCI driver: net_ice_dcf (8086:1889) device: 0000:81:01.0 (socket 1)
ice_load_pkg_type(): Active package is: 1.3.20.0, ICE COMMS Package
EAL: No legacy callbacks, legacy socket not created
Interactive-mode selected
testpmd: create a new mbuf pool <mbuf_pool_socket_1>: n=179456, 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)
ice_dcf_init_rss(): RSS is enabled by PF by default
ice_dcf_configure_queues(): request RXDID == 16 in Queue[0]
Port 0: 9E:64:43:F6:8D:48
Checking link statuses...
Done
23/09/2020 17:35:40             dut.10.240.183.133: flow create 0 priority 0 ingress pattern eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 / end actions vf id 1 / end
23/09/2020 17:35:41             dut.10.240.183.133: 
Flow rule #0 created
23/09/2020 17:35:41               TestDcfLifeCycle: Ether(dst='00:12:34:56:01:01', src='00:00:20:00:00:00')/IP(frag=0, src='192.168.0.2', tos=0, dst='192.168.0.3', version=4, ttl=64, id=1)/Raw(load=b'XXXXXXXXXXXXXXXXXXXXXXXXXX')
23/09/2020 17:35:56             dut.10.240.183.133: ps aux | grep testpmd
23/09/2020 17:35:56             dut.10.240.183.133: root     1122732  6.1  0.2 134440624 91776 pts/0 SLl+ 17:35   0:01 x86_64-native-linuxapp-gcc/app/dpdk-testpmd -v -c 0x7c0000 -n 4 -w 0000:81:01.0,cap=dcf --file-prefix=dcf -- -i
root     1122740 94.3  0.2 134432428 83632 pts/3 SLl+ 17:35   0:17 x86_64-native-linuxapp-gcc/app/dpdk-testpmd-vf -v -c 0xf800000 -n 4 -w 0000:81:01.1 --file-prefix=vf -- -i
root     1122750  0.0  0.0   6432   736 pts/1    S+   17:36   0:00 grep --color=auto testpmd
23/09/2020 17:35:56             dut.10.240.183.133: kill -9 `ps -ef | grep dpdk-testpmd  | grep -v grep | grep -v dpdk-testpmd-vf  | awk '{print $2}'`
23/09/2020 17:35:56             dut.10.240.183.133: 
23/09/2020 17:35:58             dut.10.240.183.133: ps aux | grep testpmd
23/09/2020 17:35:58             dut.10.240.183.133: root     1122740 95.8  0.2 134432428 83632 pts/3 SLl+ 17:35   0:20 x86_64-native-linuxapp-gcc/app/dpdk-testpmd-vf -v -c 0xf800000 -n 4 -w 0000:81:01.1 --file-prefix=vf -- -i
root     1122758  0.0  0.0   6432   732 pts/1    S+   17:36   0:00 grep --color=auto testpmd
23/09/2020 17:36:19               TestDcfLifeCycle: Test Case test_handle_switch_filter_02 Result PASSED:
23/09/2020 17:36:19             dut.10.240.183.133: kill_all: called by dut and has no prefix list.
23/09/2020 17:36:21                            dts: 
TEST SUITE ENDED: TestDcfLifeCycle
23/09/2020 17:36:34               TestDcfLifeCycle: close vf devices

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dts] [PATCH V1] tests/TestSuite_dcf_lifecycle:get app name to kill testpmd
  2020-09-22  9:45 ` Xie, WeiX
@ 2020-09-29  1:07   ` Ma, LihongX
  0 siblings, 0 replies; 4+ messages in thread
From: Ma, LihongX @ 2020-09-29  1:07 UTC (permalink / raw)
  To: Xie, WeiX, dts

Acked-by: Lihong Ma<lihongx.ma@intel.com>

Regards,
Ma,lihong

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Xie, WeiX
> Sent: Tuesday, September 22, 2020 5:46 PM
> To: dts@dpdk.org
> Subject: Re: [dts] [PATCH V1] tests/TestSuite_dcf_lifecycle:get app name to
> kill testpmd


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dts] [PATCH V1] tests/TestSuite_dcf_lifecycle:get app name to kill testpmd
  2020-09-22  9:40 [dts] [PATCH V1] tests/TestSuite_dcf_lifecycle:get app name to kill testpmd Xie wei
  2020-09-22  9:45 ` Xie, WeiX
@ 2020-10-12  8:02 ` Tu, Lijuan
  1 sibling, 0 replies; 4+ messages in thread
From: Tu, Lijuan @ 2020-10-12  8:02 UTC (permalink / raw)
  To: Xie, WeiX, dts; +Cc: Xie, WeiX

> support meson build method, get app name to kill testpmd process.
> 
> Signed-off-by: Xie wei <weix.xie@intel.com>

Applied

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-10-12  8:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-22  9:40 [dts] [PATCH V1] tests/TestSuite_dcf_lifecycle:get app name to kill testpmd Xie wei
2020-09-22  9:45 ` Xie, WeiX
2020-09-29  1:07   ` Ma, LihongX
2020-10-12  8:02 ` Tu, Lijuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).