[dts] [PATCH]tests enable_disablejumbo: adjust 1G NICs packet length
Liu, Yong
yong.liu at intel.com
Thu Dec 10 03:08:43 CET 2015
Applied. Thanks.
On 12/08/2015 03:00 PM, Lijuan Tu wrote:
> From: lijuan tu <lijuanx.a.tu at intel.com>
>
> On 1G NICs, when the jubmo frame MTU set as X, the software adjust it to (X + 4).
>
> Signed-off-by: lijuan tu <lijuanx.a.tu at intel.com>
> ---
> tests/TestSuite_shutdown_api.py | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py
> index 241e072..efbe934 100644
> --- a/tests/TestSuite_shutdown_api.py
> +++ b/tests/TestSuite_shutdown_api.py
> @@ -365,6 +365,11 @@ class TestShutdownApi(TestCase):
> self.dut.send_expect("port config all hw-vlan off", "testpmd> ")
> self.dut.send_expect("port start all", "testpmd> ", 100)
> self.dut.send_expect("start", "testpmd> ")
> + """
> + On 1G NICs, when the jubmo frame MTU set as X, the software adjust it to (X + 4).
> + """
> + if self.nic in ["powerville", "springville", "kawela_4"]:
> + jumbo_size += 4
> self.check_forwarding(pktSize=jumbo_size - 1)
> self.check_forwarding(pktSize=jumbo_size)
> self.check_forwarding(pktSize=jumbo_size + 1, received=False)
More information about the dts
mailing list