[V1] tests/TestSuite_vhost_1024_ethports: modify max vdev number to 1023
Commit Message
From: JiangYu <yux.jiang@intel.com>
According to DPDK-24125, the value of MAX_FDS is 1024 and there is an extra gobal fd,
the number of vdev is limit to 1023, so modify script to adapt.
Signed-off-by: JiangYu <yux.jiang@intel.com>
---
tests/TestSuite_vhost_1024_ethports.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Comments
Tested-by: JiangYuX <yux.jiang@intel.com>
Best Regards
Jiang yu
> -----Original Message-----
> From: JiangYuX [mailto:yux.jiang@intel.com]
> Sent: Friday, October 16, 2020 1:00 AM
> To: dts@dpdk.org
> Cc: Jiang, YuX <yux.jiang@intel.com>
> Subject: [dts] [PATCH V1] tests/TestSuite_vhost_1024_ethports: modify max
> vdev number to 1023
@@ -44,7 +44,8 @@ class TestVhost1024Ethports(TestCase):
"""
Run at the start of each test suite.
"""
- self.max_ethport = 1024
+ # According to DPDK-24125, the number of vdev is limit to 1023
+ self.max_ethport = 1023
self.queue = 1
self.dut_ports = self.dut.get_ports()
self.verify(len(self.dut_ports) >= 1, 'Insufficient ports for testing')