* [dts] [PATCH] Debug failed case jumboframes_bigger_jumbo
@ 2015-09-17 8:51 changru
2015-09-17 9:07 ` Liu, Yong
0 siblings, 1 reply; 2+ messages in thread
From: changru @ 2015-09-17 8:51 UTC (permalink / raw)
To: dts
On 1G NICs, when the jubmo frame MTU set as 9000, the software adjust it to 9004.
So, we should send a 9005 bytes packet to test the jumboframes_bigger_jumbo case.
Signed-off-by: changru <changrux.fan@intel.com>
---
tests/TestSuite_jumboframes.py | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/tests/TestSuite_jumboframes.py b/tests/TestSuite_jumboframes.py
index c5c70b9..5ad9e00 100644
--- a/tests/TestSuite_jumboframes.py
+++ b/tests/TestSuite_jumboframes.py
@@ -208,8 +208,14 @@ class TestJumboframes(TestCase):
self.dut.send_expect("set promisc all off", "testpmd> ")
self.dut.send_expect("set fwd mac", "testpmd> ")
self.dut.send_expect("start", "testpmd> ")
-
- self.jumboframes_send_packet(ETHER_JUMBO_FRAME_MTU + 1, False)
+
+ """
+ On 1G NICs, when the jubmo frame MTU set as 9000, the software adjust it to 9004.
+ """
+ if self.nic in ["powerville", "springville", "kawela_4"]:
+ self.jumboframes_send_packet(ETHER_JUMBO_FRAME_MTU + 4 + 1, False)
+ else:
+ self.jumboframes_send_packet(ETHER_JUMBO_FRAME_MTU + 1, False)
self.dut.send_expect("quit", "# ", 30)
--
2.1.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dts] [PATCH] Debug failed case jumboframes_bigger_jumbo
2015-09-17 8:51 [dts] [PATCH] Debug failed case jumboframes_bigger_jumbo changru
@ 2015-09-17 9:07 ` Liu, Yong
0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2015-09-17 9:07 UTC (permalink / raw)
To: changru, dts
Applied. Thanks.
On 09/17/2015 04:51 PM, changru wrote:
> On 1G NICs, when the jubmo frame MTU set as 9000, the software adjust it to 9004.
> So, we should send a 9005 bytes packet to test the jumboframes_bigger_jumbo case.
>
> Signed-off-by: changru <changrux.fan@intel.com>
> ---
> tests/TestSuite_jumboframes.py | 10 ++++++++--
> 1 file changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/tests/TestSuite_jumboframes.py b/tests/TestSuite_jumboframes.py
> index c5c70b9..5ad9e00 100644
> --- a/tests/TestSuite_jumboframes.py
> +++ b/tests/TestSuite_jumboframes.py
> @@ -208,8 +208,14 @@ class TestJumboframes(TestCase):
> self.dut.send_expect("set promisc all off", "testpmd> ")
> self.dut.send_expect("set fwd mac", "testpmd> ")
> self.dut.send_expect("start", "testpmd> ")
> -
> - self.jumboframes_send_packet(ETHER_JUMBO_FRAME_MTU + 1, False)
> +
> + """
> + On 1G NICs, when the jubmo frame MTU set as 9000, the software adjust it to 9004.
> + """
> + if self.nic in ["powerville", "springville", "kawela_4"]:
> + self.jumboframes_send_packet(ETHER_JUMBO_FRAME_MTU + 4 + 1, False)
> + else:
> + self.jumboframes_send_packet(ETHER_JUMBO_FRAME_MTU + 1, False)
>
> self.dut.send_expect("quit", "# ", 30)
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-09-17 9:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-17 8:51 [dts] [PATCH] Debug failed case jumboframes_bigger_jumbo changru
2015-09-17 9:07 ` 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).