diff mbox series

[V1] tests/TestSuite_vf_kernel:disable ipv6

Message ID 20201229065613.6780-1-weix.xie@intel.com (mailing list archive)
State Accepted
Headers show
Series [V1] tests/TestSuite_vf_kernel:disable ipv6 | expand

Commit Message

Xie, WeiX Dec. 29, 2020, 6:56 a.m. UTC
it need disable ipv6 temporarily before checking the rx-packets of network interface.

Signed-off-by: Xie wei <weix.xie@intel.com>
---
 tests/TestSuite_vf_kernel.py | 3 +++
 1 file changed, 3 insertions(+)

Comments

Xie, WeiX Dec. 29, 2020, 7:02 a.m. UTC | #1
Tested-by:  Xie,WeiX < weix.xie@intel.com>

Regards,
Xie Wei


> -----Original Message-----
> From: Xie wei [mailto:weix.xie@intel.com]
> Sent: Tuesday, December 29, 2020 2:56 PM
> To: dts@dpdk.org
> Cc: Xie, WeiX <weix.xie@intel.com>
> Subject: [PATCH V1] tests/TestSuite_vf_kernel:disable ipv6
Tu, Lijuan Dec. 30, 2020, 5:35 a.m. UTC | #2
> it need disable ipv6 temporarily before checking the rx-packets of network
> interface.
> 
> Signed-off-by: Xie wei <weix.xie@intel.com>

Applied with commit message changed.
diff mbox series

Patch

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)