[dts] [PATCH V1] tests/generic_filter: fix testpmd not support 128 queues

Liu, Yong yong.liu at intel.com
Mon Aug 28 03:16:16 CEST 2017


Peipei,
Look like your patch only aimed for 8259x nics. If that please add judgement that check self.kdriver is ixgbe first and then do these changes.
It will waste some time if we are running test over other types of Nics.

Thanks,
Marvin

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of lu,peipei
> Sent: Friday, August 25, 2017 4:36 PM
> To: dts at dpdk.org
> Cc: Lu, PeipeiX <peipeix.lu at intel.com>
> Subject: [dts] [PATCH V1] tests/generic_filter: fix testpmd not support
> 128 queues
> 
> due to testpmd support 64 queues by default,so test the case need to
> modify ixgbe_ethdev.h.
> 
> Signed-off-by: lu,peipei <peipeix.lu at intel.com>
> ---
>  tests/TestSuite_generic_filter.py | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/TestSuite_generic_filter.py
> b/tests/TestSuite_generic_filter.py
> index c42ec5a..a8eb2d9 100644
> --- a/tests/TestSuite_generic_filter.py
> +++ b/tests/TestSuite_generic_filter.py
> @@ -55,6 +55,8 @@ class TestGeneric_filter(TestCase):
> 
>          Generic filter Prerequistites
>          """
> +	self.dut.send_expect("sed -i -e 's/#define
> IXGBE_NONE_MODE_TX_NB_QUEUES 64$/#define IXGBE_NONE_MODE_TX_NB_QUEUES
> 128/' drivers/net/ixgbe/ixgbe_ethdev.h", "# ",30)
> +	self.dut.build_install_dpdk(self.target)
> 
>          # Based on h/w type, choose how many ports to use
>          ports = self.dut.get_ports(self.nic)
> @@ -690,7 +692,7 @@ class TestGeneric_filter(TestCase):
> 
>      def test_128_queues(self):
>          # testpmd can't support assign queue to received package, so
> can't test
> -        self.verify(False, "testpmd not support assign queue 127 received
> package")
> +        #self.verify(False, "testpmd not support assign queue 127
> received package")
>          if self.nic == "niantic":
>              global valports
>              total_mbufs = self.request_mbufs(128) * len(valports)
> @@ -825,3 +827,4 @@ class TestGeneric_filter(TestCase):
>          Run after each test case.
>          """
>          self.dut.kill_all()
> +	self.dut.send_expect("sed -i -e 's/#define
> IXGBE_NONE_MODE_TX_NB_QUEUES 128$/#define IXGBE_NONE_MODE_TX_NB_QUEUES
> 64/' drivers/net/ixgbe/ixgbe_ethdev.h", "# ",30)
> --
> 1.9.3



More information about the dts mailing list