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 61FA8A0C47; Tue, 26 Oct 2021 07:25:18 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5CD71410F8; Tue, 26 Oct 2021 07:25:18 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 083EA4003E for ; Tue, 26 Oct 2021 07:25:15 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10148"; a="230101519" X-IronPort-AV: E=Sophos;i="5.87,182,1631602800"; d="scan'208";a="230101519" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2021 22:25:15 -0700 X-IronPort-AV: E=Sophos;i="5.87,182,1631602800"; d="scan'208";a="634992524" Received: from unknown (HELO dpdk.lan) ([10.240.183.77]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2021 22:25:14 -0700 From: Yan Xia To: dts@dpdk.org Cc: Yan Xia Date: Tue, 26 Oct 2021 13:28:01 +0000 Message-Id: <20211026132801.74272-3-yanx.xia@intel.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211026132801.74272-1-yanx.xia@intel.com> References: <20211026132801.74272-1-yanx.xia@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V2 2/2] tests/vf_daemon: delete test_mac_antispoof 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" comfirm with Tu,Lijuan and Lin,Xueqin, delete the case Signed-off-by: Yan Xia --- tests/TestSuite_vf_daemon.py | 53 ------------------------------------ 1 file changed, 53 deletions(-) diff --git a/tests/TestSuite_vf_daemon.py b/tests/TestSuite_vf_daemon.py index 4d6ae58f..62996ade 100644 --- a/tests/TestSuite_vf_daemon.py +++ b/tests/TestSuite_vf_daemon.py @@ -517,59 +517,6 @@ class TestVfDaemon(TestCase): out = self.vm0_testpmd.execute_cmd('show port stats 0') self.verify("RX-packets: 40" in out, "Failed to enable all queues drop!!!") - - - def test_mac_antispoof(self): - """ - Enable/disable mac anti-spoof for a VF from PF - """ - fake_mac = '00:11:22:33:44:55' - time.sleep(5) - self.vm0_dut.send_expect("sed -i -e '/int r;/a " +\ - "\ struct rte_ether_addr fake_mac = {.addr_bytes = {0x00, 0x11, 0x22, 0x33, 0x44, 0x55},};'" +\ - " app/test-pmd/macswap_sse.h", "# ", 30) - line_num = self.vm0_dut.send_expect("sed -n '/_mm_storeu_si128/=' app/test-pmd/macswap_sse.h |sed -n 5p", "# ",30) - self.vm0_dut.send_expect("sed -i -e '%sa\\rte_ether_addr_copy(&fake_mac, ð_hdr[0]->s_addr);'" % str(line_num)+\ - " app/test-pmd/macswap_sse.h", "# ", 30) - time.sleep(3) - - self.vm0_dut.build_install_dpdk(self.target) - time.sleep(5) - - self.check_vf_link_status() - self.vf0_mac = self.vm0_testpmd.get_port_mac(0) - - self.vm0_testpmd.execute_cmd('set fwd macswap') - self.dut_testpmd.execute_cmd('set vf mac antispoof 0 0 off') - self.vm0_testpmd.execute_cmd('start') - time.sleep(5) - - dumpout = self.send_and_macstrip(self.vf0_mac) - out = self.vm0_testpmd.execute_cmd('stop') - - self.verify(fake_mac in dumpout, - "Failed to disable vf mac anspoof!!!") - self.verify("RX-packets: 1" in out, "Failed to receive packet!!!") - self.verify("TX-packets: 1" in out, - "Failed to disable mac antispoof!!!") - - self.dut_testpmd.execute_cmd('set vf mac antispoof 0 0 on') - self.vm0_testpmd.execute_cmd('start') - time.sleep(3) - dumpout = self.send_and_macstrip(self.vf0_mac) - out = self.vm0_testpmd.execute_cmd('stop') - self.verify(fake_mac not in dumpout, "Failed to enable vf mac anspoof!!!") - self.verify("RX-packets: 1" in out, "Failed to receive packet!!!") - self.verify("TX-packets: 0" in out, "Failed to enable mac antispoof!!!") - - self.vm0_testpmd.quit() - self.dut_testpmd.quit() - self.vm0_dut.send_expect("sed -i '/struct rte_ether_addr fake_mac = {.addr_bytes = " +\ - "{0x00, 0x11, 0x22, 0x33, 0x44, 0x55},};/d' app/test-pmd/macswap_sse.h", "# ", 30) - self.vm0_dut.send_expect("sed -i '%sd'" % line_num +\ - " app/test-pmd/macswap_sse.h", "# ", 30) - self.vm0_dut.build_install_dpdk(self.target) - def test_vf_mac_set(self): """ -- 2.33.1