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 476DEA0562; Fri, 19 Mar 2021 04:06:21 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 10AD9141012; Fri, 19 Mar 2021 04:06:21 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 62A6C141011 for ; Fri, 19 Mar 2021 04:06:18 +0100 (CET) IronPort-SDR: bzQScajCr6Ajm67jhFDOSFmE7/+URGfoGcY4wtvH5iGwIVhztv5QoeqkLoTqW4eq4JMfJDsLEE sYv7S/Jv+C6Q== X-IronPort-AV: E=McAfee;i="6000,8403,9927"; a="251166534" X-IronPort-AV: E=Sophos;i="5.81,259,1610438400"; d="scan'208";a="251166534" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Mar 2021 20:06:16 -0700 IronPort-SDR: nMnlUx45nbuAaNqLUEs0VHFtN2gvDnF11x0iuG7s7Vcf5WO5QFdgLW7VkHFuZ0MwQ1rzUnYU/g Ww2O9ZJWdVCQ== X-IronPort-AV: E=Sophos;i="5.81,259,1610438400"; d="scan'208";a="406601560" Received: from unknown (HELO localhost.localdomain) ([10.240.183.57]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Mar 2021 20:06:14 -0700 From: Haiyang Zhao To: dts@dpdk.org Cc: Haiyang Zhao Date: Fri, 19 Mar 2021 10:57:19 +0800 Message-Id: <20210319025719.29978-1-haiyangx.zhao@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] test_plans: fix build warning and errors 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 Sender: "dts" Signed-off-by: Haiyang Zhao --- .../cvl_advanced_iavf_rss_gtpu_test_plan.rst | 5 +- test_plans/cvl_ecpri_test_plan.rst | 76 ++-- test_plans/cvl_qinq_test_plan.rst | 350 +++++++++--------- test_plans/iavf_fdir_test_plan.rst | 10 +- .../iavf_flexible_descriptor_test_plan.rst | 91 +++-- test_plans/index.rst | 7 +- .../vm2vm_virtio_net_perf_test_plan.rst | 16 +- test_plans/vm2vm_virtio_user_test_plan.rst | 2 +- 8 files changed, 283 insertions(+), 274 deletions(-) diff --git a/test_plans/cvl_advanced_iavf_rss_gtpu_test_plan.rst b/test_plans/cvl_advanced_iavf_rss_gtpu_test_plan.rst index 828403f0..0cbecb56 100644 --- a/test_plans/cvl_advanced_iavf_rss_gtpu_test_plan.rst +++ b/test_plans/cvl_advanced_iavf_rss_gtpu_test_plan.rst @@ -434,8 +434,8 @@ ipv4-udp packet:: UL case:: -basic hit pattern packets are the same in this test case. -ipv4-nonfrag packet:: + basic hit pattern packets are the same in this test case. + ipv4-nonfrag packet:: sendp([Ether(dst="00:11:22:33:44:55")/IP()/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x123456)/GTPPDUSessionContainer(type=1, P=1, QFI=0x34)/IP(dst="192.168.0.1", src="192.168.0.2")/("X"*480)],iface="enp134s0f0") @@ -2956,6 +2956,7 @@ all the test cases run the same test steps as below: 5. destroy the rule and list rule. 6. send the packet in step 4. check the received packet has different hash value with which in step 3(including the case has no hash value). + Note: the GTPoGRE packets need to be added to symmetric cases as a Ptype, just like toeplitz cases. diff --git a/test_plans/cvl_ecpri_test_plan.rst b/test_plans/cvl_ecpri_test_plan.rst index a8cf802b..9665a040 100644 --- a/test_plans/cvl_ecpri_test_plan.rst +++ b/test_plans/cvl_ecpri_test_plan.rst @@ -96,39 +96,39 @@ Prerequisites check the VF0 driver is net_ice_dcf. -9. For test case 01 and test case 02, need to add print log in testpmd to show the eCPRI ptype, then compile DPDK again: - -diff --git a/drivers/net/iavf/iavf_rxtx.c b/drivers/net/iavf/iavf_rxtx.c - index af5a28d84..3dbd5ab97 100644 - --- a/drivers/net/iavf/iavf_rxtx.c - +++ b/drivers/net/iavf/iavf_rxtx.c - @@ -1314,6 +1314,8 @@ iavf_recv_pkts_flex_rxd(void *rx_queue, - rxm->ol_flags = 0; - rxm->packet_type = ptype_tbl[IAVF_RX_FLEX_DESC_PTYPE_M & - rte_le_to_cpu_16(rxd.wb.ptype_flex_flags0)]; - + printf("++++++++++++ptype=%u\n", - + IAVF_RX_FLEX_DESC_PTYPE_M & rte_le_to_cpu_16(rxd.wb.ptype_flex_flags0)); - iavf_flex_rxd_to_vlan_tci(rxm, &rxd); - rxq->rxd_to_pkt_fields(rxq, rxm, &rxd); - pkt_flags = iavf_flex_rxd_error_to_pkt_flags(rx_stat_err0); - @@ -2346,7 +2348,7 @@ iavf_set_rx_function(struct rte_eth_dev *dev) - IAVF_DEV_PRIVATE_TO_ADAPTER(dev->data->dev_private); - struct iavf_info *vf = IAVF_DEV_PRIVATE_TO_VF(dev->data->dev_private); - - -#ifdef RTE_ARCH_X86 - +#if 0 - struct iavf_rx_queue *rxq; - int i; - bool use_avx2 = false; - @@ -2446,6 +2448,7 @@ iavf_set_rx_function(struct rte_eth_dev *dev) - else - dev->rx_pkt_burst = iavf_recv_pkts; - } - + dev->rx_pkt_burst = iavf_recv_pkts_flex_rxd; - } - - /* choose tx function*/ - -- +9. For test case 01 and test case 02, need to add print log in testpmd to show the eCPRI ptype, then compile DPDK again:: + + diff --git a/drivers/net/iavf/iavf_rxtx.c b/drivers/net/iavf/iavf_rxtx.c + index af5a28d84..3dbd5ab97 100644 + --- a/drivers/net/iavf/iavf_rxtx.c + +++ b/drivers/net/iavf/iavf_rxtx.c + @@ -1314,6 +1314,8 @@ iavf_recv_pkts_flex_rxd(void *rx_queue, + rxm->ol_flags = 0; + rxm->packet_type = ptype_tbl[IAVF_RX_FLEX_DESC_PTYPE_M & + rte_le_to_cpu_16(rxd.wb.ptype_flex_flags0)]; + + printf("++++++++++++ptype=%u\n", + + IAVF_RX_FLEX_DESC_PTYPE_M & rte_le_to_cpu_16(rxd.wb.ptype_flex_flags0)); + iavf_flex_rxd_to_vlan_tci(rxm, &rxd); + rxq->rxd_to_pkt_fields(rxq, rxm, &rxd); + pkt_flags = iavf_flex_rxd_error_to_pkt_flags(rx_stat_err0); + @@ -2346,7 +2348,7 @@ iavf_set_rx_function(struct rte_eth_dev *dev) + IAVF_DEV_PRIVATE_TO_ADAPTER(dev->data->dev_private); + struct iavf_info *vf = IAVF_DEV_PRIVATE_TO_VF(dev->data->dev_private); + + -#ifdef RTE_ARCH_X86 + +#if 0 + struct iavf_rx_queue *rxq; + int i; + bool use_avx2 = false; + @@ -2446,6 +2448,7 @@ iavf_set_rx_function(struct rte_eth_dev *dev) + else + dev->rx_pkt_burst = iavf_recv_pkts; + } + + dev->rx_pkt_burst = iavf_recv_pkts_flex_rxd; + } + + /* choose tx function*/ + -- Test case 01: add and delete eCPRI port config in DCF @@ -179,7 +179,7 @@ MAC_IPV4_UDP_ECPRI(ptype=381):: sendp([Ether(dst="00:11:22:33:44:11")/IP()/UDP(dport=0x5123)/Raw('\x10\x06')], iface="ens786f0") -3. send eCPRI pkts which udp dport is not matched the config to VF1, check the pattern can not be recognized(all the ptype is 24):: +3. send eCPRI pkts which udp dport is not matched the config to VF1, check the pattern can not be recognized(all the ptype is 24): MAC_IPV4_UDP_ECPRI_MSGTYPE0:: @@ -243,7 +243,7 @@ Test case 02: test eCPRI port config when DCF exit and reset testpmd> set verbose 1 testpmd> start -3. send eCPRI pkts which udp dport is match before config to VF1, check the pattern can not be recognized(all the ptype is 24):: +3. send eCPRI pkts which udp dport is match before config to VF1, check the pattern can not be recognized(all the ptype is 24): MAC_IPV4_UDP_ECPRI_MSGTYPE0:: @@ -453,8 +453,8 @@ Test case 06: rss for eth_ecpri check the received packets have different hash values with basic packet, check the packets are distributed to queues by rss:: - sendp([Ether(dst="00:11:22:33:44:11", type=0xAEFE)/Raw('\x10\x00\x02\x24\x23\x46')], iface="ens786f0") - sendp([Ether(dst="00:11:22:33:44:11", type=0xAEFE)/Raw('\x10\x00\x02\x24\x23\x47')], iface="ens786f0") + sendp([Ether(dst="00:11:22:33:44:11", type=0xAEFE)/Raw('\x10\x00\x02\x24\x23\x46')], iface="ens786f0") + sendp([Ether(dst="00:11:22:33:44:11", type=0xAEFE)/Raw('\x10\x00\x02\x24\x23\x47')], iface="ens786f0") 6. Destroy the rule and list rule:: @@ -580,7 +580,7 @@ Test case 09: DCF reset for udp ecpri rss 10. Set VF0 as trust:: - ip link set ens785f0 vf 0 trust on + ip link set ens785f0 vf 0 trust on Test case 10: DCF reset for eth ecpri rss diff --git a/test_plans/cvl_qinq_test_plan.rst b/test_plans/cvl_qinq_test_plan.rst index beed340b..4f44150b 100644 --- a/test_plans/cvl_qinq_test_plan.rst +++ b/test_plans/cvl_qinq_test_plan.rst @@ -97,29 +97,29 @@ Prerequisites 10. Bind VFs to dpdk driver:: - modprobe vfio-pci - ./usertools/dpdk-devbind.py -b vfio-pci 0000:18:01.0 0000:18:01.1 0000:18:01.2 0000:18:01.3 + modprobe vfio-pci + ./usertools/dpdk-devbind.py -b vfio-pci 0000:18:01.0 0000:18:01.1 0000:18:01.2 0000:18:01.3 11. Disabel spoofchk for VF:: - ip link set dev ens785f0 vf 0 spoofchk off - ip link set dev ens785f0 vf 1 spoofchk off - ip link set dev ens785f0 vf 2 spoofchk off - ip link set dev ens785f0 vf 3 spoofchk off + ip link set dev ens785f0 vf 0 spoofchk off + ip link set dev ens785f0 vf 1 spoofchk off + ip link set dev ens785f0 vf 2 spoofchk off + ip link set dev ens785f0 vf 3 spoofchk off 12. For test cases for DCF switch filter(01-06), use below cmd to launch testpmd:: - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xf -n 4 -a 0000:18:01.0,cap=dcf -a 0000:18:01.1 -a 0000:18:01.2 -a 0000:18:01.3 -- -i - testpmd> set fwd rxonly - testpmd> set verbose 1 - testpmd> start - testpmd> show port info all + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xf -n 4 -a 0000:18:01.0,cap=dcf -a 0000:18:01.1 -a 0000:18:01.2 -a 0000:18:01.3 -- -i + testpmd> set fwd rxonly + testpmd> set verbose 1 + testpmd> start + testpmd> show port info all check the VF0 driver is net_ice_dcf. For test cases for DCF pvid(07-09), use below cmd to launch testpmd:: - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xf -n 4 -a 0000:18:01.0,cap=dcf,representor=[1] -a 0000:18:01.1 -a 0000:18:01.2 -a 0000:18:01.3 -- -i + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xf -n 4 -a 0000:18:01.0,cap=dcf,representor=[1] -a 0000:18:01.1 -a 0000:18:01.2 -a 0000:18:01.3 -- -i testpmd> set fwd mac testpmd> set verbose 1 testpmd> start @@ -129,17 +129,17 @@ Prerequisites 13. For AVF QinQ test cases(10-14), recreate Generate 1 VFs on PF0, reconfig the VF then launch testpmd:: - echo 0 > /sys/bus/pci/devices/0000:18:00.0/sriov_numvfs - ethtool --set-priv-flags ens785f0 vf-vlan-prune-disable off - echo 1 > /sys/bus/pci/devices/0000:18:00.0/sriov_numvfs - ip link set ens785f0 vf 0 mac 00:11:22:33:44:11 - ip link set dev ens785f0 vf 0 spoofchk off + echo 0 > /sys/bus/pci/devices/0000:18:00.0/sriov_numvfs + ethtool --set-priv-flags ens785f0 vf-vlan-prune-disable off + echo 1 > /sys/bus/pci/devices/0000:18:00.0/sriov_numvfs + ip link set ens785f0 vf 0 mac 00:11:22:33:44:11 + ip link set dev ens785f0 vf 0 spoofchk off - ./usertools/dpdk-devbind.py -b vfio-pci 0000:18:01.0 - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xf -n 4 -a 0000:18:01.0 -- -i --rxq=16 --txq=16 - testpmd> set fwd mac - testpmd> set verbose 1 - testpmd> start + ./usertools/dpdk-devbind.py -b vfio-pci 0000:18:01.0 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xf -n 4 -a 0000:18:01.0 -- -i --rxq=16 --txq=16 + testpmd> set fwd mac + testpmd> set verbose 1 + testpmd> start DCF switch filter support pattern and input set ----------------------------------------------- @@ -724,27 +724,27 @@ Test case 07: vlan strip when pvid enable 10. relaunch testpmd and enable vlan strip by AVF:: - testpmd> vlan set strip on 2 + testpmd> vlan set strip on 2 11. repeat step 1,2 and 3, check the pkts can be received in VF1 and fwd to tester without both outer and inner vlan header:: - testpmd> port 2/queue 0: received 1 packets - src=00:00:00:00:00:00 - dst=00:11:22:33:44:11 - type=0x8100 - length=518 - nb_segs=1 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_NONFRAG - sw ptype: L2_ETHER_VLAN L3_IPV4 - l2_len=18 - l3_len=20 - Receive queue=0x0 - ol_flags: PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN + testpmd> port 2/queue 0: received 1 packets + src=00:00:00:00:00:00 - dst=00:11:22:33:44:11 - type=0x8100 - length=518 - nb_segs=1 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_NONFRAG - sw ptype: L2_ETHER_VLAN L3_IPV4 - l2_len=18 - l3_len=20 - Receive queue=0x0 + ol_flags: PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN - port 2/queue 0: received 1 packets - src=00:00:00:00:00:00 - dst=00:11:22:33:44:11 - type=0x0800 - length=514 - 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: PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN + port 2/queue 0: received 1 packets + src=00:00:00:00:00:00 - dst=00:11:22:33:44:11 - type=0x0800 - length=514 - 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: PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN - 10:28:01.642361 00:00:00:00:00:00 > 00:11:22:33:44:11, ethertype 802.1Q (0x8100), length 522: vlan 1, p 0, ethertype 802.1Q, vlan 2, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) - 196.222.232.221 > 127.0.0.1: ip-proto-0 480 - 10:28:01.642438 00:11:22:33:44:22 > 02:00:00:00:00:03, ethertype IPv4 (0x0800), length 514: (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) - 196.222.232.221 > 127.0.0.1: ip-proto-0 480 + 10:28:01.642361 00:00:00:00:00:00 > 00:11:22:33:44:11, ethertype 802.1Q (0x8100), length 522: vlan 1, p 0, ethertype 802.1Q, vlan 2, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) + 196.222.232.221 > 127.0.0.1: ip-proto-0 480 + 10:28:01.642438 00:11:22:33:44:22 > 02:00:00:00:00:03, ethertype IPv4 (0x0800), length 514: (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) + 196.222.232.221 > 127.0.0.1: ip-proto-0 480 - 10:28:10.185876 00:00:00:00:00:00 > 00:11:22:33:44:11, ethertype 802.1Q (0x8100), length 518: vlan 21, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) - 196.222.232.221 > 127.0.0.1: ip-proto-0 480 - 10:28:10.185916 00:11:22:33:44:22 > 02:00:00:00:00:03, ethertype IPv4 (0x0800), length 514: (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) - 196.222.232.221 > 127.0.0.1: ip-proto-0 480 + 10:28:10.185876 00:00:00:00:00:00 > 00:11:22:33:44:11, ethertype 802.1Q (0x8100), length 518: vlan 21, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) + 196.222.232.221 > 127.0.0.1: ip-proto-0 480 + 10:28:10.185916 00:11:22:33:44:22 > 02:00:00:00:00:03, ethertype IPv4 (0x0800), length 514: (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) + 196.222.232.221 > 127.0.0.1: ip-proto-0 480 Test case 08: vlan insertion when pvid enable @@ -834,73 +834,73 @@ Test case 08: vlan insertion when pvid enable 10. repeat step 3, check the dpdk can receive this pkt with VF2 and fwd this pkt with outer vlan header id 24 by VF1, and the vlan header ptype is 9100:: - testpmd> port 4/queue 0: received 1 packets - src=00:00:00:00:00:00 - dst=00:11:22:33:44:22 - type=0x0800 - length=514 - 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: PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN + testpmd> port 4/queue 0: received 1 packets + src=00:00:00:00:00:00 - dst=00:11:22:33:44:22 - type=0x0800 - length=514 - 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: PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN - port 4/queue 0: received 1 packets - src=00:00:00:00:00:00 - dst=00:11:22:33:44:22 - type=0x8100 - length=518 - nb_segs=1 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_NONFRAG - sw ptype: L2_ETHER_VLAN L3_IPV4 - l2_len=18 - l3_len=20 - Receive queue=0x0 - ol_flags: PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN + port 4/queue 0: received 1 packets + src=00:00:00:00:00:00 - dst=00:11:22:33:44:22 - type=0x8100 - length=518 - nb_segs=1 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_NONFRAG - sw ptype: L2_ETHER_VLAN L3_IPV4 - l2_len=18 - l3_len=20 - Receive queue=0x0 + ol_flags: PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN - tcpdump -i ens786f0 -nn -e -v - 11:12:13.237834 00:00:00:00:00:00 > 00:11:22:33:44:22, ethertype IPv4 (0x0800), length 514: (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) - 196.222.232.221 > 127.0.0.1: ip-proto-0 480 - 11:12:13.237890 00:11:22:33:44:11 > 02:00:00:00:00:02, ethertype 802.1Q-9100 (0x9100), length 518: vlan 24, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) - 196.222.232.221 > 127.0.0.1: ip-proto-0 480 + tcpdump -i ens786f0 -nn -e -v + 11:12:13.237834 00:00:00:00:00:00 > 00:11:22:33:44:22, ethertype IPv4 (0x0800), length 514: (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) + 196.222.232.221 > 127.0.0.1: ip-proto-0 480 + 11:12:13.237890 00:11:22:33:44:11 > 02:00:00:00:00:02, ethertype 802.1Q-9100 (0x9100), length 518: vlan 24, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) + 196.222.232.221 > 127.0.0.1: ip-proto-0 480 - 11:12:26.049869 00:00:00:00:00:00 > 00:11:22:33:44:22, ethertype 802.1Q (0x8100), length 518: vlan 1, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) - 196.222.232.221 > 127.0.0.1: ip-proto-0 480 - 11:12:26.049920 00:11:22:33:44:11 > 02:00:00:00:00:02, ethertype 802.1Q (0x8100), length 522: vlan 1, p 0, ethertype 802.1Q-9100, vlan 24, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) - 196.222.232.221 > 127.0.0.1: ip-proto-0 480 + 11:12:26.049869 00:00:00:00:00:00 > 00:11:22:33:44:22, ethertype 802.1Q (0x8100), length 518: vlan 1, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) + 196.222.232.221 > 127.0.0.1: ip-proto-0 480 + 11:12:26.049920 00:11:22:33:44:11 > 02:00:00:00:00:02, ethertype 802.1Q (0x8100), length 522: vlan 1, p 0, ethertype 802.1Q-9100, vlan 24, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) + 196.222.232.221 > 127.0.0.1: ip-proto-0 480 11. enable tx_vlan for VF1 by AVF:: - testpmd> port stop 2 - Stopping ports... - Checking link statuses... - Done - testpmd> tx_vlan set 2 11 - testpmd> port start 2 + testpmd> port stop 2 + Stopping ports... + Checking link statuses... + Done + testpmd> tx_vlan set 2 11 + testpmd> port start 2 12. repeat step 3, check the dpdk can receive this pkt with VF2 and fwd this pkt with outer vlan header id 24, inner vlan id 11 by VF1:: - testpmd> port 3/queue 0: received 1 packets - src=00:00:00:00:00:00 - dst=00:11:22:33:44:22 - type=0x0800 - length=514 - 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: PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN + testpmd> port 3/queue 0: received 1 packets + src=00:00:00:00:00:00 - dst=00:11:22:33:44:22 - type=0x0800 - length=514 - 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: PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN - port 3/queue 0: received 1 packets - src=00:00:00:00:00:00 - dst=00:11:22:33:44:22 - type=0x8100 - length=518 - nb_segs=1 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_NONFRAG - sw ptype: L2_ETHER_VLAN L3_IPV4 - l2_len=18 - l3_len=20 - Receive queue=0x0 - ol_flags: PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN + port 3/queue 0: received 1 packets + src=00:00:00:00:00:00 - dst=00:11:22:33:44:22 - type=0x8100 - length=518 - nb_segs=1 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_NONFRAG - sw ptype: L2_ETHER_VLAN L3_IPV4 - l2_len=18 - l3_len=20 - Receive queue=0x0 + ol_flags: PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN - 11:22:29.561918 00:00:00:00:00:00 > 00:11:22:33:44:22, ethertype IPv4 (0x0800), length 514: (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) - 196.222.232.221 > 127.0.0.1: ip-proto-0 480 - 11:22:29.561992 00:11:22:33:44:11 > 02:00:00:00:00:02, ethertype 802.1Q (0x8100), length 522: vlan 24, p 0, ethertype 802.1Q, vlan 11, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) - 196.222.232.221 > 127.0.0.1: ip-proto-0 480 + 11:22:29.561918 00:00:00:00:00:00 > 00:11:22:33:44:22, ethertype IPv4 (0x0800), length 514: (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) + 196.222.232.221 > 127.0.0.1: ip-proto-0 480 + 11:22:29.561992 00:11:22:33:44:11 > 02:00:00:00:00:02, ethertype 802.1Q (0x8100), length 522: vlan 24, p 0, ethertype 802.1Q, vlan 11, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) + 196.222.232.221 > 127.0.0.1: ip-proto-0 480 - 11:22:44.481889 00:00:00:00:00:00 > 00:11:22:33:44:22, ethertype 802.1Q (0x8100), length 518: vlan 1, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) - 196.222.232.221 > 127.0.0.1: ip-proto-0 480 - 11:22:44.481922 00:11:22:33:44:11 > 02:00:00:00:00:02, ethertype 802.1Q (0x8100), length 526: vlan 24, p 0, ethertype 802.1Q, vlan 11, p 0, ethertype 802.1Q, vlan 1, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) - 196.222.232.221 > 127.0.0.1: ip-proto-0 480 + 11:22:44.481889 00:00:00:00:00:00 > 00:11:22:33:44:22, ethertype 802.1Q (0x8100), length 518: vlan 1, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) + 196.222.232.221 > 127.0.0.1: ip-proto-0 480 + 11:22:44.481922 00:11:22:33:44:11 > 02:00:00:00:00:02, ethertype 802.1Q (0x8100), length 526: vlan 24, p 0, ethertype 802.1Q, vlan 11, p 0, ethertype 802.1Q, vlan 1, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) + 196.222.232.221 > 127.0.0.1: ip-proto-0 480 13. relaunch testpmd and execute step 11 then step 1, 2 and 3, check the dpdk can receive this pkt with VF2 and fwd this pkt with outer vlan header id 24, inner vlan id 11 by VF1:: - testpmd> port 3/queue 0: received 1 packets - src=00:00:00:00:00:00 - dst=00:11:22:33:44:22 - type=0x0800 - length=514 - 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: PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN + testpmd> port 3/queue 0: received 1 packets + src=00:00:00:00:00:00 - dst=00:11:22:33:44:22 - type=0x0800 - length=514 - 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: PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN - port 3/queue 0: received 1 packets - src=00:00:00:00:00:00 - dst=00:11:22:33:44:22 - type=0x8100 - length=518 - nb_segs=1 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_NONFRAG - sw ptype: L2_ETHER_VLAN L3_IPV4 - l2_len=18 - l3_len=20 - Receive queue=0x0 - ol_flags: PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN + port 3/queue 0: received 1 packets + src=00:00:00:00:00:00 - dst=00:11:22:33:44:22 - type=0x8100 - length=518 - nb_segs=1 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_NONFRAG - sw ptype: L2_ETHER_VLAN L3_IPV4 - l2_len=18 - l3_len=20 - Receive queue=0x0 + ol_flags: PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN - 11:22:29.561918 00:00:00:00:00:00 > 00:11:22:33:44:22, ethertype IPv4 (0x0800), length 514: (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) - 196.222.232.221 > 127.0.0.1: ip-proto-0 480 - 11:22:29.561992 00:11:22:33:44:11 > 02:00:00:00:00:02, ethertype 802.1Q (0x8100), length 522: vlan 24, p 0, ethertype 802.1Q, vlan 11, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) - 196.222.232.221 > 127.0.0.1: ip-proto-0 480 + 11:22:29.561918 00:00:00:00:00:00 > 00:11:22:33:44:22, ethertype IPv4 (0x0800), length 514: (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) + 196.222.232.221 > 127.0.0.1: ip-proto-0 480 + 11:22:29.561992 00:11:22:33:44:11 > 02:00:00:00:00:02, ethertype 802.1Q (0x8100), length 522: vlan 24, p 0, ethertype 802.1Q, vlan 11, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) + 196.222.232.221 > 127.0.0.1: ip-proto-0 480 - 11:22:44.481889 00:00:00:00:00:00 > 00:11:22:33:44:22, ethertype 802.1Q (0x8100), length 518: vlan 1, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) - 196.222.232.221 > 127.0.0.1: ip-proto-0 480 - 11:22:44.481922 00:11:22:33:44:11 > 02:00:00:00:00:02, ethertype 802.1Q (0x8100), length 526: vlan 24, p 0, ethertype 802.1Q, vlan 11, p 0, ethertype 802.1Q, vlan 1, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) - 196.222.232.221 > 127.0.0.1: ip-proto-0 480 + 11:22:44.481889 00:00:00:00:00:00 > 00:11:22:33:44:22, ethertype 802.1Q (0x8100), length 518: vlan 1, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) + 196.222.232.221 > 127.0.0.1: ip-proto-0 480 + 11:22:44.481922 00:11:22:33:44:11 > 02:00:00:00:00:02, ethertype 802.1Q (0x8100), length 526: vlan 24, p 0, ethertype 802.1Q, vlan 11, p 0, ethertype 802.1Q, vlan 1, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) + 196.222.232.221 > 127.0.0.1: ip-proto-0 480 Test case 09: vlan filter when pvid enable @@ -984,7 +984,7 @@ Test case 10: Enable/Disable IAVF VLAN filtering sendp([Ether(dst="00:11:22:33:44:11",type=0x8100)/Dot1Q(vlan=1,type=0x8100)/Dot1Q(vlan=2,type=0x0800)/IP(src="196.222.232.221")/("X"*480)], iface="ens786f0") sendp([Ether(dst="00:11:22:33:44:11",type=0x8100)/Dot1Q(vlan=1,type=0x0800)/IP(src="196.222.232.221")/("X"*480)], iface="ens786f0") -4. check the pkts can't be received in VF:: +4. check the pkts can't be received in VF. 5. add rx_vlan in VF:: @@ -1416,121 +1416,121 @@ Test case 14: AVF CRC strip and Vlan strip co-exists 10. check the vlan strip disable successfully:: - testpmd> show port info 0 - ********************* Infos for port 0 ********************* - MAC address: 00:11:22:33:44:11 - Device name: 0000:18:01.1 - Driver name: net_iavf - ...... - VLAN offload: - strip off, filter on, extend off, qinq strip off + testpmd> show port info 0 + ********************* Infos for port 0 ********************* + MAC address: 00:11:22:33:44:11 + Device name: 0000:18:01.1 + Driver name: net_iavf + ...... + VLAN offload: + strip off, filter on, extend off, qinq strip off 11. request disable crc strip:: - testpmd> stop - testpmd> port stop 0 - testpmd> port config 0 rx_offload keep_crc on - testpmd> port start 0 - testpmd> start + testpmd> stop + testpmd> port stop 0 + testpmd> port config 0 rx_offload keep_crc on + testpmd> port start 0 + testpmd> start 12. repeat step 5, send qinq pkts to check vlan strip is off, crc strip is off(rx+4):: - testpmd> port 0/queue 7: received 1 packets - src=00:00:00:00:00:00 - dst=00:11:22:33:44:11 - type=0x8100 - length=522 - nb_segs=1 - RSS hash=0xbc8b1857 - RSS queue=0x7 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_NONFRAG - sw ptype: L2_ETHER_VLAN INNER_L2_ETHER_VLAN INNER_L3_IPV4 - l2_len=18 - inner_l2_len=4 - inner_l3_len=20 - Tail/CRC: 0x58585858/0x6d870bf6 - Receive queue=0x7 - ol_flags: PKT_RX_RSS_HASH PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN + testpmd> port 0/queue 7: received 1 packets + src=00:00:00:00:00:00 - dst=00:11:22:33:44:11 - type=0x8100 - length=522 - nb_segs=1 - RSS hash=0xbc8b1857 - RSS queue=0x7 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_NONFRAG - sw ptype: L2_ETHER_VLAN INNER_L2_ETHER_VLAN INNER_L3_IPV4 - l2_len=18 - inner_l2_len=4 - inner_l3_len=20 - Tail/CRC: 0x58585858/0x6d870bf6 - Receive queue=0x7 + ol_flags: PKT_RX_RSS_HASH PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN - show port stats all - ######################## NIC statistics for port 0 ######################## - RX-packets: 1 RX-missed: 0 RX-bytes: 526 - RX-errors: 0 - RX-nombuf: 0 - TX-packets: 1 TX-errors: 0 TX-bytes: 522 + show port stats all + ######################## NIC statistics for port 0 ######################## + RX-packets: 1 RX-missed: 0 RX-bytes: 526 + RX-errors: 0 + RX-nombuf: 0 + TX-packets: 1 TX-errors: 0 TX-bytes: 522 - Throughput (since last show) - Rx-pps: 0 Rx-bps: 0 - Tx-pps: 0 Tx-bps: 0 - ############################################################################ + Throughput (since last show) + Rx-pps: 0 Rx-bps: 0 + Tx-pps: 0 Tx-bps: 0 + ############################################################################ - 10:23:57.350934 00:00:00:00:00:00 > 00:11:22:33:44:11, ethertype 802.1Q (0x8100), length 522: vlan 1, p 0, ethertype 802.1Q, vlan 2, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) - 196.222.232.221 > 127.0.0.1: ip-proto-0 480 - 10:23:57.351008 00:11:22:33:44:11 > 02:00:00:00:00:00, ethertype 802.1Q (0x8100), length 522: vlan 1, p 0, ethertype 802.1Q, vlan 2, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) - 196.222.232.221 > 127.0.0.1: ip-proto-0 480 + 10:23:57.350934 00:00:00:00:00:00 > 00:11:22:33:44:11, ethertype 802.1Q (0x8100), length 522: vlan 1, p 0, ethertype 802.1Q, vlan 2, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) + 196.222.232.221 > 127.0.0.1: ip-proto-0 480 + 10:23:57.351008 00:11:22:33:44:11 > 02:00:00:00:00:00, ethertype 802.1Q (0x8100), length 522: vlan 1, p 0, ethertype 802.1Q, vlan 2, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) + 196.222.232.221 > 127.0.0.1: ip-proto-0 480 13. request enable vlan strip:: - testpmd> vlan set strip on 0 - iavf_execute_vf_cmd(): No response or return failure (-64) for cmd 54 - iavf_config_vlan_strip_v2(): fail to execute command VIRTCHNL_OP_ENABLE_VLAN_STRIPPING_V2 - rx_vlan_strip_set(port_pi=0, on=1) failed diag=-5 + testpmd> vlan set strip on 0 + iavf_execute_vf_cmd(): No response or return failure (-64) for cmd 54 + iavf_config_vlan_strip_v2(): fail to execute command VIRTCHNL_OP_ENABLE_VLAN_STRIPPING_V2 + rx_vlan_strip_set(port_pi=0, on=1) failed diag=-5 14. repeat step 5, send qinq pkts to check the vlan strip can not enable:: - testpmd> port 0/queue 7: received 1 packets - src=00:00:00:00:00:00 - dst=00:11:22:33:44:11 - type=0x8100 - length=518 - nb_segs=1 - RSS hash=0xbc8b1857 - RSS queue=0x7 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_NONFRAG - sw ptype: L2_ETHER_VLAN L3_IPV4 - l2_len=18 - l3_len=20 - Tail/CRC: 0x58585858/0x6d870bf6 - Receive queue=0x7 - ol_flags: PKT_RX_RSS_HASH PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN + testpmd> port 0/queue 7: received 1 packets + src=00:00:00:00:00:00 - dst=00:11:22:33:44:11 - type=0x8100 - length=518 - nb_segs=1 - RSS hash=0xbc8b1857 - RSS queue=0x7 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_NONFRAG - sw ptype: L2_ETHER_VLAN L3_IPV4 - l2_len=18 - l3_len=20 - Tail/CRC: 0x58585858/0x6d870bf6 - Receive queue=0x7 + ol_flags: PKT_RX_RSS_HASH PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN - show port stats all - ######################## NIC statistics for port 0 ######################## - RX-packets: 1 RX-missed: 0 RX-bytes: 526 - RX-errors: 0 - RX-nombuf: 0 - TX-packets: 1 TX-errors: 0 TX-bytes: 522 + show port stats all + ######################## NIC statistics for port 0 ######################## + RX-packets: 1 RX-missed: 0 RX-bytes: 526 + RX-errors: 0 + RX-nombuf: 0 + TX-packets: 1 TX-errors: 0 TX-bytes: 522 - Throughput (since last show) - Rx-pps: 0 Rx-bps: 0 - Tx-pps: 0 Tx-bps: 0 - ############################################################################ + Throughput (since last show) + Rx-pps: 0 Rx-bps: 0 + Tx-pps: 0 Tx-bps: 0 + ############################################################################ - 10:26:08.346936 00:00:00:00:00:00 > 00:11:22:33:44:11, ethertype 802.1Q (0x8100), length 522: vlan 1, p 0, ethertype 802.1Q, vlan 2, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) - 196.222.232.221 > 127.0.0.1: ip-proto-0 480 - 10:26:08.347006 00:11:22:33:44:11 > 02:00:00:00:00:00, ethertype 802.1Q (0x8100), length 522: vlan 1, p 0, ethertype 802.1Q, vlan 2, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) - 196.222.232.221 > 127.0.0.1: ip-proto-0 480 + 10:26:08.346936 00:00:00:00:00:00 > 00:11:22:33:44:11, ethertype 802.1Q (0x8100), length 522: vlan 1, p 0, ethertype 802.1Q, vlan 2, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) + 196.222.232.221 > 127.0.0.1: ip-proto-0 480 + 10:26:08.347006 00:11:22:33:44:11 > 02:00:00:00:00:00, ethertype 802.1Q (0x8100), length 522: vlan 1, p 0, ethertype 802.1Q, vlan 2, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) + 196.222.232.221 > 127.0.0.1: ip-proto-0 480 15. request disable vlan strip:: - vlan set strip off 0 + vlan set strip off 0 16. check the vlan strip still disable:: - testpmd> show port info 0 - ********************* Infos for port 0 ********************* - MAC address: 00:11:22:33:44:11 - Device name: 0000:18:01.1 - Driver name: net_iavf - ...... - VLAN offload: - strip off, filter on, extend off, qinq strip off + testpmd> show port info 0 + ********************* Infos for port 0 ********************* + MAC address: 00:11:22:33:44:11 + Device name: 0000:18:01.1 + Driver name: net_iavf + ...... + VLAN offload: + strip off, filter on, extend off, qinq strip off 17. request enable crc strip:: - testpmd> stop - testpmd> port stop 0 - testpmd> port config 0 rx_offload keep_crc off - testpmd> port start 0 - testpmd> start + testpmd> stop + testpmd> port stop 0 + testpmd> port config 0 rx_offload keep_crc off + testpmd> port start 0 + testpmd> start 18. repeat step 5, send qinq pkts to check the crc strip enable successfully:: - testpmd> port 0/queue 3: received 1 packets - src=00:00:00:00:00:00 - dst=00:11:22:33:44:11 - type=0x8100 - length=522 - nb_segs=1 - RSS hash=0x2b4ad203 - RSS queue=0x3 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_NONFRAG - sw ptype: L2_ETHER_VLAN INNER_L2_ETHER_VLAN INNER_L3_IPV4 - l2_len=18 - inner_l2_len=4 - inner_l3_len=20 - Receive queue=0x3 - ol_flags: PKT_RX_RSS_HASH PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN - port 0/queue 3: sent 1 packets - src=00:11:22:33:44:11 - dst=02:00:00:00:00:00 - type=0x8100 - length=522 - nb_segs=1 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_NONFRAG - sw ptype: L2_ETHER_VLAN INNER_L2_ETHER_VLAN INNER_L3_IPV4 - l2_len=18 - inner_l2_len=4 - inner_l3_len=20 - Send queue=0x3 - ol_flags: PKT_RX_L4_CKSUM_UNKNOWN PKT_RX_IP_CKSUM_UNKNOWN PKT_RX_OUTER_L4_CKSUM_UNKNOWN - - show port stats all - ######################## NIC statistics for port 0 ######################## - RX-packets: 1 RX-missed: 0 RX-bytes: 522 - RX-errors: 0 - RX-nombuf: 0 - TX-packets: 1 TX-errors: 0 TX-bytes: 522 - - Throughput (since last show) - Rx-pps: 0 Rx-bps: 0 - Tx-pps: 0 Tx-bps: 0 - ############################################################################ - - 10:29:19.995352 00:00:00:00:00:00 > 00:11:22:33:44:11, ethertype 802.1Q (0x8100), length 522: vlan 1, p 0, ethertype 802.1Q, vlan 2, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) - 196.222.232.221 > 127.0.0.1: ip-proto-0 480 - 10:29:19.995424 00:11:22:33:44:11 > 02:00:00:00:00:00, ethertype 802.1Q (0x8100), length 522: vlan 1, p 0, ethertype 802.1Q, vlan 2, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) - 196.222.232.221 > 127.0.0.1: ip-proto-0 480 \ No newline at end of file + testpmd> port 0/queue 3: received 1 packets + src=00:00:00:00:00:00 - dst=00:11:22:33:44:11 - type=0x8100 - length=522 - nb_segs=1 - RSS hash=0x2b4ad203 - RSS queue=0x3 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_NONFRAG - sw ptype: L2_ETHER_VLAN INNER_L2_ETHER_VLAN INNER_L3_IPV4 - l2_len=18 - inner_l2_len=4 - inner_l3_len=20 - Receive queue=0x3 + ol_flags: PKT_RX_RSS_HASH PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN + port 0/queue 3: sent 1 packets + src=00:11:22:33:44:11 - dst=02:00:00:00:00:00 - type=0x8100 - length=522 - nb_segs=1 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_NONFRAG - sw ptype: L2_ETHER_VLAN INNER_L2_ETHER_VLAN INNER_L3_IPV4 - l2_len=18 - inner_l2_len=4 - inner_l3_len=20 - Send queue=0x3 + ol_flags: PKT_RX_L4_CKSUM_UNKNOWN PKT_RX_IP_CKSUM_UNKNOWN PKT_RX_OUTER_L4_CKSUM_UNKNOWN + + show port stats all + ######################## NIC statistics for port 0 ######################## + RX-packets: 1 RX-missed: 0 RX-bytes: 522 + RX-errors: 0 + RX-nombuf: 0 + TX-packets: 1 TX-errors: 0 TX-bytes: 522 + + Throughput (since last show) + Rx-pps: 0 Rx-bps: 0 + Tx-pps: 0 Tx-bps: 0 + ############################################################################ + + 10:29:19.995352 00:00:00:00:00:00 > 00:11:22:33:44:11, ethertype 802.1Q (0x8100), length 522: vlan 1, p 0, ethertype 802.1Q, vlan 2, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) + 196.222.232.221 > 127.0.0.1: ip-proto-0 480 + 10:29:19.995424 00:11:22:33:44:11 > 02:00:00:00:00:00, ethertype 802.1Q (0x8100), length 522: vlan 1, p 0, ethertype 802.1Q, vlan 2, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) + 196.222.232.221 > 127.0.0.1: ip-proto-0 480 \ No newline at end of file diff --git a/test_plans/iavf_fdir_test_plan.rst b/test_plans/iavf_fdir_test_plan.rst index c4b134ce..1fd7b61b 100644 --- a/test_plans/iavf_fdir_test_plan.rst +++ b/test_plans/iavf_fdir_test_plan.rst @@ -40,6 +40,9 @@ Enable fdir filter for GTP (comm #1 package) Enable fdir filter for L2 Ethertype (comm #1 package) Enable fdir filter for PFCP (comm #1 package) +Description +=========== + Pattern and input set --------------------- @@ -4555,6 +4558,7 @@ subcase 3: PFCP FDIR vlan insert on Test case: without input set test ================================= + Support ipv4 and ipv6 tcp/udp flow director rule without input set. The packets are for testing without input set cases. @@ -4625,12 +4629,12 @@ Subcase 1: MAC_IPV4_TCP queue index 3. verify rules can be listed and destroyed:: - testpmd> flow list 0 + testpmd> flow list 0 check the rule listed. destroy the rule:: - testpmd> flow destroy 0 rule 0 + testpmd> flow destroy 0 rule 0 4. verify matched packets are distributed to all queues. check there is no rule listed. @@ -4732,7 +4736,7 @@ Subcase 1: MAC_IPV6_TCP queue index check the rule listed. destroy the rule:: - testpmd> flow destroy 0 rule 0 + testpmd> flow destroy 0 rule 0 4. verify matched packets are distributed to all queues. check there is no rule listed. diff --git a/test_plans/iavf_flexible_descriptor_test_plan.rst b/test_plans/iavf_flexible_descriptor_test_plan.rst index c30b7380..ae28865d 100644 --- a/test_plans/iavf_flexible_descriptor_test_plan.rst +++ b/test_plans/iavf_flexible_descriptor_test_plan.rst @@ -74,70 +74,69 @@ The default DPDK don't support dump flexible descriptor fields, so need to patch 1. Patch testpmd for dumping flexible fields from RXD:: - diff --git a/app/test-pmd/meson.build b/app/test-pmd/meson.build - index 7e9c7bdd6..b75b90a9c 100644 - --- a/app/test-pmd/meson.build - +++ b/app/test-pmd/meson.build - @@ -49,6 +49,9 @@ endif - if dpdk_conf.has('RTE_NET_I40E') - deps += 'net_i40e' - endif - +if dpdk_conf.has('RTE_NET_ICE') - + deps += ['net_ice', 'net_iavf'] - +endif - if dpdk_conf.has('RTE_NET_IXGBE') - deps += 'net_ixgbe' - endif - - diff --git a/app/test-pmd/util.c b/app/test-pmd/util.c - index a9e431a8b..3447a9b43 100644 - --- a/app/test-pmd/util.c - +++ b/app/test-pmd/util.c - @@ -12,6 +12,7 @@ - #include - #include - #include - +#include - - #include "testpmd.h" - - @@ -151,6 +152,7 @@ dump_pkt_burst(uint16_t port_id, uint16_t queue, struct rte_mbuf *pkts[], - eth_type, (unsigned int) mb->pkt_len, - (int)mb->nb_segs); - ol_flags = mb->ol_flags; - + rte_pmd_ifd_dump_proto_xtr_metadata(mb); - if (ol_flags & PKT_RX_RSS_HASH) { - MKDUMPSTR(print_buf, buf_size, cur_len, - " - RSS hash=0x%x", + diff --git a/app/test-pmd/meson.build b/app/test-pmd/meson.build + index 7e9c7bdd6..b75b90a9c 100644 + --- a/app/test-pmd/meson.build + +++ b/app/test-pmd/meson.build + @@ -49,6 +49,9 @@ endif + if dpdk_conf.has('RTE_NET_I40E') + deps += 'net_i40e' + endif + +if dpdk_conf.has('RTE_NET_ICE') + + deps += ['net_ice', 'net_iavf'] + +endif + if dpdk_conf.has('RTE_NET_IXGBE') + deps += 'net_ixgbe' + endif + + diff --git a/app/test-pmd/util.c b/app/test-pmd/util.c + index a9e431a8b..3447a9b43 100644 + --- a/app/test-pmd/util.c + +++ b/app/test-pmd/util.c + @@ -12,6 +12,7 @@ + #include + #include + #include + +#include + + #include "testpmd.h" + + @@ -151,6 +152,7 @@ dump_pkt_burst(uint16_t port_id, uint16_t queue, struct rte_mbuf *pkts[], + eth_type, (unsigned int) mb->pkt_len, + (int)mb->nb_segs); + ol_flags = mb->ol_flags; + + rte_pmd_ifd_dump_proto_xtr_metadata(mb); + if (ol_flags & PKT_RX_RSS_HASH) { + MKDUMPSTR(print_buf, buf_size, cur_len, + " - RSS hash=0x%x", 2. Compile DPDK and testpmd:: - CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib x86_64-native-linuxapp-gcc - ninja -C x86_64-native-linuxapp-gcc -j 70 + CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib x86_64-native-linuxapp-gcc + ninja -C x86_64-native-linuxapp-gcc -j 70 5. Generate 1 VF on each PF and set mac address for each VF:: - echo 1 > /sys/bus/pci/devices/0000:af:00.0/sriov_numvfs - ip link set ens802f0 vf 0 mac 00:11:22:33:44:55 + echo 1 > /sys/bus/pci/devices/0000:af:00.0/sriov_numvfs + ip link set ens802f0 vf 0 mac 00:11:22:33:44:55 6. Bind the vf interface to vfio-pci driver:: - ./usertools/dpdk-devbind.py -b vfio-pci af:01.0 + ./usertools/dpdk-devbind.py -b vfio-pci af:01.0 VLAN cases ========== 1. Launch testpmd by:: - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-9 -n 4 -w af:01.0,proto_xtr=vlan -- -i --rxq=4 --txq=4 --portmask=0x1 --nb-cores=2 - - testpmd>set verbose 1 - testpmd>set fwd io - testpmd>start + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-9 -n 4 -w af:01.0,proto_xtr=vlan -- -i --rxq=4 --txq=4 --portmask=0x1 --nb-cores=2 + testpmd>set verbose 1 + testpmd>set fwd io + testpmd>start 2. check RXDID value correct:: - expected: RXDID[17] + expected: RXDID[17] .. note:: Please change the core setting (-l option) and port's PCI (-w option) by your DUT environment diff --git a/test_plans/index.rst b/test_plans/index.rst index 1a3f8383..2be687a9 100644 --- a/test_plans/index.rst +++ b/test_plans/index.rst @@ -51,8 +51,11 @@ The following are the test plans for the DPDK DTS automated test system. cvl_dcf_acl_filter_test_plan cvl_dcf_date_path_test_plan cvl_dcf_switch_filter_test_plan + cvl_ecpri_test_plan cvl_fdir_test_plan + cvl_iavf_rss_configure_test_plan cvl_limit_value_test_test_plan + cvl_qinq_test_plan cvl_rss_configure_test_plan cvl_switch_filter_test_plan cvl_vf_support_multicast_address_test_plan @@ -84,6 +87,7 @@ The following are the test plans for the DPDK DTS automated test system. hotplug_mp_test_plan hotplug_test_plan iavf_fdir_test_plan + iavf_flexible_descriptor_test_plan iavf_package_driver_error_handle_test_plan ieee1588_test_plan inline_ipsec_test_plan @@ -119,6 +123,7 @@ The following are the test plans for the DPDK DTS automated test system. perf_virtio_user_loopback_test_plan perf_virtio_user_pvp_test_plan perf_vm2vm_virtio_net_perf_test_plan + pf_smoke_test pipeline_test_plan pvp_virtio_user_multi_queues_port_restart_test_plan pmd_bonded_8023ad_test_plan @@ -176,7 +181,6 @@ The following are the test plans for the DPDK DTS automated test system. multicast_test_plan ethtool_stats_test_plan metrics_test_plan.rst - veb_switch_test_plan vf_daemon_test_plan vf_interrupt_pmd_test_plan @@ -189,6 +193,7 @@ The following are the test plans for the DPDK DTS automated test system. vf_port_start_stop_test_plan vf_rss_test_plan vf_single_core_perf_test_plan + vf_smoke_test vf_to_vf_nic_bridge_test_plan vf_vlan_test_plan kernelpf_iavf_test_plan diff --git a/test_plans/vm2vm_virtio_net_perf_test_plan.rst b/test_plans/vm2vm_virtio_net_perf_test_plan.rst index 4085351a..6902bf55 100644 --- a/test_plans/vm2vm_virtio_net_perf_test_plan.rst +++ b/test_plans/vm2vm_virtio_net_perf_test_plan.rst @@ -343,11 +343,11 @@ Test Case 5: VM2VM virtio-net split ring mergeable 8 queues CBDMA enable test wi 11. On VM1, set virtio device:: - ethtool -L ens5 combined 1 + ethtool -L ens5 combined 1 12. On VM2, set virtio device:: - ethtool -L ens5 combined 1 + ethtool -L ens5 combined 1 13. Scp 1MB file form VM1 to VM2M, check packets can be forwarding success by scp:: @@ -436,11 +436,11 @@ Test Case 6: VM2VM virtio-net split ring non-mergeable 8 queues CBDMA enable tes 11. On VM1, set virtio device:: - ethtool -L ens5 combined 1 + ethtool -L ens5 combined 1 12. On VM2, set virtio device:: - ethtool -L ens5 combined 1 + ethtool -L ens5 combined 1 13. Scp 1MB file form VM1 to VM2M, check packets can be forwarding success by scp:: @@ -744,11 +744,11 @@ Test Case 11: VM2VM virtio-net packed ring mergeable 8 queues CBDMA enable test 11. On VM1, set virtio device:: - ethtool -L ens5 combined 1 + ethtool -L ens5 combined 1 12. On VM2, set virtio device:: - ethtool -L ens5 combined 1 + ethtool -L ens5 combined 1 13. Scp 1MB file form VM1 to VM2M, check packets can be forwarding success by scp:: @@ -837,11 +837,11 @@ Test Case 12: VM2VM virtio-net packed ring non-mergeable 8 queues CBDMA enable t 11. On VM1, set virtio device:: - ethtool -L ens5 combined 1 + ethtool -L ens5 combined 1 12. On VM2, set virtio device:: - ethtool -L ens5 combined 1 + ethtool -L ens5 combined 1 13. Scp 1MB file form VM1 to VM2M, check packets can be forwarding success by scp:: diff --git a/test_plans/vm2vm_virtio_user_test_plan.rst b/test_plans/vm2vm_virtio_user_test_plan.rst index e198577b..a96c7110 100644 --- a/test_plans/vm2vm_virtio_user_test_plan.rst +++ b/test_plans/vm2vm_virtio_user_test_plan.rst @@ -964,7 +964,7 @@ Test Case 14: packed virtqueue vm2vm inorder mergeable path multi-queues payload 7. Start vhost testpmd, then quit pdump and all testpmd, check 512 packets received by virtio-user1, check 54 packets with 8k length and 458 packets with 2k length in pdump-virtio-rx.pcap. Test Case 15: packed virtqueue vm2vm mergeable path multi-queues payload check with cbdma enabled -================================================================================================ +================================================================================================= 1. Launch vhost by below command:: -- 2.17.1