From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id E20501B525 for ; Fri, 30 Nov 2018 05:51:40 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Nov 2018 20:51:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,297,1539673200"; d="scan'208";a="119737960" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by fmsmga001.fm.intel.com with ESMTP; 29 Nov 2018 20:51:39 -0800 From: "zhao,meijuan" To: dts@dpdk.org Cc: "zhao,meijuan" Date: Fri, 30 Nov 2018 12:54:52 +0800 Message-Id: <1543553692-11863-1-git-send-email-meijuanx.zhao@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] tests/vf mackfilter: fix syntax error 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: , X-List-Received-Date: Fri, 30 Nov 2018 04:51:41 -0000 Signed-off-by: zhao,meijuan --- tests/TestSuite_vf_macfilter.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/TestSuite_vf_macfilter.py b/tests/TestSuite_vf_macfilter.py index 9e6db42..12a08e8 100644 --- a/tests/TestSuite_vf_macfilter.py +++ b/tests/TestSuite_vf_macfilter.py @@ -37,7 +37,7 @@ class TestVfMacFilter(TestCase): self.setup_2pf_2vf_1vm_env_flag = 0 - def setup_2pf_2vf_1vm_env(self, driver='default',set_mac): + def setup_2pf_2vf_1vm_env(self,set_mac,driver='default'): self.used_dut_port_0 = self.dut_ports[0] self.dut.generate_sriov_vfs_by_port(self.used_dut_port_0, 1, driver=driver) @@ -128,7 +128,7 @@ class TestVfMacFilter(TestCase): if the MAC filter works. Also send the packets with wrong MAC address to VF, check if the VF will not RX the packets. """ - self.setup_2pf_2vf_1vm_env(driver='',True) + self.setup_2pf_2vf_1vm_env(True,driver='') self.result_verify_iplink(True) def result_verify_iplink(self,set_mac): @@ -177,7 +177,7 @@ class TestVfMacFilter(TestCase): What's more, send packets with a wrong MAC address to the VF will not received by the VF. """ - self.setup_2pf_2vf_1vm_env(driver='',False) + self.setup_2pf_2vf_1vm_env(False,driver='') self.send_packet_and_verify() def test_dpdk_2pf_2vf_1vm_mac_add_filter(self): @@ -191,7 +191,7 @@ class TestVfMacFilter(TestCase): What's more, send packets with a wrong MAC address to the VF will not received by the VF. """ - self.setup_2pf_2vf_1vm_env(driver='igb_uio',False) + self.setup_2pf_2vf_1vm_env(False,driver='igb_uio') self.send_packet_and_verify() def test_dpdk_2pf_2vf_1vm_iplink_macfilter(self): @@ -203,7 +203,7 @@ class TestVfMacFilter(TestCase): not RX the packets works. Also send the packets with wrong MAC address to VF, check if the VF will not RX the packets. """ - self.setup_2pf_2vf_1vm_env(driver='igb_uio',False) + self.setup_2pf_2vf_1vm_env(False,driver='igb_uio') self.result_verify_iplink(False) def send_packet_and_verify(self): -- 2.17.2