[dts] [PATCH v1]tests/TestSuite_rxtx_offload:add support nic carlsville.

Tu, Lijuan lijuan.tu at intel.com
Mon Apr 20 06:56:58 CEST 2020


Applied failed, please rework, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Xu Hailin
> Sent: Monday, April 13, 2020 1:15 PM
> To: dts at dpdk.org
> Cc: Xu, HailinX <hailinx.xu at intel.com>
> Subject: [dts] [PATCH v1]tests/TestSuite_rxtx_offload:add support nic
> carlsville.
> 
> From: xuhailin <hailinx.xu at intel.com>
> 
> carlsville driver is i40e, so the nic support the suite.
> 
> Signed-off-by: xuhailin <hailinx.xu at intel.com>
> ---
>  tests/TestSuite_rxtx_offload.py | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/tests/TestSuite_rxtx_offload.py b/tests/TestSuite_rxtx_offload.py
> index 7facbf2..9049ded 100644
> --- a/tests/TestSuite_rxtx_offload.py
> +++ b/tests/TestSuite_rxtx_offload.py
> @@ -90,7 +90,7 @@ class TestRxTx_Offload(TestCase):
>          # Support i40e/ixgbe NICs
>          self.verify(self.nic in ["fortville_eagle", "fortville_spirit","fortville_25g",
>                                   "fortville_spirit_single", "fortpark_TLV",
> -                                 "niantic", "twinpond", "sagepond", "sageville"], "NIC
> Unsupported: " + str(self.nic))
> +                                 "niantic", "twinpond", "sagepond",
> + "sageville", "carlsville"], "NIC Unsupported: " + str(self.nic))
>          # Based on h/w type, choose how many ports to use
>          self.dut_ports = self.dut.get_ports(self.nic)
>          # Verify that enough ports are available @@ -502,7 +502,7 @@ class
> TestRxTx_Offload(TestCase):
>          self.dut.send_expect("set fwd txonly", "testpmd> ")
>          self.dut.send_expect("set verbose 1", "testpmd> ")
>          if (self.nic in ["fortville_eagle", "fortville_spirit","fortville_25g",
> -                         "fortville_spirit_single", "fortpark_TLV"]):
> +                         "fortville_spirit_single", "fortpark_TLV", "carlsville"]):
>              self.dut.send_expect("port stop 0", "testpmd> ")
>              self.dut.send_expect("port config 0 tx_offload mbuf_fast_free off",
> "testpmd> ")
>          self.check_port_config("tx", "NULL") @@ -657,7 +657,7 @@ class
> TestRxTx_Offload(TestCase):
>          capabilities = self.check_port_capability("tx")
>          # Disable per queue capability first, if it is FVL/Fortpark.
>          if (self.nic in ["fortville_eagle", "fortville_spirit","fortville_25g",
> -                         "fortville_spirit_single", "fortpark_TLV"]):
> +                         "fortville_spirit_single", "fortpark_TLV", "carlsville"]):
>              self.dut.send_expect("port stop 0", "testpmd> ")
>              self.dut.send_expect("port config 0 tx_offload mbuf_fast_free off",
> "testpmd> ")
>              self.dut.send_expect("port start 0", "testpmd> ") @@ -676,7 +676,7
> @@ class TestRxTx_Offload(TestCase):
>          """
>          # Only support i40e NICs
>          self.verify(self.nic in ["fortville_eagle", "fortville_spirit","fortville_25g",
> -                                 "fortville_spirit_single", "fortpark_TLV"], "%s nic not
> support rx offload setting by queue." % self.nic)
> +                                 "fortville_spirit_single",
> + "fortpark_TLV", "carlsville"], "%s nic not support rx offload setting
> + by queue." % self.nic)
>          # Check offload configuration by port and by queue.
>          self.pmdout.start_testpmd("%s" % self.cores, "--rxq=4 --txq=4")
>          offload = ["mbuf_fast_free"]
> --
> 2.17.1



More information about the dts mailing list