From patchwork Mon Jun 19 14:20:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 128786 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 7C6F742CF6; Mon, 19 Jun 2023 08:10:00 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5E422410D7; Mon, 19 Jun 2023 08:10:00 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 4F423410D3 for ; Mon, 19 Jun 2023 08:09:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687154998; x=1718690998; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=enlZPPsUiXVCoSrPIOKuuQq46BQRzqxpJgtCgl9riK4=; b=fOaBNLgiWsbklNkJ9JIT3e0v8XhDQEGaq/wwJ+vAh8C0T37ya4spbFts QfjTKX+ozi4w/MEoj87kW5d9HHiAbepG0XJQNuNX8Ydlorfprn7ssyccO O85/eLQAvadvh2Kbk/ppLI9OV6gc9pNFK/RUsjKkwJnp24Co1Gj2T2K/T H1HO16jgcDtQKrQhc4pTPSUa9aO3END/BxbnleiHkwV+HG+QjDyoDNK/F o7XcV0TGTwziyLjjQaZgT+kvnZd8hXWSJqK0ikqhWkPMjEvnWULkaIyju Rm2SqtM7Ywfz1DfhodWgvzELCNcm8f9CuMyFELGmPlOq0/cY1CW51kKhD A==; X-IronPort-AV: E=McAfee;i="6600,9927,10745"; a="445932891" X-IronPort-AV: E=Sophos;i="6.00,254,1681196400"; d="scan'208";a="445932891" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jun 2023 23:09:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10745"; a="713552991" X-IronPort-AV: E=Sophos;i="6.00,254,1681196400"; d="scan'208";a="713552991" Received: from unknown (HELO dpdk.sh.intel.com) ([10.239.252.241]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jun 2023 23:09:55 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V2] tests/vf_vlan: ixgbe to support vlan insert Date: Mon, 19 Jun 2023 22:20:51 +0800 Message-Id: <20230619142051.1680209-1-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 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 the script to test the ixgbe vf vlan insert function. Signed-off-by: Jiale Song --- conf/test_case_supportlist.json | 5 +++-- tests/TestSuite_vf_vlan.py | 7 +++++-- 2 files changed, 8 insertions(+), 4 deletions(-) -v2: Reduce the impact on other network cards. diff --git a/conf/test_case_supportlist.json b/conf/test_case_supportlist.json index d07c9698..e33c3ed6 100644 --- a/conf/test_case_supportlist.json +++ b/conf/test_case_supportlist.json @@ -12,8 +12,9 @@ "I40E_10G-SFP_X722", "I40E_10G-10G_BASE_T_BC", "ICE_25G-E810C_SFP", - "ICE_25G-E823C_QSFP", - "ICE_100G-E810C_QSFP" + "ICE_25G-E823C_QSFP", + "ICE_100G-E810C_QSFP", + "IXGBE_10G-82599_SFP" ], "Target": [ "ALL" diff --git a/tests/TestSuite_vf_vlan.py b/tests/TestSuite_vf_vlan.py index ebdf9207..623037f1 100644 --- a/tests/TestSuite_vf_vlan.py +++ b/tests/TestSuite_vf_vlan.py @@ -348,7 +348,6 @@ class TestVfVlan(TestCase): self.verify(tx_vlan in vlans, "Tx packet with vlan not received!!!") def execute_vf_vlan_tx(self, specific_bitwidth=None): - self.verify(self.kdriver not in ["ixgbe"], "NIC Unsupported: " + str(self.nic)) random_vlan = random.randint(1, MAX_VLAN) tx_vlans = [1, random_vlan, MAX_VLAN] # start testpmd in VM @@ -365,7 +364,11 @@ class TestVfVlan(TestCase): # for IntelĀ® Ethernet 700 Series , # if you want insert tx_vlan, # please enable rx_vlan at the same time - if self.kdriver == "i40e" or self.kdriver == "ice": + if ( + self.kdriver == "i40e" + or self.kdriver == "ice" + or self.kdriver == "ixgbe" + ): self.vm0_testpmd.execute_cmd("vlan set filter on 0") self.vm0_testpmd.execute_cmd("rx_vlan add %d 0" % tx_vlan) self.vm0_testpmd.execute_cmd("stop")