[dts] [PATCH V1]tests/runtime_queue_number: fix the issue ofcreating VF on eagle in two ports

Tu, Lijuan lijuan.tu at intel.com
Mon Nov 5 02:34:25 CET 2018



> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of han,yingya
> Sent: Friday, November 2, 2018 3:57 PM
> To: dts at dpdk.org
> Cc: Han, YingyaX <yingyax.han at intel.com>
> Subject: [dts] [PATCH V1]tests/runtime_queue_number: fix the issue
> ofcreating VF on eagle in two ports
> 
> FVL_eagle nic has two specifications, namely 2*10G and 4*10G.
> 
> Signed-off-by: han,yingya <yingyax.han at intel.com>
> ---
>  tests/TestSuite_runtime_queue_number.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/TestSuite_runtime_queue_number.py
> b/tests/TestSuite_runtime_queue_number.py
> index 12263f3..4a51fa2 100644
> --- a/tests/TestSuite_runtime_queue_number.py
> +++ b/tests/TestSuite_runtime_queue_number.py
> @@ -251,12 +251,12 @@ class TestRuntime_Queue_Number(TestCase):
>          """
>          set max queue number when setting max VFs on 1 PF port.
>          """
> -        if (self.nic in ["fortville_eagle", "fortpark_TLV"]):
> +        if (self.nic in ["fortville_eagle", "fortpark_TLV"]) and
> len(self.dut_ports) > 2:
[Lijuan] why require 2 pf ports, I found only 1 port used here.
>              self.setup_env(32)
>              # failed to set VF max queue num to 16.
>              out = self.pmdout.start_testpmd("%s" % self.cores,
> eal_param="-w %s,queue-num-per-vf=16 --file-prefix=test1 --socket-mem
> 1024,1024" % self.pf_pci)
>              self.verify("exceeds the hardware maximum 384" in out,
> "the queue num exceeds the hardware maximum 384")
> -        elif (self.nic in ["fortville_spirit", "fortville_spirit_single"]):
> +        elif (self.nic in ["fortville_spirit", "fortville_spirit_single",
> "fortville_eagle"]):
>              self.setup_env(64)
>              # failed to set VF max queue num to 16.
>              out = self.pmdout.start_testpmd("%s" % self.cores,
> eal_param="-w %s,queue-num-per-vf=16 --file-prefix=test1 --socket-mem
> 1024,1024" % self.pf_pci)
> --
> 2.17.2



More information about the dts mailing list