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 E4E0DA0581; Tue, 22 Nov 2022 09:22:29 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BF18A42D62; Tue, 22 Nov 2022 09:22:29 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 793D842D59 for ; Tue, 22 Nov 2022 09:22:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669105348; x=1700641348; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hctbHjzERarHtbyw8r2Dzao0zjHwatJSQQ2xkMRLitM=; b=eWSqygOjbVi/uJOy7RG3HOeiRti3oBHb4WgZjmdxROrzpo9FWQM0TlzH RhO9YS06+goId2W190y0KOIu6zUHQm0qt9l2hSksEf2cLJULLbOkYNVbM 8gksn69qe+W+nwce7V3GzsFpwWdD4GG6qTA3C9Wp3YdTbAYtkqgorr5E7 ZJbnx3yKqZxi70A/xVItr9wUrTQNtZHe3vdxnVm46vLkk4DehB9rHy2aD ZRHgLdGhcmDXTCQpUmtnuG02ucF7pvrtK29e5+bxSbPsQca8BfbnfkIas fKymXs+tfwRGCR7XgUbz7exrRsDQASli9vsrtY7+IAtzJIY+g1A5Q19iX g==; X-IronPort-AV: E=McAfee;i="6500,9779,10538"; a="297118831" X-IronPort-AV: E=Sophos;i="5.96,183,1665471600"; d="scan'208";a="297118831" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Nov 2022 00:22:26 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10538"; a="970392871" X-IronPort-AV: E=Sophos;i="5.96,183,1665471600"; d="scan'208";a="970392871" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Nov 2022 00:22:24 -0800 From: Weiyuan Li To: dts@dpdk.org Cc: Weiyuan Li , Song Jiale Subject: [dts][PATCH V5 7/8] test_plans/vlan: modify script and test plan to support i40e fimware >= 8.4 Date: Tue, 22 Nov 2022 16:22:05 +0800 Message-Id: <20221122082206.12559-7-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20221122082206.12559-1-weiyuanx.li@intel.com> References: <20221122082206.12559-1-weiyuanx.li@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.4. When the fimrware >= 8.4, if the filter is to take effect need to enable extend. Signed-off-by: Weiyuan Li --- Tested-by: Song Jiale v2: -use the firmware version to judge whether to add command `extend on`. v3: -modify description. v4: -modify comments. -dual_vlan test plan modify table and add header. v5: -fix some typos. test_plans/vlan_test_plan.rst | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test_plans/vlan_test_plan.rst b/test_plans/vlan_test_plan.rst index 6e2bf74e..394b3ba4 100644 --- a/test_plans/vlan_test_plan.rst +++ b/test_plans/vlan_test_plan.rst @@ -61,6 +61,11 @@ Enable the receipt of VLAN packets with VLAN Tag Identifier 1 on port 0:: testpmd> rx_vlan add 1 0 testpmd> vlan set strip off 0 + + Due to the kernel enables Qinq and cannot be closed, the DPDK only add `extend on` to make the VLAN filter + work normally. Therefore, if the i40e firmware version >= 8.4 the DPDK can only add `extend on` to make the VLAN filter work normally: + testpmd> vlan set extend on 0 + testpmd> start rxonly packet forwarding - CRC stripping disabled - packets/burst=32 nb forwarding cores=1 - nb forwarding ports=10 @@ -111,7 +116,11 @@ Test Case: Disable receipt of VLAN packets Disable the receipt of VLAN packets with Tag Identifier ``1`` on port 0. Send VLAN packets with the Tag Identifier ``1`` check that no packet is received on port ``B``, meaning that VLAN packets are now dropped on port 0:: - + + Due to the kernel enables Qinq and cannot be closed, the DPDK only add `extend on` to make the VLAN filter + work normally. Therefore, if the i40e firmware version >= 8.4 the DPDK can only add `extend on` to make the VLAN filter work normally: + testpmd> vlan set extend on 0 + testpmd> rx_vlan rm 1 0 testpmd> start rxonly packet forwarding - CRC stripping disabled - packets/burst=32 -- 2.27.0