* [dts] [PATCH V1] fix enable and disable ipv6 on FreeBSD
@ 2016-09-21 7:20 xu,gang
2016-09-21 7:20 ` [dts] [PATCH V1 1/4] fix test suite coremask xu,gang
` (4 more replies)
0 siblings, 5 replies; 10+ messages in thread
From: xu,gang @ 2016-09-21 7:20 UTC (permalink / raw)
To: dts; +Cc: xu,gang
Signed-off-by: xu,gang <gangx.xu@intel.com>
---
nics/net_device.py | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/nics/net_device.py b/nics/net_device.py
index 39bd4e5..bbe4bed 100644
--- a/nics/net_device.py
+++ b/nics/net_device.py
@@ -422,7 +422,11 @@ class NetDevice(object):
self.__send_expect("ifconfig %s up" % intf, "# ")
def enable_ipv6_freebsd(self, intf):
- pass
+ self.__send_expect("sysctl net.ipv6.conf.%s.disable_ipv6=0" %
+ intf, "# ")
+ self.__send_expect("ifconfig %s down" % intf, "# ")
+ self.__send_expect("ifconfig %s up" % intf, "# ")
+
@nic_has_driver
def disable_ipv6(self):
@@ -443,7 +447,10 @@ class NetDevice(object):
intf, "# ")
def disable_ipv6_freebsd(self, intf):
- pass
+ self.__send_expect("sysctl net.ipv6.conf.%s.disable_ipv6=1" %
+ intf, "# ")
+ self.__send_expect("ifconfig %s down" % intf, "# ")
+ self.__send_expect("ifconfig %s up" % intf, "# ")
@nic_has_driver
def get_ipv6_addr(self):
--
1.9.3
^ permalink raw reply [flat|nested] 10+ messages in thread
* [dts] [PATCH V1 1/4] fix test suite coremask
2016-09-21 7:20 [dts] [PATCH V1] fix enable and disable ipv6 on FreeBSD xu,gang
@ 2016-09-21 7:20 ` xu,gang
2016-09-21 7:51 ` Liu, Yong
2016-09-21 7:20 ` [dts] [PATCH V1 2/4] fix TestSuite unit_tests_lpm xu,gang
` (3 subsequent siblings)
4 siblings, 1 reply; 10+ messages in thread
From: xu,gang @ 2016-09-21 7:20 UTC (permalink / raw)
To: dts; +Cc: xu,gang
Signed-off-by: xu,gang <gangx.xu@intel.com>
---
tests/TestSuite_coremask.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/TestSuite_coremask.py b/tests/TestSuite_coremask.py
index 9fd039d..2458d8f 100644
--- a/tests/TestSuite_coremask.py
+++ b/tests/TestSuite_coremask.py
@@ -104,7 +104,7 @@ class TestCoremask(TestCase):
Check coremask parsing for more cores than available.
"""
- command_line = """./%s/app/test -c %s -n %d --log-level 8|tee out"""
+ command_line = """./%s/app/test -c %s -n %d --log-level 8 2 > &1 |tee out"""
# Default big coremask value 128
big_coremask_size = 128
--
1.9.3
^ permalink raw reply [flat|nested] 10+ messages in thread
* [dts] [PATCH V1 2/4] fix TestSuite unit_tests_lpm
2016-09-21 7:20 [dts] [PATCH V1] fix enable and disable ipv6 on FreeBSD xu,gang
2016-09-21 7:20 ` [dts] [PATCH V1 1/4] fix test suite coremask xu,gang
@ 2016-09-21 7:20 ` xu,gang
2016-09-21 8:01 ` Liu, Yong
2016-09-21 7:20 ` [dts] [PATCH V1 3/4] fix TestSuite unit_tests_mbuf xu,gang
` (2 subsequent siblings)
4 siblings, 1 reply; 10+ messages in thread
From: xu,gang @ 2016-09-21 7:20 UTC (permalink / raw)
To: dts; +Cc: xu,gang
Signed-off-by: xu,gang <gangx.xu@intel.com>
---
tests/TestSuite_unit_tests_lpm.py | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/tests/TestSuite_unit_tests_lpm.py b/tests/TestSuite_unit_tests_lpm.py
index dadb492..253cbb4 100644
--- a/tests/TestSuite_unit_tests_lpm.py
+++ b/tests/TestSuite_unit_tests_lpm.py
@@ -83,16 +83,19 @@ class TestUnitTestsLpmIpv6(TestCase):
"""
[arch, machine, env, toolchain] = self.target.split('-')
self.verify(arch == "x86_64", "lpm6 request huge memory")
-
- hugepage_ori = self.dut.get_total_huge_pages()
- self.dut.set_huge_pages(4096)
- hugepage_num = self.dut.get_total_huge_pages()
- self.verify(hugepage_num >= 4096, "failed to request huge memory")
+ if env == 'bsdapp':
+ self.dut.send_expect("kenv hw.contigmem.num_buffers=4", "#", 60)
+ else:
+ hugepage_ori = self.dut.get_total_huge_pages()
+ page_size = self.dut.send_expect("awk '/Hugepagesize/ {print $2}' /proc/meminfo", "# ")
+ if hugepage_ori * int(page_size) <= 4096 * 2048:
+ self.dut.set_huge_pages(4096)
+ hugepage_num = self.dut.get_total_huge_pages()
+ self.verify(hugepage_num >= 4096, "failed to request huge memory")
self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 60)
out = self.dut.send_expect("lpm6_autotest", "RTE>>", 3600)
self.dut.send_expect("quit", "# ")
- self.dut.set_huge_pages(hugepage_ori)
self.verify("Test OK" in out, "Test failed")
def tear_down(self):
--
1.9.3
^ permalink raw reply [flat|nested] 10+ messages in thread
* [dts] [PATCH V1 3/4] fix TestSuite unit_tests_mbuf
2016-09-21 7:20 [dts] [PATCH V1] fix enable and disable ipv6 on FreeBSD xu,gang
2016-09-21 7:20 ` [dts] [PATCH V1 1/4] fix test suite coremask xu,gang
2016-09-21 7:20 ` [dts] [PATCH V1 2/4] fix TestSuite unit_tests_lpm xu,gang
@ 2016-09-21 7:20 ` xu,gang
2016-09-21 7:45 ` Liu, Yong
2016-09-21 7:20 ` [dts] [PATCH V1 4/4] fix TestSuite unit_tests_ringpmd xu,gang
2016-09-21 7:47 ` [dts] [PATCH V1] fix enable and disable ipv6 on FreeBSD Liu, Yong
4 siblings, 1 reply; 10+ messages in thread
From: xu,gang @ 2016-09-21 7:20 UTC (permalink / raw)
To: dts; +Cc: xu,gang
Signed-off-by: xu,gang <gangx.xu@intel.com>
---
tests/TestSuite_unit_tests_mbuf.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/TestSuite_unit_tests_mbuf.py b/tests/TestSuite_unit_tests_mbuf.py
index c4dfaab..9493139 100644
--- a/tests/TestSuite_unit_tests_mbuf.py
+++ b/tests/TestSuite_unit_tests_mbuf.py
@@ -71,7 +71,7 @@ class TestUnitTestsMbuf(TestCase):
"""
self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 60)
- out = self.dut.send_expect("mbuf_autotest", "RTE>>", 60)
+ out = self.dut.send_expect("mbuf_autotest", "RTE>>", 300)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
--
1.9.3
^ permalink raw reply [flat|nested] 10+ messages in thread
* [dts] [PATCH V1 4/4] fix TestSuite unit_tests_ringpmd
2016-09-21 7:20 [dts] [PATCH V1] fix enable and disable ipv6 on FreeBSD xu,gang
` (2 preceding siblings ...)
2016-09-21 7:20 ` [dts] [PATCH V1 3/4] fix TestSuite unit_tests_mbuf xu,gang
@ 2016-09-21 7:20 ` xu,gang
2016-09-21 7:23 ` Liu, Yong
2016-09-21 7:47 ` [dts] [PATCH V1] fix enable and disable ipv6 on FreeBSD Liu, Yong
4 siblings, 1 reply; 10+ messages in thread
From: xu,gang @ 2016-09-21 7:20 UTC (permalink / raw)
To: dts; +Cc: xu,gang
Signed-off-by: xu,gang <gangx.xu@intel.com>
---
tests/TestSuite_unit_tests_ringpmd.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/TestSuite_unit_tests_ringpmd.py b/tests/TestSuite_unit_tests_ringpmd.py
index 2c83bcd..05305ff 100644
--- a/tests/TestSuite_unit_tests_ringpmd.py
+++ b/tests/TestSuite_unit_tests_ringpmd.py
@@ -71,12 +71,12 @@ class TestUnitTestsRingPmd(TestCase):
"""
dev_str = "--vdev=eth_ring0 --vdev=eth_ring1"
- self.dut.send_expect("./%s/app/test -n 1 -c ffff" % self.target, "R.*T.*E.*>.*>", 10)
+ self.dut.send_expect("./%s/app/test -n 1 -c ffff" % self.target, "R.*T.*E.*>.*>", 120)
out = self.dut.send_expect("ring_pmd_autotest", "RTE>>", 120)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Default no eth_ring devices Test failed")
- self.dut.send_expect("./%s/app/test -n 1 -c ffff %s" % (self.target, dev_str), "R.*T.*E.*>.*>", 10)
+ self.dut.send_expect("./%s/app/test -n 1 -c ffff %s" % (self.target, dev_str), "R.*T.*E.*>.*>", 120)
out = self.dut.send_expect("ring_pmd_autotest", "RTE>>", 120)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Two eth_ring devices test failed")
--
1.9.3
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dts] [PATCH V1 4/4] fix TestSuite unit_tests_ringpmd
2016-09-21 7:20 ` [dts] [PATCH V1 4/4] fix TestSuite unit_tests_ringpmd xu,gang
@ 2016-09-21 7:23 ` Liu, Yong
0 siblings, 0 replies; 10+ messages in thread
From: Liu, Yong @ 2016-09-21 7:23 UTC (permalink / raw)
To: Xu, GangX, dts; +Cc: Xu, GangX
Hi Gang, please add more comments about your environment. We need more information about why need enlarge waiting time.
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xu,gang
> Sent: Wednesday, September 21, 2016 3:20 PM
> To: dts@dpdk.org
> Cc: Xu, GangX
> Subject: [dts] [PATCH V1 4/4] fix TestSuite unit_tests_ringpmd
>
> Signed-off-by: xu,gang <gangx.xu@intel.com>
> ---
> tests/TestSuite_unit_tests_ringpmd.py | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/TestSuite_unit_tests_ringpmd.py
> b/tests/TestSuite_unit_tests_ringpmd.py
> index 2c83bcd..05305ff 100644
> --- a/tests/TestSuite_unit_tests_ringpmd.py
> +++ b/tests/TestSuite_unit_tests_ringpmd.py
> @@ -71,12 +71,12 @@ class TestUnitTestsRingPmd(TestCase):
> """
> dev_str = "--vdev=eth_ring0 --vdev=eth_ring1"
>
> - self.dut.send_expect("./%s/app/test -n 1 -c ffff" % self.target,
> "R.*T.*E.*>.*>", 10)
> + self.dut.send_expect("./%s/app/test -n 1 -c ffff" % self.target,
> "R.*T.*E.*>.*>", 120)
> out = self.dut.send_expect("ring_pmd_autotest", "RTE>>", 120)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Default no eth_ring devices Test
> failed")
>
> - self.dut.send_expect("./%s/app/test -n 1 -c ffff %s" %
> (self.target, dev_str), "R.*T.*E.*>.*>", 10)
> + self.dut.send_expect("./%s/app/test -n 1 -c ffff %s" %
> (self.target, dev_str), "R.*T.*E.*>.*>", 120)
> out = self.dut.send_expect("ring_pmd_autotest", "RTE>>", 120)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Two eth_ring devices test failed")
> --
> 1.9.3
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dts] [PATCH V1 3/4] fix TestSuite unit_tests_mbuf
2016-09-21 7:20 ` [dts] [PATCH V1 3/4] fix TestSuite unit_tests_mbuf xu,gang
@ 2016-09-21 7:45 ` Liu, Yong
0 siblings, 0 replies; 10+ messages in thread
From: Liu, Yong @ 2016-09-21 7:45 UTC (permalink / raw)
To: Xu, GangX, dts; +Cc: Xu, GangX
Same comment as "[PATCH V1 4/4] fix TestSuite unit_tests_ringpmd".
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xu,gang
> Sent: Wednesday, September 21, 2016 3:20 PM
> To: dts@dpdk.org
> Cc: Xu, GangX
> Subject: [dts] [PATCH V1 3/4] fix TestSuite unit_tests_mbuf
>
> Signed-off-by: xu,gang <gangx.xu@intel.com>
> ---
> tests/TestSuite_unit_tests_mbuf.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/TestSuite_unit_tests_mbuf.py
> b/tests/TestSuite_unit_tests_mbuf.py
> index c4dfaab..9493139 100644
> --- a/tests/TestSuite_unit_tests_mbuf.py
> +++ b/tests/TestSuite_unit_tests_mbuf.py
> @@ -71,7 +71,7 @@ class TestUnitTestsMbuf(TestCase):
> """
>
> self.dut.send_expect("./app/test/test -n 1 -c ffff",
> "R.*T.*E.*>.*>", 60)
> - out = self.dut.send_expect("mbuf_autotest", "RTE>>", 60)
> + out = self.dut.send_expect("mbuf_autotest", "RTE>>", 300)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> --
> 1.9.3
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dts] [PATCH V1] fix enable and disable ipv6 on FreeBSD
2016-09-21 7:20 [dts] [PATCH V1] fix enable and disable ipv6 on FreeBSD xu,gang
` (3 preceding siblings ...)
2016-09-21 7:20 ` [dts] [PATCH V1 4/4] fix TestSuite unit_tests_ringpmd xu,gang
@ 2016-09-21 7:47 ` Liu, Yong
4 siblings, 0 replies; 10+ messages in thread
From: Liu, Yong @ 2016-09-21 7:47 UTC (permalink / raw)
To: xu,gang, dts
Thanks gang. Applied into master branch.
On 09/21/2016 03:20 PM, xu,gang wrote:
> Signed-off-by: xu,gang <gangx.xu@intel.com>
> ---
> nics/net_device.py | 11 +++++++++--
> 1 file changed, 9 insertions(+), 2 deletions(-)
>
> diff --git a/nics/net_device.py b/nics/net_device.py
> index 39bd4e5..bbe4bed 100644
> --- a/nics/net_device.py
> +++ b/nics/net_device.py
> @@ -422,7 +422,11 @@ class NetDevice(object):
> self.__send_expect("ifconfig %s up" % intf, "# ")
>
> def enable_ipv6_freebsd(self, intf):
> - pass
> + self.__send_expect("sysctl net.ipv6.conf.%s.disable_ipv6=0" %
> + intf, "# ")
> + self.__send_expect("ifconfig %s down" % intf, "# ")
> + self.__send_expect("ifconfig %s up" % intf, "# ")
> +
>
> @nic_has_driver
> def disable_ipv6(self):
> @@ -443,7 +447,10 @@ class NetDevice(object):
> intf, "# ")
>
> def disable_ipv6_freebsd(self, intf):
> - pass
> + self.__send_expect("sysctl net.ipv6.conf.%s.disable_ipv6=1" %
> + intf, "# ")
> + self.__send_expect("ifconfig %s down" % intf, "# ")
> + self.__send_expect("ifconfig %s up" % intf, "# ")
>
> @nic_has_driver
> def get_ipv6_addr(self):
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dts] [PATCH V1 1/4] fix test suite coremask
2016-09-21 7:20 ` [dts] [PATCH V1 1/4] fix test suite coremask xu,gang
@ 2016-09-21 7:51 ` Liu, Yong
0 siblings, 0 replies; 10+ messages in thread
From: Liu, Yong @ 2016-09-21 7:51 UTC (permalink / raw)
To: xu,gang, dts
Gang, could u please give the reason in commit log. It look like some
useful information moved to stderr.
On 09/21/2016 03:20 PM, xu,gang wrote:
> Signed-off-by: xu,gang <gangx.xu@intel.com>
> ---
> tests/TestSuite_coremask.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/TestSuite_coremask.py b/tests/TestSuite_coremask.py
> index 9fd039d..2458d8f 100644
> --- a/tests/TestSuite_coremask.py
> +++ b/tests/TestSuite_coremask.py
> @@ -104,7 +104,7 @@ class TestCoremask(TestCase):
> Check coremask parsing for more cores than available.
> """
>
> - command_line = """./%s/app/test -c %s -n %d --log-level 8|tee out"""
> + command_line = """./%s/app/test -c %s -n %d --log-level 8 2 > &1 |tee out"""
>
> # Default big coremask value 128
> big_coremask_size = 128
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dts] [PATCH V1 2/4] fix TestSuite unit_tests_lpm
2016-09-21 7:20 ` [dts] [PATCH V1 2/4] fix TestSuite unit_tests_lpm xu,gang
@ 2016-09-21 8:01 ` Liu, Yong
0 siblings, 0 replies; 10+ messages in thread
From: Liu, Yong @ 2016-09-21 8:01 UTC (permalink / raw)
To: xu,gang, dts
Hi gang, test suite is not the right instance to handle hugepage. We
have planned to let unified module to handle this.
My suggestion is that just increased default FreeBSD huge page memory
size in framework.
And warning that huge page is insufficient in linux OS.
On 09/21/2016 03:20 PM, xu,gang wrote:
> Signed-off-by: xu,gang <gangx.xu@intel.com>
> ---
> tests/TestSuite_unit_tests_lpm.py | 15 +++++++++------
> 1 file changed, 9 insertions(+), 6 deletions(-)
>
> diff --git a/tests/TestSuite_unit_tests_lpm.py b/tests/TestSuite_unit_tests_lpm.py
> index dadb492..253cbb4 100644
> --- a/tests/TestSuite_unit_tests_lpm.py
> +++ b/tests/TestSuite_unit_tests_lpm.py
> @@ -83,16 +83,19 @@ class TestUnitTestsLpmIpv6(TestCase):
> """
> [arch, machine, env, toolchain] = self.target.split('-')
> self.verify(arch == "x86_64", "lpm6 request huge memory")
> -
> - hugepage_ori = self.dut.get_total_huge_pages()
> - self.dut.set_huge_pages(4096)
> - hugepage_num = self.dut.get_total_huge_pages()
> - self.verify(hugepage_num >= 4096, "failed to request huge memory")
> + if env == 'bsdapp':
> + self.dut.send_expect("kenv hw.contigmem.num_buffers=4", "#", 60)
> + else:
> + hugepage_ori = self.dut.get_total_huge_pages()
> + page_size = self.dut.send_expect("awk '/Hugepagesize/ {print $2}' /proc/meminfo", "# ")
> + if hugepage_ori * int(page_size) <= 4096 * 2048:
> + self.dut.set_huge_pages(4096)
> + hugepage_num = self.dut.get_total_huge_pages()
> + self.verify(hugepage_num >= 4096, "failed to request huge memory")
>
> self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 60)
> out = self.dut.send_expect("lpm6_autotest", "RTE>>", 3600)
> self.dut.send_expect("quit", "# ")
> - self.dut.set_huge_pages(hugepage_ori)
> self.verify("Test OK" in out, "Test failed")
>
> def tear_down(self):
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2016-09-21 7:57 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-21 7:20 [dts] [PATCH V1] fix enable and disable ipv6 on FreeBSD xu,gang
2016-09-21 7:20 ` [dts] [PATCH V1 1/4] fix test suite coremask xu,gang
2016-09-21 7:51 ` Liu, Yong
2016-09-21 7:20 ` [dts] [PATCH V1 2/4] fix TestSuite unit_tests_lpm xu,gang
2016-09-21 8:01 ` Liu, Yong
2016-09-21 7:20 ` [dts] [PATCH V1 3/4] fix TestSuite unit_tests_mbuf xu,gang
2016-09-21 7:45 ` Liu, Yong
2016-09-21 7:20 ` [dts] [PATCH V1 4/4] fix TestSuite unit_tests_ringpmd xu,gang
2016-09-21 7:23 ` Liu, Yong
2016-09-21 7:47 ` [dts] [PATCH V1] fix enable and disable ipv6 on FreeBSD Liu, Yong
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).