[dts] [PATCH] change the verification of pktbytes in jumboframes cases
Liu, Yong
yong.liu at intel.com
Fri Nov 27 09:10:10 CET 2015
Thanks, applied.
> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of yongjie
> Sent: Friday, November 27, 2015 3:10 PM
> To: dts at dpdk.org
> Cc: Gu, YongjieX
> Subject: [dts] [PATCH] change the verification of pktbytes in jumboframes
> cases
>
> From: Gu yongjie <yongjiex.gu at intel.com>
>
> Change the verification of pktbytes,because DPDK removes the crc bytes
> from byte counter.
>
> Signed-off-by: Gu yongjie <yongjiex.gu at intel.com>
> ---
> tests/TestSuite_jumboframes.py | 8 ++------
> 1 files changed, 2 insertions(+), 6 deletions(-)
>
> diff --git a/tests/TestSuite_jumboframes.py
> b/tests/TestSuite_jumboframes.py
> index a295624..1cceba8 100644
> --- a/tests/TestSuite_jumboframes.py
> +++ b/tests/TestSuite_jumboframes.py
> @@ -93,12 +93,8 @@ class TestJumboframes(TestCase):
> p1rx_err -= gp1rx_err
>
> if received:
> - if self.nic in ["fortville_eagle", "fortville_spirit",
> "fortville_spirit_single"]:
> - self.verify((p0tx_pkts == p1rx_pkts) and ((p0tx_bytes + 4)
> == pktsize) and (p1rx_bytes == pktsize),
> - "packet pass assert error")
> - else:
> - self.verify((p0tx_pkts == p1rx_pkts) and (p0tx_bytes ==
> pktsize) and (p1rx_bytes == pktsize),
> - "packet pass assert error")
> + self.verify((p0tx_pkts == p1rx_pkts) and ((p0tx_bytes + 4) ==
> pktsize) and ((p1rx_bytes + 4) == pktsize),
> + "packet pass assert error")
> else:
> #self.verify(p0tx_pkts == p1rx_pkts and (p1rx_err == 1 or
> p1rx_pkts == 0),
> self.verify(p1rx_err == 1 or p0tx_pkts == 0, "packet drop
> assert error")
> --
> 1.7.4.4
More information about the dts
mailing list