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 14161A055D; Wed, 3 Mar 2021 09:17:48 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E31A640683; Wed, 3 Mar 2021 09:17:47 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id B0DDF4067B for ; Wed, 3 Mar 2021 09:17:45 +0100 (CET) IronPort-SDR: wTdtazAWbfABgCIGlbmfs42vdgfLyjCa3koiEVSW7ENyFqa5p0vyG2GxY1JRlWr63M3ZDSmvR3 7UPkl4Sfo3Ow== X-IronPort-AV: E=McAfee;i="6000,8403,9911"; a="187253799" X-IronPort-AV: E=Sophos;i="5.81,219,1610438400"; d="scan'208";a="187253799" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2021 00:17:44 -0800 IronPort-SDR: JuHXPqaftWBO3kJ8eNrkb4flKMRRxgcjHzcKibeJUs9AWgGQlKrM7oV/0vDkef1OMTjnU5nvdk iv3pYP3t8VKA== X-IronPort-AV: E=Sophos;i="5.81,219,1610438400"; d="scan'208";a="600058611" Received: from unknown (HELO localhost.localdomain) ([10.240.183.105]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2021 00:17:42 -0800 From: sunqin To: dts@dpdk.org Cc: sunqin Date: Wed, 3 Mar 2021 16:44:37 +0000 Message-Id: <20210303164437.30160-1-qinx.sun@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V2] tests/iavf_flexible_descriptor: add private flag for vf vlan 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 Sender: "dts" At present, iavf can only receive packets with type value of 0x8100 by default, if want to receive other type packets, need to set private flag. Signed-off-by: sunqin --- v1: add private flag setting for vf vlan v2: add commit message and restore setting after suite test is complete tests/TestSuite_iavf_flexible_descriptor.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_iavf_flexible_descriptor.py b/tests/TestSuite_iavf_flexible_descriptor.py index 69f38bf6..3bfd5b99 100644 --- a/tests/TestSuite_iavf_flexible_descriptor.py +++ b/tests/TestSuite_iavf_flexible_descriptor.py @@ -79,13 +79,14 @@ class TestIavfFlexibleDescriptor(TestCase, FlexibleRxdBase): netdev.bind_driver(driver=self.kdriver) # set vf assign method and vf driver vf_driver = 'vfio-pci' + self.pf0_intf = self.dut.ports_info[self.dut_ports[dut_index]]['intf'] + self.dut.send_expect('ethtool --set-priv-flags {} vf-vlan-prune-disable on'.format(self.pf0_intf),'#') # generate 2 VFs on PF self.dut.generate_sriov_vfs_by_port( used_dut_port, 1, driver=self.kdriver) - pf0_intf = self.dut.ports_info[self.dut_ports[dut_index]]['intf'] vf_mac = "00:11:22:33:44:55" self.dut.send_expect( - 'ip link set {} vf 0 mac {}'.format(pf0_intf, vf_mac), '#') + 'ip link set {} vf 0 mac {}'.format(self.pf0_intf, vf_mac), '#') sriov_vf0 = self.dut.ports_info[used_dut_port]['vfs_port'][0] sriov_vf0.bind_driver(vf_driver) return sriov_vf0, vf_mac @@ -122,6 +123,7 @@ class TestIavfFlexibleDescriptor(TestCase, FlexibleRxdBase): """ self.destroy_vf() self.restore_compilation() + self.dut.send_expect('ethtool --set-priv-flags {} vf-vlan-prune-disable off'.format(self.pf0_intf), '#') def set_up(self): """ -- 2.17.1