[dts] [PATCH 1/1] Total Packet Length includes CRC(4 bytes) so no need of adding extra 4 bytes for fastlinq Adapters.

Tu, Lijuan lijuan.tu at intel.com
Wed Jul 3 11:23:20 CEST 2019


Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Yash Sharma
> Sent: Thursday, June 27, 2019 2:50 PM
> To: dts at dpdk.org; shshaikh at marvell.com
> Cc: psurana at marvell.com; srane at marvell.com; yash
> <ysharma at marvell.com>
> Subject: [dts] [PATCH 1/1] Total Packet Length includes CRC(4 bytes) so no
> need of adding extra 4 bytes for fastlinq Adapters.
> 
> From: yash <ysharma at marvell.com>
> 
> Signed-off-by: yash <ysharma at marvell.com>
> ---
>  tests/TestSuite_jumboframes.py | 16 +++++++++++-----
>  1 file changed, 11 insertions(+), 5 deletions(-)
> 
> diff --git a/tests/TestSuite_jumboframes.py
> b/tests/TestSuite_jumboframes.py index cf4335a..1b5aab5 100644
> --- a/tests/TestSuite_jumboframes.py
> +++ b/tests/TestSuite_jumboframes.py
> @@ -93,12 +93,18 @@ class TestJumboframes(TestCase):
>          rx_err -= rx_err_ori
> 
>          if received:
> -            self.verify(self.pmdout.check_tx_bytes(tx_pkts, rx_pkts)
> -                         and ( self.pmdout.check_tx_bytes(tx_bytes + 4, pktsize ))
> -                         and ((rx_bytes + 4) == pktsize),
> -                        "packet pass assert error")
> +           if self.nic.startswith('fastlinq'):
> +              self.verify(self.pmdout.check_tx_bytes(tx_pkts, rx_pkts)
> +                           and ( self.pmdout.check_tx_bytes(tx_bytes, pktsize ))
> +                           and (rx_bytes == pktsize),
> +                           "packet pass assert error")
> +           else:
> +              self.verify(self.pmdout.check_tx_bytes(tx_pkts, rx_pkts)
> +                           and ( self.pmdout.check_tx_bytes(tx_bytes + 4, pktsize ))
> +                           and ((rx_bytes + 4) == pktsize),
> +                           "packet pass assert error")
>          else:
> -            self.verify(rx_err == 1 or tx_pkts == 0, "packet drop assert error")
> +              self.verify(rx_err == 1 or tx_pkts == 0, "packet drop
> + assert error")
>          return out
> 
>      #
> --
> 1.8.3.1



More information about the dts mailing list