From patchwork Wed Sep 28 03:18:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ke Xu X-Patchwork-Id: 116978 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2C9E5A00C2; Wed, 28 Sep 2022 05:24:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 274464114E; Wed, 28 Sep 2022 05:24:06 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 24D4240E25 for ; Wed, 28 Sep 2022 05:24:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664335444; x=1695871444; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=HfJveTprbeE68+7MIh4lO0ssOYRcdtcwCCQSQE5TI8s=; b=inGdrvon80cxCF4Ftm79NHCcyWikk+6/W4f+qO1MiylLwYx+TeBsgrYV ejpdpBXyf6603p1jG2TW0vqXcge+yfrg5YuNfQMxrAEj/CacMLqidGcK1 12pI6NllTbMzYS0rnQ6L7fmdsL+PHuDup2vEhjf2YBFZmXa0V2gOWZQwl ww0XoiRo0Jq/xuO475jWyZiLcWvtdZnYncLfcLErFR8A6l9HCKDOLOcD0 6H8gFQI0aQTm5o/AuI0xiHN0yfqgWUIIGC39D8tkXtHV7w5OMxZKbw6p9 EsVUKsYBl4pyGnZBBk/ighkfFPbm8GHzOW2yuNQLC8iPfT2fvTKHxVQTj w==; X-IronPort-AV: E=McAfee;i="6500,9779,10483"; a="281211586" X-IronPort-AV: E=Sophos;i="5.93,350,1654585200"; d="scan'208";a="281211586" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Sep 2022 20:24:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10483"; a="710802688" X-IronPort-AV: E=Sophos;i="5.93,350,1654585200"; d="scan'208";a="710802688" Received: from unknown (HELO DPDK-XUKE-LAB.sh.intel.com) ([10.67.116.226]) by FMSMGA003.fm.intel.com with ESMTP; 27 Sep 2022 20:24:01 -0700 From: Ke Xu To: dts@dpdk.org Cc: lijuan.tu@intel.com, jin.ling@intel.com, zhiminx.huang@intel.com, weiyuanx.li@intel.com, qi.fu@intel.com, Ke Xu Subject: [DTS][PATCH V1 01/21] test_plans/dcf_lifecycle: update test plan to support represented port action from deprecated vf action Date: Wed, 28 Sep 2022 03:18:19 +0000 Message-Id: <20220928031836.770004-2-ke1.xu@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220928031836.770004-1-ke1.xu@intel.com> References: <20220928031836.770004-1-ke1.xu@intel.com> MIME-Version: 1.0 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Signed-off-by: Jin Ling Reviewed-by: Ke Xu --- test_plans/dcf_lifecycle_test_plan.rst | 84 +++++++++++++------------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/test_plans/dcf_lifecycle_test_plan.rst b/test_plans/dcf_lifecycle_test_plan.rst index 53837142..d1b19fe1 100644 --- a/test_plans/dcf_lifecycle_test_plan.rst +++ b/test_plans/dcf_lifecycle_test_plan.rst @@ -176,7 +176,7 @@ Set a VF as trust :: Launch dpdk on the VF, request DCF mode :: ./usertools/dpdk-devbind.py -b vfio-pci 18:01.0 18:01.1 - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-10 -n 4 -a 18:01.0,cap=dcf --file-prefix=dcf -- -i + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-10 -n 4 -a 18:01.0,cap=dcf,representor=vf[1] --file-prefix=dcf -- -i Launch another testpmd on the VF1, and start mac forward :: @@ -187,7 +187,7 @@ Launch another testpmd on the VF1, and start mac forward :: Set switch rule to VF1 `0000:18:01.1` from DCF :: - 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 + flow create 0 priority 0 ingress pattern eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 / end actions represented_port ethdev_port_id 1 / end Send a scapy packet to VF1 :: @@ -228,7 +228,7 @@ Set a VF as trust :: Launch dpdk on the VF, request DCF mode :: ./usertools/dpdk-devbind.py -b vfio-pci 18:01.0 18:01.1 - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-10 -n 4 -a 18:01.0,cap=dcf --file-prefix=dcf -- -i + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-10 -n 4 -a 18:01.0,cap=dcf,representor=vf[1] --file-prefix=dcf -- -i Launch another testpmd on the VF1, and start mac forward :: @@ -239,7 +239,7 @@ Launch another testpmd on the VF1, and start mac forward :: Set switch rule to VF1 0000:18:01.1 from DCF :: - 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 + flow create 0 priority 0 ingress pattern eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 / end actions represented_port ethdev_port_id 1 / end Send a scapy packet to VF1 :: @@ -277,7 +277,7 @@ Set a VF as trust :: Launch dpdk on the VF, request DCF mode :: ./usertools/dpdk-devbind.py -b vfio-pci 18:01.0 18:01.1 - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-10 -n 4 -a 18:01.0,cap=dcf --file-prefix=dcf -- -i + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-10 -n 4 -a 18:01.0,cap=dcf,representor=vf[1] --file-prefix=dcf -- -i Launch another testpmd on the VF1, and start mac forward :: @@ -288,7 +288,7 @@ Launch another testpmd on the VF1, and start mac forward :: Set switch rule to VF1 0000:18:01.1 from DCF :: - 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 + flow create 0 priority 0 ingress pattern eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 / end actions represented_port ethdev_port_id 1 / end Send a scapy packet to VF1 :: @@ -353,7 +353,7 @@ Set a VF as trust :: Launch dpdk on the VF, request DCF mode :: ./usertools/dpdk-devbind.py -b vfio-pci 18:01.0 18:01.1 - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-10 -n 4 -a 18:01.0,cap=dcf --file-prefix=dcf -- -i + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-10 -n 4 -a 18:01.0,cap=dcf,representor=vf[1-2] --file-prefix=dcf -- -i Launch another testpmd on the VF1 and VF2, and start mac forward :: @@ -369,8 +369,8 @@ Launch another testpmd on the VF1 and VF2, and start mac forward :: Set switch rule to VF1 0000:18:01.1 from DCF :: - 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 - flow create 0 priority 0 ingress pattern eth / ipv4 src is 192.168.0.4 dst is 192.168.0.5 / end actions vf id 1 / end + flow create 0 priority 0 ingress pattern eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 / end actions represented_port ethdev_port_id 1 / end + flow create 0 priority 0 ingress pattern eth / ipv4 src is 192.168.0.4 dst is 192.168.0.5 / end actions represented_port ethdev_port_id 1 / end Send a scapy packet to VF1 :: @@ -421,9 +421,9 @@ Set a VF as trust :: Launch dpdk on the VF, request DCF mode :: ./usertools/dpdk-devbind.py -b vfio-pci 18:01.0 18:01.1 18:01.2 - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-10 -n 4 -a 18:01.0,cap=dcf --file-prefix=dcf -- -i + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-10 -n 4 -a 18:01.0,cap=dcf,representor=vf[1-2] --file-prefix=dcf -- -i -Launch another testpmd on the VF1, and start mac forward :: +Launch another testpmd on the VF1 and VF2, and start mac forward :: ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 11-14 -n 4 -a 18:01.1 -a 18:01.2 --file-prefix=vf -- -i set verbose 1 @@ -432,7 +432,7 @@ Launch another testpmd on the VF1, and start mac forward :: Set switch rule to VF1 0000:18:01.1 and VF2 0000:18:01.2 from DCF :: - 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 + flow create 0 priority 0 ingress pattern eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 / end actions represented_port ethdev_port_id 1 / end Send a scapy packet to VF1 and VF2 :: @@ -1112,7 +1112,7 @@ The common steps launch two testpmds and kill DCF process, then relaunch two tes ..note:: For , you can use "-c 0x6 -n 4", you can also refer to testpmd doc for other setings. - For , you can use "0000:3b:01.0,cap=dcf --file-prefix=dcf" for this test plan. + For , you can use "0000:3b:01.0,cap=dcf,representor=vf[1] --file-prefix=dcf" for this test plan. 2. Launch another ``testpmd`` application on the VF1 of DUT as follows:: @@ -1134,7 +1134,7 @@ The common steps launch two testpmds and kill DCF process, then relaunch two tes 5. Validate a switch rule to VF1 in DCF testpmd:: - testpmd> flow validate 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions vf id 1 / end + testpmd> flow validate 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions represented_port ethdev_port_id 1 / end Get the message:: @@ -1142,7 +1142,7 @@ The common steps launch two testpmds and kill DCF process, then relaunch two tes 6. Create a switch rule to VF1 in DCF testpmd and list rules:: - testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions vf id 1 / end + testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions represented_port ethdev_port_id 1 / end Get the message:: @@ -1191,7 +1191,7 @@ Test Steps ..note:: For , you can use "-c 0x6 -n 4", you can also refer to testpmd doc for other setings. - For , you can use "0000:3b:01.0,cap=dcf --file-prefix=dcf" for this test plan. + For , you can use "0000:3b:01.0,cap=dcf,representor=vf[1] --file-prefix=dcf" for this test plan. 3. Send a matched packet in scapy to VF1, DCF flow rule is still valid and check the VF1 of DUT can receive the packet. @@ -1216,7 +1216,7 @@ the VF1 of DUT:: 5. Validate a switch rule to VF1 in DCF testpmd:: - testpmd> flow validate 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions vf id 1 / end + testpmd> flow validate 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions represented_port ethdev_port_id 1 / end Get the message:: @@ -1224,7 +1224,7 @@ the VF1 of DUT:: 6. Create a switch rule to VF1 in DCF testpmd and list rules:: - testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions vf id 1 / end + testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions represented_port ethdev_port_id 1 / end Get the message:: @@ -1270,7 +1270,7 @@ Test Steps 3. Validate a switch rule to VF1 in DCF testpmd:: - testpmd> flow validate 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions vf id 1 / end + testpmd> flow validate 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions represented_port ethdev_port_id 1 / end Get the message:: @@ -1278,7 +1278,7 @@ Test Steps 4. Create a switch rule to VF1 in DCF testpmd and list rules:: - testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions vf id 1 / end + testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions represented_port ethdev_port_id 1 / end Get the message:: @@ -1326,7 +1326,7 @@ Test Steps 3. Validate a switch rule to VF1 in DCF testpmd:: - testpmd> flow validate 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions vf id 1 / end + testpmd> flow validate 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions represented_port ethdev_port_id 1 / end Get the message:: @@ -1334,7 +1334,7 @@ Test Steps 4. Create a switch rule to VF1 in DCF testpmd and list rules:: - testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions vf id 1 / end + testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions represented_port ethdev_port_id 1 / end Get the message:: @@ -1380,7 +1380,7 @@ Test Steps 3. Validate a switch rule to VF1 in DCF testpmd:: - testpmd> flow validate 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions vf id 1 / end + testpmd> flow validate 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions represented_port ethdev_port_id 1 / end Get the message:: @@ -1388,7 +1388,7 @@ Test Steps 4. Create a switch rule to VF1 in DCF testpmd and list rules:: - testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions vf id 1 / end + testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions represented_port ethdev_port_id 1 / end Get the message:: @@ -1434,7 +1434,7 @@ Test Steps 3. Validate a switch rule to VF1 in DCF testpmd:: - testpmd> flow validate 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions vf id 1 / end + testpmd> flow validate 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions represented_port ethdev_port_id 1 / end Get the message:: @@ -1442,7 +1442,7 @@ Test Steps 4. Create a switch rule to VF1 in DCF testpmd and list rules:: - testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions vf id 1 / end + testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions represented_port ethdev_port_id 1 / end Get the message:: @@ -1478,7 +1478,7 @@ The common steps launch one testpmd and kill DCF process, then relaunch one test ..note:: For , you can use "-c 0x6 -n 4", you can also refer to testpmd doc for other setings. - For , you can use"-a 3b:01.0,cap=dcf -a 3b:01.1 --file-prefix=dcf" for this test plan. + For , you can use"-a 3b:01.0,cap=dcf,representor=vf[1] -a 3b:01.1 --file-prefix=dcf" for this test plan. 2. Set verbose:: @@ -1491,7 +1491,7 @@ The common steps launch one testpmd and kill DCF process, then relaunch one test 4. Validate a switch rule to VF1:: - testpmd> flow validate 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions vf id 1 / end + testpmd> flow validate 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions represented_port ethdev_port_id 1 / end Get the message:: @@ -1499,7 +1499,7 @@ The common steps launch one testpmd and kill DCF process, then relaunch one test 5. Create a switch rule to VF1 and list rules:: - testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions vf id 1 / end + testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions represented_port ethdev_port_id 1 / end Get the message:: @@ -1542,7 +1542,7 @@ Test Steps ..note:: For , you can use "-c 0x6 -n 4", you can also refer to testpmd doc for other setings. - For , you can use"-a 3b:01.0,cap=dcf -a 3b:01.1 --file-prefix=dcf" for this test plan. + For , you can use"-a 3b:01.0,cap=dcf,representor=vf[1] -a 3b:01.1 --file-prefix=dcf" for this test plan. 3. Set verbose:: @@ -1574,7 +1574,7 @@ DUT:: 7. Validate a switch rule to VF1:: - testpmd> flow validate 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions vf id 1 / end + testpmd> flow validate 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions represented_port ethdev_port_id 1 / end Get the message:: @@ -1582,7 +1582,7 @@ DUT:: 8. Create a switch rule to VF1 and list rules:: - testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions vf id 1 / end + testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions represented_port ethdev_port_id 1 / end Get the message:: @@ -1628,7 +1628,7 @@ Test Steps 3. Validate a switch rule to VF1:: - testpmd> flow validate 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions vf id 1 / end + testpmd> flow validate 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions represented_port ethdev_port_id 1 / end Get the message:: @@ -1636,7 +1636,7 @@ Test Steps 4. Create a switch rule to VF1 and list rules:: - testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions vf id 1 / end + testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions represented_port ethdev_port_id 1 / end Get the message:: @@ -1676,7 +1676,7 @@ Test Steps testpmd> stop testpmd> port stop 0 testpmd> port detach 0 - testpmd> port attach 3b:01.0,cap=dcf + testpmd> port attach 3b:01.0,cap=dcf,representor=vf[1] testpmd> port reset 0 testpmd> port start 0 testpmd> start @@ -1684,7 +1684,7 @@ Test Steps 3. Validate a switch rule to VF1:: - testpmd> flow validate 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions vf id 1 / end + testpmd> flow validate 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions represented_port ethdev_port_id 1 / end Get the message:: @@ -1692,7 +1692,7 @@ Test Steps 4. Create a switch rule to VF1 and list rules:: - testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions vf id 1 / end + testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions represented_port ethdev_port_id 1 / end Get the message:: @@ -1738,7 +1738,7 @@ Test Steps 3. Validate a switch rule to VF1:: - testpmd> flow validate 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions vf id 1 / end + testpmd> flow validate 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions represented_port ethdev_port_id 1 / end Get the message:: @@ -1746,7 +1746,7 @@ Test Steps 4. Create a switch rule to VF1 and list rules:: - testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions vf id 1 / end + testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions represented_port ethdev_port_id 1 / end Get the message:: @@ -1769,7 +1769,7 @@ DUT:: testpmd> port 1/queue 0: received 1 packets src=00:11:22:33:44:55 - dst=C6:44:32:0A:EC:E1 - type=0x0800 - length=98 - nb_segs=1 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_NONFRAG - sw ptype: L2_ETHER L3_IPV4 - l2_len=14 - l3_len=20 - Receive queue=0x0 - ol_flags: RTE_MBUF_F_RX_L4_CKSUM_GOOD RTE_MBUF_F_RX_IP_CKSUM_GOOD RTE_MBUF_F_RX_OUTER_L4_CKSUM_UNKNOWN + ol_flags: RTE_MBUF_F_RX_L4_CKSUM_GOOD RTE_MBUF_F_RX_IP_CKSUM_GOOD RTE_MBUF_F_RX_OUTER_L4_CKSUM_UNKNOWN Test Case 10: one_testpmd_dcf_reset_mac --------------------------------------- @@ -1792,7 +1792,7 @@ Test Steps 3. Validate a switch rule to VF1:: - testpmd> flow validate 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions vf id 1 / end + testpmd> flow validate 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions represented_port ethdev_port_id 1 / end Get the message:: @@ -1800,7 +1800,7 @@ Test Steps 4. Create a switch rule to VF1 and list rules:: - testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions vf id 1 / end + testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions represented_port ethdev_port_id 1 / end Get the message::