From patchwork Thu Sep 24 09:12:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhang, XiX" X-Patchwork-Id: 78662 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 D0B9BA04B1; Thu, 24 Sep 2020 11:11:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C5A9D1DDA2; Thu, 24 Sep 2020 11:11:19 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 1DE731DDA1 for ; Thu, 24 Sep 2020 11:11:17 +0200 (CEST) IronPort-SDR: z+a2hj5RytVp6PiPlqw7mCPqYYfNDHDRpIifWOrnO/suPHnRqxboHHEgN9fEzpM7iblOIp3Ryv AeG/s6i0FEVg== X-IronPort-AV: E=McAfee;i="6000,8403,9753"; a="141168764" X-IronPort-AV: E=Sophos;i="5.77,297,1596524400"; d="scan'208";a="141168764" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2020 02:11:17 -0700 IronPort-SDR: doyxcbJGU2uAck4Kp4S9JmAfD3BcWHssjvkIj7wn8FElNYOS1CxFaT0LdSOxObSIlQF+fGiTaO yZyA2K2pmt8w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,297,1596524400"; d="scan'208";a="413267987" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.182.150]) by fmsmga001.fm.intel.com with ESMTP; 24 Sep 2020 02:11:16 -0700 From: xizhan4x To: dts@dpdk.org Cc: xizhan4x Date: Thu, 24 Sep 2020 17:12:43 +0800 Message-Id: <1600938763-2743-1-git-send-email-xix.zhang@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1] tests/TestSuite_qinq_filter:insmod igb_uio create vf 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" insmod igb_uio create vf Signed-off-by: xizhan4x Tested-by: Zhang, XiX --- tests/TestSuite_qinq_filter.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_qinq_filter.py b/tests/TestSuite_qinq_filter.py index 086abc1..a629f0e 100644 --- a/tests/TestSuite_qinq_filter.py +++ b/tests/TestSuite_qinq_filter.py @@ -192,11 +192,27 @@ class TestQinqFilter(TestCase): self.verify('queue 2: received 1 packets' in out, "out vlan 1, inner vlan 4093 received not by queue 2 : %s" % out) self.dut.send_expect("quit", "#") - + + def insmod_modprobe(self, modename=''): + """ + Insmod modProbe before run test case + """ + if modename == "igb_uio": + self.dut.send_expect("modprobe uio", "#", 10) + out = self.dut.send_expect("lsmod | grep igb_uio", "#") + if "igb_uio" in out: + self.dut.send_expect("rmmod -f igb_uio", "#", 10) + self.dut.send_expect("insmod ./" + self.target + "/kmod/igb_uio.ko", "#", 10) + + out = self.dut.send_expect("lsmod | grep igb_uio", "#") + assert ("igb_uio" in out), "Failed to insmod igb_uio" + + def test_qinq_packet_filter_VF_queues(self): """ qinq filter packet received by assign VF queues """ + self.insmod_modprobe("igb_uio") self.config_vfs(dutRxPortId, 2) vf_list = self.dut.ports_info[dutRxPortId]['sriov_vfs_pci'] self.verify(len(vf_list) == 2, 'config 2 vf failed: %s' % str(vf_list))