From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 7C1C5A00E6 for ; Wed, 17 Apr 2019 11:22:57 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1EB251B5DA; Wed, 17 Apr 2019 11:22:57 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id CE5501B5C4 for ; Wed, 17 Apr 2019 11:22:55 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Apr 2019 02:22:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,361,1549958400"; d="scan'208";a="162348148" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 17 Apr 2019 02:22:54 -0700 From: "zhang,yan" To: dts@dpdk.org Cc: "zhang,yan" Date: Wed, 17 Apr 2019 17:27:14 +0800 Message-Id: <1555493234-8281-1-git-send-email-yanx.a.zhang@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] tests/vf_jumboframe:disable promise mode to forbid misc packets 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Because some miscellaneous packets may appearing on the receiving port, so use command "set promisc all off" to forbidden them Signed-off-by: zhang,yan --- tests/TestSuite_vf_jumboframe.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/TestSuite_vf_jumboframe.py b/tests/TestSuite_vf_jumboframe.py index 32f89d7..dc16479 100644 --- a/tests/TestSuite_vf_jumboframe.py +++ b/tests/TestSuite_vf_jumboframe.py @@ -212,6 +212,7 @@ class TestVfJumboFrame(TestCase): self.vm_testpmd.start_testpmd("Default", "--max-pkt-len=%d --port-topology=loop --tx-offloads=0x8000" % (ETHER_STANDARD_MTU)) self.vm_testpmd.execute_cmd("set fwd mac") + self.vm_testpmd.execute_cmd("set promisc all off") self.vm_testpmd.execute_cmd("start") self.jumboframes_send_packet(ETHER_STANDARD_MTU - 1) @@ -232,6 +233,7 @@ class TestVfJumboFrame(TestCase): self.vm_testpmd.start_testpmd("Default", "--max-pkt-len=%d --port-topology=loop --tx-offloads=0x8000" % (ETHER_JUMBO_FRAME_MTU)) self.vm_testpmd.execute_cmd("set fwd mac") + self.vm_testpmd.execute_cmd("set promisc all off") self.vm_testpmd.execute_cmd("start") self.jumboframes_send_packet(ETHER_STANDARD_MTU - 1) @@ -252,6 +254,7 @@ class TestVfJumboFrame(TestCase): self.vm_testpmd.start_testpmd("Default", "--port-topology=loop --tx-offloads=0x8000" ) self.vm_testpmd.execute_cmd("set fwd mac") + self.vm_testpmd.execute_cmd("set promisc all off") self.vm_testpmd.execute_cmd("start") # On igb, for example i350, refer to :DPDK-1117 @@ -280,6 +283,7 @@ class TestVfJumboFrame(TestCase): self.vm_testpmd.start_testpmd("Default", "--max-pkt-len=%d --port-topology=loop --tx-offloads=0x8000" % (ETHER_JUMBO_FRAME_MTU)) self.vm_testpmd.execute_cmd("set fwd mac") + self.vm_testpmd.execute_cmd("set promisc all off") self.vm_testpmd.execute_cmd("start") self.jumboframes_send_packet(ETHER_STANDARD_MTU + 1) @@ -301,6 +305,7 @@ class TestVfJumboFrame(TestCase): self.vm_testpmd.start_testpmd("Default", "--max-pkt-len=%d --port-topology=loop --tx-offloads=0x8000" % (ETHER_JUMBO_FRAME_MTU)) self.vm_testpmd.execute_cmd("set fwd mac") + self.vm_testpmd.execute_cmd("set promisc all off") self.vm_testpmd.execute_cmd("start") # On 1G NICs, when the jubmo frame MTU set as 9000, the software adjust it to 9004. -- 2.17.2