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 DF243A00C4; Wed, 4 Jan 2023 09:32:54 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DAC9D40A82; Wed, 4 Jan 2023 09:32:54 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 5981740697 for ; Wed, 4 Jan 2023 09:32:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672821171; x=1704357171; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2xJBzgKth4PJ2jCQKj8Ss+q1N0ZurMT8X3kjyr2piJI=; b=norJCRI2yveDtUEA6hKccdVTG4uONQkRySbr0WSico8M4lh2SJVnceHG kQPiWmq0DZdNi1Dwt0QxkvaE+YT9H4qAGpVcUeLnmO/rZy3dXxro7wt4u H7UFJj/tkqpktsYohpxwHva7EYde6+1zatKY/hrng6LV/nWnz6la6gC9S D1n9tP7/nBi4kit8wUY/96S8km8ZRPmz0Kjqu8QH2PoCLemj1e7OUnIqy iN3ZQLuk3JSXkMVsDl/VdgA+8TxkjeSseijBQT/XusvmLZvYny7jZ/zDj FK8k5x88+eu1mq/tPbo+VRDgeCHsKgK7LDWlzYgAl9/qDsuDZvcomSU/d A==; X-IronPort-AV: E=McAfee;i="6500,9779,10579"; a="323877028" X-IronPort-AV: E=Sophos;i="5.96,299,1665471600"; d="scan'208";a="323877028" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jan 2023 00:32:51 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10579"; a="685686475" X-IronPort-AV: E=Sophos;i="5.96,299,1665471600"; d="scan'208";a="685686475" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jan 2023 00:32:51 -0800 From: Weiyuan Li To: dts@dpdk.org Cc: Weiyuan Li Subject: [dts][PATCH V1 2/2] tests/kernelpf_iavf: remove duplicate cases Date: Wed, 4 Jan 2023 16:32:38 +0800 Message-Id: <20230104083238.13296-2-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20230104083238.13296-1-weiyuanx.li@intel.com> References: <20230104083238.13296-1-weiyuanx.li@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Case kernelpf_iavf/vf_mac_filter and vf_macfilter/kernel_2pf_2vf_1vm_mac_add_filter duplicate remove this test case from kernelpf_iavf. Signed-off-by: Weiyuan Li --- tests/TestSuite_kernelpf_iavf.py | 42 +------------------------------- 1 file changed, 1 insertion(+), 41 deletions(-) diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py index 27daa525..2cc0ff7d 100644 --- a/tests/TestSuite_kernelpf_iavf.py +++ b/tests/TestSuite_kernelpf_iavf.py @@ -78,11 +78,7 @@ class TestKernelpfIavf(TestCase): def set_up(self): - if self.running_case == "test_vf_mac_filter": - self.destroy_vm_env() - if self.env_done is False: - self.setup_vm_env(driver="", set_vf_mac=False) - elif self.running_case == "test_vf_rx_interrupt": + if self.running_case == "test_vf_rx_interrupt": self.destroy_vm_env() elif self.env_done is False: self.setup_vm_env() @@ -249,40 +245,6 @@ class TestKernelpfIavf(TestCase): stats["TX-packets"] != 0 and nums > 0, "vf send packet num is not match" ) - def test_vf_mac_filter(self): - """ - Not set VF MAC from kernel PF for this case, if set, will print - "not permitted error" when add new MAC for VF. - """ - out = self.launch_testpmd(dcf_flag=self.dcf_mode) - self.testpmd_mac = self.get_testpmd_vf_mac(out) - self.vm_testpmd.execute_cmd("set fwd mac") - self.vm_testpmd.execute_cmd("set promisc all off") - self.vm_testpmd.execute_cmd("mac_addr add 0 %s" % self.add_addr) - self.vm_testpmd.execute_cmd("start") - # send packet with current mac - self.send_random_pkt(self.testpmd_mac, count=100) - self.verify_packet_count(100) - self.vm_testpmd.execute_cmd("clear port stats all") - # send packet with add mac - self.send_random_pkt(self.add_addr, count=100) - self.verify_packet_count(100) - self.vm_testpmd.execute_cmd("clear port stats all") - # send packet with wrong mac - self.send_random_pkt(self.wrong_mac, count=100) - self.verify_packet_count(0) - self.vm_testpmd.execute_cmd("clear port stats all") - self.vm_testpmd.execute_cmd("mac_addr remove 0 %s" % self.add_addr) - self.send_random_pkt(self.add_addr, count=100) - self.verify_packet_count(0) - self.vm_testpmd.execute_cmd("clear port stats all") - self.vm_testpmd.execute_cmd("mac_addr add 0 00:01:23:45:67:11") - self.send_random_pkt(self.add_addr, count=100) - self.verify_packet_count(0) - self.vm_testpmd.execute_cmd("clear port stats all") - self.send_random_pkt("00:01:23:45:67:11", count=100) - self.verify_packet_count(100) - def get_testpmd_vf_mac(self, out): result = re.search("([a-f0-9]{2}:){5}[a-f0-9]{2}", out, re.IGNORECASE) mac = result.group() @@ -926,8 +888,6 @@ class TestKernelpfIavf(TestCase): else: self.vm_testpmd.execute_cmd("quit", "#") time.sleep(1) - if self.running_case == "test_vf_mac_filter": - self.destroy_vm_env() if not self.dcf_mode: self.dut.send_expect( "ip link set dev %s vf 0 trust off" % self.host_intf, "# " -- 2.27.0