[dts] [DTS][PATCH] fix jumbo frame crc issue for fortville nics

Liu, Yong yong.liu at intel.com
Fri Nov 13 10:14:28 CET 2015


Applied. Thanks.

On 11/13/2015 03:35 PM, Jingguo Fu wrote:
> Changes to be committed:
> 	modified:   tests/TestSuite_jumboframes.py
Take care, this should not be included in commit log.

> Signed-off-by: Jingguo Fu <jingguox.fu at intel.com>
> ---
>   tests/TestSuite_jumboframes.py | 10 ++++++----
>   1 file changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/tests/TestSuite_jumboframes.py b/tests/TestSuite_jumboframes.py
> index d9261e6..a295624 100644
> --- a/tests/TestSuite_jumboframes.py
> +++ b/tests/TestSuite_jumboframes.py
> @@ -93,10 +93,12 @@ class TestJumboframes(TestCase):
>           p1rx_err -= gp1rx_err
>   
>           if received:
> -            #some nic like RRC always strip CRC, so it should be pktsize - 4
> -            size_equal = p0tx_bytes == p1rx_bytes and (p1rx_bytes == pktsize or  p1rx_bytes == pktsize - 4)
> -            self.verify(p0tx_pkts == p1rx_pkts and size_equal,
> -                        "packet pass assert error")
> +            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")
>           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")



More information about the dts mailing list