[dts] [PATCH] jumboframes: Fix bug for fm10k NIC

Liu, Yong yong.liu at intel.com
Wed Oct 14 12:19:51 CEST 2015


Hi Michael,
Same comment, we have excel file tracking those features what we do not support.
For the RRC Testpoint, I think we need implement one structure for this. We cannot reply on manual commands to run DTS.

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Michael Qiu
> Sent: Wednesday, October 14, 2015 4:15 AM
> To: dts at dpdk.org
> Subject: [dts] [PATCH] jumboframes: Fix bug for fm10k NIC
> 
> For Ruby Rapid, in Testpoint should run "set port config 1,5
> max_frame_size 9000"
> and "set port config 1,5,20,22 rx_cut_through off"
> 
> Singed-off-by: Michael Qiu <michael.qiu at intel.com>
> ---
>  tests/TestSuite_jumboframes.py | 12 ++++++++----
>  1 file changed, 8 insertions(+), 4 deletions(-)
> 
> diff --git a/tests/TestSuite_jumboframes.py
> b/tests/TestSuite_jumboframes.py
> index c5c70b9..e9a6abf 100644
> --- a/tests/TestSuite_jumboframes.py
> +++ b/tests/TestSuite_jumboframes.py
> @@ -93,7 +93,9 @@ class TestJumboframes(TestCase):
>          p1rx_err -= gp1rx_err
> 
>          if received:
> -            self.verify(p0tx_pkts == p1rx_pkts and p0tx_bytes == pktsize
> and p1rx_bytes == pktsize,
> +            #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")
>          else:
>              #self.verify(p0tx_pkts == p1rx_pkts and (p1rx_err == 1 or
> p1rx_pkts == 0),
> @@ -152,10 +154,12 @@ class TestJumboframes(TestCase):
>          This case aims to test transmitting jumbo frame packet on testpmd
> without
>          jumbo frame support.
>          """
> -        self.pmdout.start_testpmd("Default", "--max-pkt-len=%d" %
> (ETHER_STANDARD_MTU))
> +        # RRC has no ability to set the max pkt len to hardware
>          if self.nic == "redrockcanyou":
> -            self.dut.send_expect("set promisc all off", "testpmd> ")
> -            self.dut.send_expect("set fwd mac", "testpmd> ")
> +            print dts.RED("fm10k not support this case\n")
> +            return
> +        self.pmdout.start_testpmd("Default", "--max-pkt-len=%d" %
> (ETHER_STANDARD_MTU))
> +        self.dut.send_expect("set fwd mac", "testpmd> ")
>          self.dut.send_expect("start", "testpmd> ")
> 
>          self.jumboframes_send_packet(ETHER_STANDARD_MTU + 1, False)
> --
> 1.9.3



More information about the dts mailing list