[dts] [PATCH V1] tests/rxtx_offload:add fortville_25g nic

Li, WenjieX A wenjiex.a.li at intel.com
Mon Jul 1 05:19:53 CEST 2019


Tested-by: Li, WenjieX A <wenjiex.a.li at intel.com>

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of yaobing
> Sent: Monday, July 1, 2019 11:23 AM
> To: dts at dpdk.org
> Cc: Yao, BingX Y <bingx.y.yao at intel.com>
> Subject: [dts] [PATCH V1] tests/rxtx_offload:add fortville_25g nic
> 
> add fortville_25g nic to support
> 
> Signed-off-by: yaobing <bingx.y.yao at intel.com>
> ---
>  tests/TestSuite_rxtx_offload.py | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/tests/TestSuite_rxtx_offload.py b/tests/TestSuite_rxtx_offload.py
> index 0ae83f4..bcef69d 100644
> --- a/tests/TestSuite_rxtx_offload.py
> +++ b/tests/TestSuite_rxtx_offload.py
> @@ -87,7 +87,7 @@ class TestRxTx_Offload(TestCase):
>          Run at the start of each test suite.
>          New rx tx offload API Prerequisites
>          """
> -        self.verify(self.nic in ["fortville_eagle", "fortville_spirit",
> +        self.verify(self.nic in ["fortville_eagle",
> + "fortville_spirit","fortville_25g",
>                                   "fortville_spirit_single", "niantic"], "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) @@ -424,7 +424,7 @@ class
> TestRxTx_Offload(TestCase):
>          self.pmdout.start_testpmd("%s" % self.cores, "--rxq=4 --txq=4 --port-
> topology=loop")
>          self.dut.send_expect("set fwd txonly", "testpmd> ")
>          self.dut.send_expect("set verbose 1", "testpmd> ")
> -        if (self.nic in ["fortville_eagle", "fortville_spirit",
> +        if (self.nic in ["fortville_eagle",
> + "fortville_spirit","fortville_25g",
>                           "fortville_spirit_single"]):
>              self.dut.send_expect("port stop 0", "testpmd> ")
>              self.dut.send_expect("port config 0 tx_offload mbuf_fast_free off",
> "testpmd> ") @@ -465,7 +465,7 @@ class TestRxTx_Offload(TestCase):
>          self.pmdout.start_testpmd("%s" % self.cores, "--rxq=4 --txq=4 --port-
> topology=loop --tx-offloads=0x0001")
>          self.dut.send_expect("set fwd txonly", "testpmd> ")
>          self.dut.send_expect("set verbose 1", "testpmd> ")
> -        if (self.nic in ["fortville_eagle", "fortville_spirit",
> +        if (self.nic in ["fortville_eagle",
> + "fortville_spirit","fortville_25g",
>                           "fortville_spirit_single", "fortpark_TLV"]):
>              self.dut.send_expect("port stop 0", "testpmd> ")
>              self.dut.send_expect("port config 0 tx_offload mbuf_fast_free off",
> "testpmd> ") @@ -532,7 +532,7 @@ class TestRxTx_Offload(TestCase):
>          self.pmdout.start_testpmd("%s" % self.cores, "--rxq=4 --txq=4")
>          capabilities = self.check_port_capability("tx")
>          # Disable per queue capability first, if it is FVL.
> -        if (self.nic in ["fortville_eagle", "fortville_spirit",
> +        if (self.nic in ["fortville_eagle",
> + "fortville_spirit","fortville_25g",
>                           "fortville_spirit_single", "fortpark_TLV"]):
>              self.dut.send_expect("port stop 0", "testpmd> ")
>              self.dut.send_expect("port config 0 tx_offload mbuf_fast_free off",
> "testpmd> ") @@ -551,7 +551,7 @@ class TestRxTx_Offload(TestCase):
>          Set Rx offload by queue.
>          """
>          # Only support FVL
> -        self.verify(self.nic in ["fortville_eagle", "fortville_spirit",
> +        self.verify(self.nic in ["fortville_eagle",
> + "fortville_spirit","fortville_25g",
>                                   "fortville_spirit_single",], "%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")
> --
> 2.17.2



More information about the dts mailing list