From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5FC56A09FF; Tue, 29 Dec 2020 07:54:13 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1D66D2629; Tue, 29 Dec 2020 07:54:12 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 06AAA2C27 for ; Tue, 29 Dec 2020 07:54:10 +0100 (CET) IronPort-SDR: WeDA/ioqDinuaUvrkWAXbuNCeRavDIX1XNw7sOYHjIqy+c4ruVSM6O/NpUBSpnfSIqP5c7657I temlQEDQslvQ== X-IronPort-AV: E=McAfee;i="6000,8403,9848"; a="194952053" X-IronPort-AV: E=Sophos;i="5.78,457,1599548400"; d="scan'208";a="194952053" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Dec 2020 22:54:08 -0800 IronPort-SDR: JPmxut22tHz6DEKd8MmyP+j1o0UBHIkxKI33aRIy+noi1y68r2qHP9ALXnVEsWLxkHcrlOfOcd DGVy1uRDnj1g== X-IronPort-AV: E=Sophos;i="5.78,457,1599548400"; d="scan'208";a="347280282" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Dec 2020 22:54:07 -0800 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Tue, 29 Dec 2020 14:56:13 +0800 Message-Id: <20201229065613.6780-1-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/TestSuite_vf_kernel:disable ipv6 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" it need disable ipv6 temporarily before checking the rx-packets of network interface. Signed-off-by: Xie wei --- tests/TestSuite_vf_kernel.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/TestSuite_vf_kernel.py b/tests/TestSuite_vf_kernel.py index 54676c2d..c1977f7b 100755 --- a/tests/TestSuite_vf_kernel.py +++ b/tests/TestSuite_vf_kernel.py @@ -464,6 +464,9 @@ class TestVfKernel(TestCase): """ verify packet statistic """ + time.sleep(1) + self.vm0_dut.send_expect("sysctl net.ipv6.conf.all.disable_ipv6=1", "#") + self.vm0_dut.send_expect("sysctl net.ipv6.conf.default.disable_ipv6=1", "#") time.sleep(10) out = self.vm0_dut.send_expect("ethtool -S %s" % self.vm0_intf0, "#") rx_packets_before = re.findall("\s*rx.*\d+.*packets:\s*(\d*)", out) -- 2.17.1