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 8DFD64C88 for ; Wed, 6 Mar 2019 09:27:44 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Mar 2019 00:27:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,447,1544515200"; d="scan'208";a="131652023" Received: from dpdk-test60.sh.intel.com ([10.67.111.110]) by orsmga003.jf.intel.com with ESMTP; 06 Mar 2019 00:27:42 -0800 From: Xueqin Lin To: dts@dpdk.org Cc: Xueqin Lin Date: Tue, 5 Mar 2019 21:27:14 -0500 Message-Id: <1551839234-50760-1-git-send-email-xueqin.lin@intel.com> X-Mailer: git-send-email 2.5.5 Subject: [dts] [PATCH] tests/vf_macfilter: correct case description 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: Wed, 06 Mar 2019 08:27:46 -0000 Signed-off-by: Xueqin Lin --- tests/TestSuite_vf_macfilter.py | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/tests/TestSuite_vf_macfilter.py b/tests/TestSuite_vf_macfilter.py index 063ecda..f7bba1a 100644 --- a/tests/TestSuite_vf_macfilter.py +++ b/tests/TestSuite_vf_macfilter.py @@ -26,7 +26,7 @@ class TestVfMacFilter(TestCase): self.vf_driver = self.get_suite_cfg()['vf_driver'] if self.vf_driver is None: self.vf_driver = 'pci-stub' - self.verify(self.vf_driver in self.supported_vf_driver, "Unspported vf driver") + self.verify(self.vf_driver in self.supported_vf_driver, "Unsupported vf driver") if self.vf_driver == 'pci-stub': self.vf_assign_method = 'pci-assign' else: @@ -125,11 +125,11 @@ class TestVfMacFilter(TestCase): def test_kernel_2pf_2vf_1vm_iplink_macfilter(self): """ test case for kernel pf and dpdk vf 2pf_2vf_1vm MAC filter - scenario + scenario. kernel pf will first run 'ip link set pf_interface vf 0 mac xx:xx:xx:xx:xx:xx', then send packets with this MAC to VF, check if the MAC filter works. Also send the packets with wrong MAC - address to VF, check if the VF will not RX the packets. + address to VF, check the VF will not RX the packets. """ self.setup_2pf_2vf_1vm_env(True,driver='') self.result_verify_iplink(True) @@ -174,25 +174,25 @@ class TestVfMacFilter(TestCase): scenario. kernel pf will not set MAC address and the VF will get a random generated MAC in the testpmd in VM, and then add VF mac address - in the testpmd,for example, VF_MAC1 then send packets to the VF + in the testpmd, for example, VF_MAC1 then send packets to the VF with the random generated MAC and the new added VF_MAC1 and the expected result is that all packets can be RXed and TXed. What's more, send packets with a wrong MAC address to the VF will - not received by the VF. + not be received by the VF. """ self.setup_2pf_2vf_1vm_env(False,driver='') self.send_packet_and_verify() def test_dpdk_2pf_2vf_1vm_mac_add_filter(self): """ - test case for dpdk pf and dpdk vf 2pf_2vf_1vm MAC filter scenario + test case for dpdk pf and dpdk vf 2pf_2vf_1vm MAC filter scenario. dpdk pf will not set MAC address and the VF will get a random generated MAC in the testpmd in VM, and then add VF mac address - in the testpmd,for example, VF_MAC1 then send packets to the VF + in the testpmd, for example, VF_MAC1 then send packets to the VF with the random generated MAC and the new added VF_MAC1 and the expected result is that all packets can be RXed and TXed. - What's more, send packets with a wrong MAC address to the VF will - not received by the VF. + What's more, send packets with a wrong MAC address to the VF, check + the VF will not RX packets. """ self.verify(self.nic.startswith('fortville') == True, "NIC is [%s], skip this case" %self.nic) self.setup_2pf_2vf_1vm_env(False,driver='igb_uio') @@ -200,12 +200,12 @@ class TestVfMacFilter(TestCase): def test_dpdk_2pf_2vf_1vm_iplink_macfilter(self): """ - test case for dpdk pf and dpdk vf 2pf_2vf_1vm MAC filter scenario - dpdk pf will first run 'set vf mac addr 0 0 xx:xx:xx:xx:xx:xx, - then send packets with this MAC to VF, check if the MAC filter - send the packets with wrong MAC address to VF, check if the VF will - not RX the packets works. Also send the packets with wrong MAC - address to VF, check if the VF will not RX the packets. + test case for dpdk pf and dpdk vf 2pf_2vf_1vm MAC filter scenario. + dpdk pf will not set MAC address and the VF will get a random + generated MAC in the testpmd in VM, then send packets with this + MAC to VF, check that all packets can be RXed and TXed, send the + packets with a wrong MAC address to VF, check the VF will not RX + packets. """ self.setup_2pf_2vf_1vm_env(False,driver='igb_uio') self.result_verify_iplink(False) -- 2.5.5