From patchwork Fri Oct 7 11:53:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 117552 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 7E215A0540; Fri, 7 Oct 2022 13:53:17 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D2B1542B81; Fri, 7 Oct 2022 13:53:16 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 3C12B400D5 for ; Fri, 7 Oct 2022 13:53:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665143596; x=1696679596; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=x/PHbrr99X0OrNTrv843BP+/lSpDJdxN1Lawgt6s85E=; b=bgyJCeKWx2PbW8KLyz1/Krsp8p8fdF0UAQbcRgCvjLvDLrjJZq4loKdS sV1DP8cGoWXnUzQ0zng4AkXLHGz/FHRTBBoXUGFh0S2Ym6cNj+IfnQorg Ka8w4LjrLL4+pFOR1GGsgiFZA1gQJAjn/Zr4cGVfc4j3lMFNIJ8KK91IF colK27woVZoxAwy0pIZVw8trwp9vbaq9osl/4To/vKc0uC4g4bdXpmWXK FzUSt9PB8ctAbHA/irrzBhooC0iXob5etjaK+009jFkA96JZVpLuwuBDk eT/5z9jsRI5iZT17vQxaPfC6kQRX6waR0OfzZW11DqR71kSE9l+3+G4ZY g==; X-IronPort-AV: E=McAfee;i="6500,9779,10492"; a="304716863" X-IronPort-AV: E=Sophos;i="5.95,166,1661842800"; d="scan'208";a="304716863" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2022 04:53:15 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10492"; a="714249981" X-IronPort-AV: E=Sophos;i="5.95,166,1661842800"; d="scan'208";a="714249981" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2022 04:53:14 -0700 From: Weiyuan Li To: dts@dpdk.org Cc: Weiyuan Li Subject: [dts][PATCH V1 4/8] test_plans/vlan_ethertype_config: modify script and test plan to support i40e fimware > 8.3 Date: Fri, 7 Oct 2022 19:53:29 +0800 Message-Id: <20221007115333.29277-4-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20221007115333.29277-1-weiyuanx.li@intel.com> References: <20221007115333.29277-1-weiyuanx.li@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 Modify script and test plan to i40e support fimware > 8.3. When the fimrware > 8.3, if the filter is to take effect need to enable extend. Signed-off-by: Weiyuan Li --- .../vlan_ethertype_config_test_plan.rst | 28 ++++++++++++------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/test_plans/vlan_ethertype_config_test_plan.rst b/test_plans/vlan_ethertype_config_test_plan.rst index 80a6ee28..baf65208 100644 --- a/test_plans/vlan_ethertype_config_test_plan.rst +++ b/test_plans/vlan_ethertype_config_test_plan.rst @@ -52,18 +52,22 @@ Test Case 2: test VLAN filtering on/off testpmd> vlan set filter on 0 testpmd> start -2. Send 1 packet with VLAN TPID 0xA100 and VLAN Tag 16 on port ``A``, +2. if driver i40e enable extend:: + + testpmd> vlan set extend on 0 + +3. Send 1 packet with VLAN TPID 0xA100 and VLAN Tag 16 on port ``A``, Verify that the VLAN packet cannot be received in port ``B``. -3. Disable vlan filtering on port ``0``:: +4. Disable vlan filtering on port ``0``:: testpmd> vlan set filter off 0 -4. Change VLAN TPIDs to 0xA100 on port ``0``:: +5. Change VLAN TPIDs to 0xA100 on port ``0``:: testpmd> vlan set outer tpid 0xA100 0 -5. Send 1 packet with VLAN TPID 0xA100 and VLAN Tag 16 on port ``A``, +6. Send 1 packet with VLAN TPID 0xA100 and VLAN Tag 16 on port ``A``, Verify that the VLAN packet can be received in port ``B`` and TPID is 0xA100 Test Case 3: test adding VLAN Tag Identifier with changing VLAN TPID @@ -77,25 +81,29 @@ Test Case 3: test adding VLAN Tag Identifier with changing VLAN TPID testpmd> vlan set strip off 0 testpmd> start -2. Add a VLAN Tag Identifier ``16`` on port ``0``:: +2. if driver i40e enable extend:: + + testpmd> vlan set extend on 0 + +3. Add a VLAN Tag Identifier ``16`` on port ``0``:: testpmd> rx_vlan add 16 0 -3. Send 1 packet with the VLAN Tag 16 on port ``A``, +4. Send 1 packet with the VLAN Tag 16 on port ``A``, Verify that the VLAN packet can be received in port ``B`` and TPID is 0x8100 -4. Change VLAN TPID to 0xA100 on port ``0``:: +5. Change VLAN TPID to 0xA100 on port ``0``:: testpmd> vlan set outer tpid 0xA100 0 -5. Send 1 packet with VLAN TPID 0xA100 and VLAN Tag 16 on port ``A``, +6. Send 1 packet with VLAN TPID 0xA100 and VLAN Tag 16 on port ``A``, Verify that the VLAN packet can be received in port ``B`` and TPID is 0xA100 -6. Remove the VLAN Tag Identifier ``16`` on port ``0``:: +7. Remove the VLAN Tag Identifier ``16`` on port ``0``:: testpmd> rx_vlan rm 16 0 -7. Send 1 packet with VLAN TPID 0xA100 and VLAN Tag 16 on port ``A``, +8. Send 1 packet with VLAN TPID 0xA100 and VLAN Tag 16 on port ``A``, Verify that the VLAN packet cannot be received in port ``B``. Test Case 4: test VLAN header stripping with changing VLAN TPID