From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id EACEAA0519; Tue, 23 Jun 2020 04:32:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E34811D59A; Tue, 23 Jun 2020 04:32:55 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id A528D1D583 for ; Tue, 23 Jun 2020 04:32:53 +0200 (CEST) IronPort-SDR: 3izprYgrauRzSKZxGe+C84dutivX4gQMS36a6R+Api0JkE0R0CMBJ9CwaAD2ch0sCr/OKSVO9c d8Fs9h9IZkXg== X-IronPort-AV: E=McAfee;i="6000,8403,9660"; a="141437404" X-IronPort-AV: E=Sophos;i="5.75,269,1589266800"; d="scan'208";a="141437404" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2020 19:32:53 -0700 IronPort-SDR: L4h8t1X5ymRKNgOeyPu7bEKCy4vh/wh8G4uLSl498er0ajWBkIrw0gOFsLDrB4VdlmU3rLzQv+ LxVV7ld1BCuA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,269,1589266800"; d="scan'208";a="311131259" Received: from unknown (HELO dpdk-zhaohy-t.localdomain) ([10.240.183.68]) by fmsmga002.fm.intel.com with ESMTP; 22 Jun 2020 19:32:52 -0700 From: Haiyang Zhao To: dts@dpdk.org Cc: Haiyang Zhao Date: Tue, 23 Jun 2020 10:21:34 +0800 Message-Id: <1592878901-216102-8-git-send-email-haiyangx.zhao@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1592878901-216102-1-git-send-email-haiyangx.zhao@intel.com> References: <1592878901-216102-1-git-send-email-haiyangx.zhao@intel.com> Subject: [dts] [PATCH V1 07/14] test_plans/l2tp_esp_coverage: fix build warnings and errors X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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 --- test_plans/l2tp_esp_coverage_test_plan.rst | 70 +++++++++++++++--------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/test_plans/l2tp_esp_coverage_test_plan.rst b/test_plans/l2tp_esp_coverage_test_plan.rst index 2e04c0e..4998f0f 100644 --- a/test_plans/l2tp_esp_coverage_test_plan.rst +++ b/test_plans/l2tp_esp_coverage_test_plan.rst @@ -236,7 +236,7 @@ Test Case 2: test MAC_IPV4_ESP HW checksum offload Test Case 3: test MAC_IPV4_AH HW checksum offload ================================================= -1. DUT enable rx checksum with "--enable-rx-cksum" when start testpmd, setup csum forwarding mode:: +1. DUT enable rx checksum with "--enable-rx-cksum" when start testpmd, setup csum forwarding mode: 2. DUT setup csum forwarding mode:: @@ -309,7 +309,7 @@ Test Case 3: test MAC_IPV4_AH HW checksum offload Test Case 4: test MAC_IPV4_NAT-T-ESP HW checksum offload ======================================================== -1. DUT enable rx checksum with "--enable-rx-cksum" when start testpmd, setup csum forwarding mode:: +1. DUT enable rx checksum with "--enable-rx-cksum" when start testpmd, setup csum forwarding mode: 2. DUT setup csum forwarding mode:: @@ -414,34 +414,34 @@ Test Case 4: test MAC_IPV4_NAT-T-ESP HW checksum offload 10. DUT check the packets are correctly received by DUT and report the checksum error:: - testpmd> port 0/queue 0: received 1 packets - src=00:00:00:00:00:00 - dst=00:11:22:33:44:55 - type=0x0800 - length=530 - nb_segs=1 - RSS hash=0x0 - RSS queue=0x0 - sw ptype: L2_ETHER L3_IPV4 L4_UDP - l2_len=14 - l3_len=20 - l4_len=8 - Receive queue=0x0 - ol_flags: PKT_RX_RSS_HASH PKT_RX_L4_CKSUM_BAD PKT_RX_IP_CKSUM_BAD PKT_RX_OUTER_L4_CKSUM_UNKNOWN - ----------------- - port=0, mbuf=0x22848a0ac0, pkt_len=530, nb_segs=1: - rx: l2_len=14 ethertype=800 l3_len=20 l4_proto=17 l4_len=8 flags=PKT_RX_RSS_HASH PKT_RX_L4_CKSUM_BAD PKT_RX_IP_CKSUM_BAD PKT_RX_OUTER_L4_CKSUM_UNKNOWN - tx: m->l2_len=14 m->l3_len=20 m->l4_len=8 - tx: flags=PKT_TX_IP_CKSUM PKT_TX_L4_NO_CKSUM PKT_TX_IPV4 - stop - Telling cores to stop... - Waiting for lcores to finish... - - ---------------------- Forward statistics for port 0 ---------------------- - RX-packets: 1 RX-dropped: 0 RX-total: 1 - Bad-ipcsum: 1 Bad-l4csum: 1 Bad-outer-l4csum: 0 - TX-packets: 1 TX-dropped: 0 TX-total: 1 - ---------------------------------------------------------------------------- - - +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++ - RX-packets: 1 RX-dropped: 0 RX-total: 1 - TX-packets: 1 TX-dropped: 0 TX-total: 1 - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + testpmd> port 0/queue 0: received 1 packets + src=00:00:00:00:00:00 - dst=00:11:22:33:44:55 - type=0x0800 - length=530 - nb_segs=1 - RSS hash=0x0 - RSS queue=0x0 - sw ptype: L2_ETHER L3_IPV4 L4_UDP - l2_len=14 - l3_len=20 - l4_len=8 - Receive queue=0x0 + ol_flags: PKT_RX_RSS_HASH PKT_RX_L4_CKSUM_BAD PKT_RX_IP_CKSUM_BAD PKT_RX_OUTER_L4_CKSUM_UNKNOWN + ----------------- + port=0, mbuf=0x22848a0ac0, pkt_len=530, nb_segs=1: + rx: l2_len=14 ethertype=800 l3_len=20 l4_proto=17 l4_len=8 flags=PKT_RX_RSS_HASH PKT_RX_L4_CKSUM_BAD PKT_RX_IP_CKSUM_BAD PKT_RX_OUTER_L4_CKSUM_UNKNOWN + tx: m->l2_len=14 m->l3_len=20 m->l4_len=8 + tx: flags=PKT_TX_IP_CKSUM PKT_TX_L4_NO_CKSUM PKT_TX_IPV4 + stop + Telling cores to stop... + Waiting for lcores to finish... + + ---------------------- Forward statistics for port 0 ---------------------- + RX-packets: 1 RX-dropped: 0 RX-total: 1 + Bad-ipcsum: 1 Bad-l4csum: 1 Bad-outer-l4csum: 0 + TX-packets: 1 TX-dropped: 0 TX-total: 1 + ---------------------------------------------------------------------------- + + +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++ + RX-packets: 1 RX-dropped: 0 RX-total: 1 + TX-packets: 1 TX-dropped: 0 TX-total: 1 + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Test Case 5: test MAC_IPV6_NAT-T-ESP HW checksum offload ======================================================== -1. DUT enable rx checksum with "--enable-rx-cksum" when start testpmd, setup csum forwarding mode:: +1. DUT enable rx checksum with "--enable-rx-cksum" when start testpmd, setup csum forwarding mode: 2. DUT setup csum forwarding mode:: @@ -713,7 +713,7 @@ subcase 1: vlan stripping sendp([Ether(dst="00:11:22:33:44:55")/Dot1Q(vlan=2)/IP(proto=50)/ESP(spi=1)/Raw('x'*480)], iface="enp134s0f0") -6. DUT check the pkt is not recieved:: +6. DUT check the pkt is not recieved: 7. DUT disable the vlan header stripping with vlan tag identifier 1:: @@ -781,7 +781,7 @@ subcase 1: vlan stripping sendp([Ether(dst="00:11:22:33:44:55")/Dot1Q(vlan=2)/IPv6(nh=50)/ESP(spi=1)/Raw('x'*480)], iface="enp134s0f0") -6. DUT check the pkt is not recieved:: +6. DUT check the pkt is not recieved: 7. DUT disable the vlan header stripping with vlan tag identifier 1:: @@ -848,7 +848,7 @@ subcase 1: vlan stripping sendp([Ether(dst="00:11:22:33:44:55")/Dot1Q(vlan=2)/IP(proto=51)/AH(spi=1)/Raw('x'*480)], iface="enp134s0f0") -6. DUT check the pkt is not recieved:: +6. DUT check the pkt is not recieved: 7. DUT disable the vlan header stripping with vlan tag identifier 1:: @@ -917,7 +917,7 @@ subcase 1: vlan stripping sendp([Ether(dst="00:11:22:33:44:55")/Dot1Q(vlan=2)/IPv6(nh=51)/AH(spi=1)/Raw('x'*480)], iface="enp134s0f0") -6. DUT check the pkt is not recieved:: +6. DUT check the pkt is not recieved: 7. DUT disable the vlan header stripping with vlan tag identifier 1:: @@ -985,7 +985,7 @@ subcase 1: vlan stripping sendp([Ether(dst="00:11:22:33:44:55")/Dot1Q(vlan=2)/IP()/UDP(dport=4500)/ESP(spi=1)/Raw('x'*480)], iface="enp134s0f0") -6. DUT check the pkt is not recieved:: +6. DUT check the pkt is not recieved: 7. DUT disable the vlan header stripping with vlan tag identifier 1:: @@ -1053,7 +1053,7 @@ subcase 1: vlan stripping sendp([Ether(dst="00:11:22:33:44:55")/Dot1Q(vlan=2)/IPv6()/UDP(dport=4500)/ESP(spi=1)/Raw('x'*480)], iface="enp134s0f0") -6. DUT check the pkt is not recieved:: +6. DUT check the pkt is not recieved: 7. DUT disable the vlan header stripping with vlan tag identifier 1:: @@ -1169,7 +1169,7 @@ The pre-steps are as l2tp_esp_iavf_test_plan. 10. Tester send matched packets with VLAN tag "1" and incorrect checksum:: - sendp([Ether(dst="00:11:22:33:44:55")/Dot1Q(vlan=1)/IP(proto=115,chksum=0x123)/L2TP('\x00\x00\x00\x01')/Raw('x'*480)], iface="enp134s0f0") + sendp([Ether(dst="00:11:22:33:44:55")/Dot1Q(vlan=1)/IP(proto=115,chksum=0x123)/L2TP('\x00\x00\x00\x01')/Raw('x'*480)], iface="enp134s0f0") 11.DUT check the packets are not distributed to expected queue without mark id and and without VLAN tag "1", and report the checksum error:: @@ -1261,7 +1261,7 @@ Test Case 15: MAC_IPV4_L2TPv3 vlan insert on + SW checksum offload check 10. Tester send matched packets with incorrect checksum:: - sendp([Ether(dst="00:11:22:33:44:55")/IP(proto=115,chksum=0x123)/L2TP('\x00\x00\x00\x02')/Raw('x'*480)], iface="enp134s0f0") + sendp([Ether(dst="00:11:22:33:44:55")/IP(proto=115,chksum=0x123)/L2TP('\x00\x00\x00\x02')/Raw('x'*480)], iface="enp134s0f0") 11.DUT check the packets are not distributed to expected queue without mark id and report the checksum error:: @@ -1352,7 +1352,7 @@ The pre-steps are as l2tp_esp_iavf_test_plan. 10. Tester send matched packets with VLAN tag "1" and incorrect checksum:: - sendp([Ether(dst="00:11:22:33:44:55")/Dot1Q(vlan=1)/IP(proto=50,chksum=0x123)/ESP(spi=1)/Raw('x'*480)], iface="enp134s0f0") + sendp([Ether(dst="00:11:22:33:44:55")/Dot1Q(vlan=1)/IP(proto=50,chksum=0x123)/ESP(spi=1)/Raw('x'*480)], iface="enp134s0f0") 11.DUT check the packets are not distributed to expected queue without mark id and and fwd without VLAN tag "1", and report the checksum error:: @@ -1444,7 +1444,7 @@ Test Case 17: MAC_IPV6_NAT-T-ESP vlan insert on + SW checksum offload check 10. Tester send matched packets with incorrect checksum:: - sendp([Ether(dst="00:11:22:33:44:55")/IP(chksum=0x123)/UDP(dport=4500)/ESP(spi=1)/Raw('x'*480)], iface="enp134s0f0") + sendp([Ether(dst="00:11:22:33:44:55")/IP(chksum=0x123)/UDP(dport=4500)/ESP(spi=1)/Raw('x'*480)], iface="enp134s0f0") 11.DUT check the packets are not distributed to expected queue without mark id and report the checksum error:: -- 1.8.3.1