From patchwork Tue Dec 29 01:51:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xie, WeiX" X-Patchwork-Id: 85852 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 497ABA09FF; Tue, 29 Dec 2020 02:48:55 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EC14A2BFE; Tue, 29 Dec 2020 02:48:53 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 97F9E1B19 for ; Tue, 29 Dec 2020 02:48:52 +0100 (CET) IronPort-SDR: ZRShffxkC/1OUJw/Ay2z8UjqjE9yWvO9Vap0O1p66MsrV8+q4HIv/VQ3yDwa61+O7ljJyaDzAu gNGcUEUZKLhA== X-IronPort-AV: E=McAfee;i="6000,8403,9848"; a="237997097" X-IronPort-AV: E=Sophos;i="5.78,456,1599548400"; d="scan'208";a="237997097" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Dec 2020 17:48:48 -0800 IronPort-SDR: Bjp0BFuw79O5Xoz13gHxvDdGVNBoAvKT3bMZB/62FjhcVFLaufmpupgavvQZGNowSufuzaIhRX Q0XboG738jSg== X-IronPort-AV: E=Sophos;i="5.78,456,1599548400"; d="scan'208";a="347199559" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Dec 2020 17:48:47 -0800 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Tue, 29 Dec 2020 09:51:03 +0800 Message-Id: <20201229015104.5348-1-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1 1/2] tests/TestSuite_vf_vlan:modify script to match i40e driver updated 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" Update i40e driver to 2.13.10. vf_vlan_rx: while vlan set filter on, the pkts with random vlan id 1-4095 shall not be received. add_pvid_vf: while ip link set pf_intf vf 0 vlan 0, the pkts with random vlan id 1-4095 shall not be received. Signed-off-by: Xie wei Tested-by: Xie,WeiX < weix.xie@intel.com> --- tests/TestSuite_vf_vlan.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_vf_vlan.py b/tests/TestSuite_vf_vlan.py index a5754117..28650143 100644 --- a/tests/TestSuite_vf_vlan.py +++ b/tests/TestSuite_vf_vlan.py @@ -107,6 +107,9 @@ class TestVfVlan(TestCase): self.host_intf0 = self.dut.ports_info[self.used_dut_port_0]['intf'] tester_port = self.tester.get_local_port(self.used_dut_port_0) self.tester_intf0 = self.tester.get_interface(tester_port) + # get driver version + out = self.dut.send_expect("ethtool -i %s | awk -F':' 'NR==2{print $2}'" % self.host_intf0, "# ") + self.driver_version = out.replace(" ", "") self.dut.generate_sriov_vfs_by_port( self.used_dut_port_0, 1, driver=driver) @@ -273,7 +276,7 @@ class TestVfVlan(TestCase): self.vm0_testpmd.execute_cmd("start") out = self.send_and_getout(vlan=random_vlan, pkt_type="VLAN_UDP") - if self.kdriver == "i40e" or self.kdriver == 'ice': + if self.driver_version < "2.13.10" or self.kdriver == 'ice': self.verify("received" in out, "Failed to received vlan packet!!!") else: self.verify( @@ -395,7 +398,7 @@ class TestVfVlan(TestCase): # send packet with vlan out = self.send_and_getout(vlan=random_vlan, pkt_type="VLAN_UDP") - if self.kdriver == "i40e" or self.kdriver == 'ice': + if self.driver_version < "2.13.10" or self.kdriver == 'ice': self.verify( "received 1 packets" in out, "Received mismatched vlan packet while vlan filter on") else: