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 9BC0742CD3; Fri, 16 Jun 2023 04:01:16 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 860FF40DDB; Fri, 16 Jun 2023 04:01:16 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id B40574021E for ; Fri, 16 Jun 2023 04:01:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686880874; x=1718416874; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=vxKtF9Son9J83spwhbKw6296sbjSpLhJLfx6VQKC8cQ=; b=UTS+NJBo89CmLdYsZPoZArn8vMueEx1TzivYUUJVlHpjCr3r15dZLmO9 EbEDJgTy13key1sdzhM7elCpEuDpSLjbyhDtQBlgIm+ftoWrFMlkDHB4q ro0Q40kiBV7Z+kHg1uIDHjiZG5ezK0TpUCgaWeOgDSzp5X4zDkLq48NQq JOTIh80zOILMErtV7OWGNVx2BTfbR5/TG/YV3rRg3ksU3DRGD4xIiEPrw g5u1K9hmHSj4TfuTvnN+exAmtlrgkbxltz3pZYqRvOjQodHF2R5TZPs2D cW7wTmGNi/9FOROf0eR83kQJfbpdji5Sh5IP7iw4qcGVbbsf0H28bDU7h w==; X-IronPort-AV: E=McAfee;i="6600,9927,10742"; a="387716225" X-IronPort-AV: E=Sophos;i="6.00,246,1681196400"; d="scan'208";a="387716225" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2023 19:00:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10742"; a="782709156" X-IronPort-AV: E=Sophos;i="6.00,246,1681196400"; d="scan'208";a="782709156" Received: from unknown (HELO dpdk.sh.intel.com) ([10.239.252.241]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2023 19:00:44 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V1] tests/vf_vlan: ixgbe to support vlan insert Date: Fri, 16 Jun 2023 18:12:12 +0800 Message-Id: <20230616101212.1456780-1-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=y 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 the script to test the ixgbe vf vlan insert function. Signed-off-by: Jiale Song --- conf/test_case_supportlist.json | 23 ----------------------- tests/TestSuite_vf_vlan.py | 6 ++---- 2 files changed, 2 insertions(+), 27 deletions(-) diff --git a/conf/test_case_supportlist.json b/conf/test_case_supportlist.json index d07c9698..8595d688 100644 --- a/conf/test_case_supportlist.json +++ b/conf/test_case_supportlist.json @@ -1,27 +1,4 @@ { - "vf_vlan_tx": [ - { - "OS": [ - "ALL" - ], - "NIC": [ - "I40E_10G-SFP_X710", - "I40E_40G-QSFP_A", - "I40E_25G-25G_SFP28", - "I40E_10G-10G_BASE_T_X722", - "I40E_10G-SFP_X722", - "I40E_10G-10G_BASE_T_BC", - "ICE_25G-E810C_SFP", - "ICE_25G-E823C_QSFP", - "ICE_100G-E810C_QSFP" - ], - "Target": [ - "ALL" - ], - "Bug ID": "", - "Comments": "the nic on the environment not support this case" - } - ], "dpdk_2pf_2vf_1vm_mac_add_filter": [ { "OS": [ diff --git a/tests/TestSuite_vf_vlan.py b/tests/TestSuite_vf_vlan.py index ebdf9207..0f2dbf5d 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,9 +364,8 @@ 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": - 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("vlan set filter on 0") + self.vm0_testpmd.execute_cmd("rx_vlan add %d 0" % tx_vlan) self.vm0_testpmd.execute_cmd("stop") self.vm0_testpmd.execute_cmd("port stop all") self.vm0_testpmd.execute_cmd("tx_vlan set 0 %d" % tx_vlan) -- 2.25.1