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 5E398A0560; Tue, 18 Oct 2022 04:09:16 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 35C3C4069C; Tue, 18 Oct 2022 04:09:16 +0200 (CEST) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id B89904021E for ; Tue, 18 Oct 2022 04:09:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666058953; x=1697594953; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=/hwrlEzOHxlzrcAN0A4tOk+HW76VY5VntpOw8AyW8zs=; b=EZSk8leyVMVOOfIxvm5cjOznib4rtaNHzq3DN6m7zqD0yuGqSe1HUVpQ i1lrB/cqDDsNhVMie/xQ9lbF5k1tmWEOYf1E+Pa8y3fMaVutPUApADxwa OSWEFiI0KsJMd3N5iy/iw5/en1De5+Nmjne5BX9IE6TyCNA2GVDKjLahj KZhOmQ8HT/K0dMtKNg9aXZeApZ5SLMlTIMEKOW6mBsSk/w8V/PSGwT7uY caanX++tJpHgbfw3u/E3jevsvdpsiATjSsX1smcUuuKRx7vk3GuAwpyMy RpRCTrWgKSe9dUu9sRTEzG+j2pIe/QQv3DifhgSk2n+GOz46cK5FVcLCO A==; X-IronPort-AV: E=McAfee;i="6500,9779,10503"; a="368000359" X-IronPort-AV: E=Sophos;i="5.95,192,1661842800"; d="scan'208";a="368000359" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2022 19:09:12 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10503"; a="753849656" X-IronPort-AV: E=Sophos;i="5.95,192,1661842800"; d="scan'208";a="753849656" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2022 19:09:11 -0700 From: Weiyuan Li To: dts@dpdk.org Cc: Weiyuan Li Subject: [dts][PATCH V1] tests/kernelpf_iavf: optimize script multicast case cancel trust mode Date: Tue, 18 Oct 2022 10:09:38 +0800 Message-Id: <20221018020938.30275-1-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 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 vf_multicast cancel trust model and use 'mcast_addr' add multicast address to the testpmd. Signed-off-by: Weiyuan Li --- tests/TestSuite_kernelpf_iavf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py index 73435339..494204a2 100644 --- a/tests/TestSuite_kernelpf_iavf.py +++ b/tests/TestSuite_kernelpf_iavf.py @@ -334,13 +334,13 @@ class TestKernelpfIavf(TestCase): self.send_random_pkt(self.wrong_mac, count=1) out = self.vm_dut.get_session_output() self.verify(self.wrong_mac in out, "vf receive pkt fail with wrong mac") + self.dut.send_expect("ip link set dev %s vf 0 trust off" % self.host_intf, "# ") def test_vf_multicast(self): """ enable kernel trust mode """ multicast_mac = "01:80:C2:00:00:08" - self.dut.send_expect("ip link set dev %s vf 0 trust on" % self.host_intf, "# ") self.launch_testpmd(dcf_flag=self.dcf_mode) self.vm_testpmd.execute_cmd("set fwd mac") self.vm_testpmd.execute_cmd("set promisc all off") @@ -355,6 +355,7 @@ class TestKernelpfIavf(TestCase): self.verify(multicast_mac not in out, "vf receive pkt with multicast mac") self.vm_testpmd.execute_cmd("set allmulti all on") + self.vm_testpmd.execute_cmd(f"mcast_addr add 0 {multicast_mac}") self.send_random_pkt(self.vf_mac, count=1) out = self.vm_dut.get_session_output() self.verify(self.vf_mac in out, "vf receive pkt fail with current mac") -- 2.27.0