From: Xie wei <weix.xie@intel.com>
To: dts@dpdk.org
Cc: Xie wei <weix.xie@intel.com>
Subject: [dts] [PATCH V1] tests/TestSuite_vf_kernel:disable ipv6
Date: Tue, 29 Dec 2020 14:56:13 +0800 [thread overview]
Message-ID: <20201229065613.6780-1-weix.xie@intel.com> (raw)
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(+)
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
next reply other threads:[~2020-12-29 6:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-29 6:56 Xie wei [this message]
2020-12-29 7:02 ` Xie, WeiX
2020-12-30 5:35 ` Tu, Lijuan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201229065613.6780-1-weix.xie@intel.com \
--to=weix.xie@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).