[dts] [PATCH V1] tests/TestSuite_vhost_1024_ethports: adapt max vdev number to 1023
JiangYuX
yux.jiang at intel.com
Fri Oct 16 18:59:51 CEST 2020
From: JiangYu <yux.jiang at intel.com>
The value of MAX_FDS is 1024 and there is an extra gobal fd, DPDK limits
the number of vdev to 1023, so modify script to adapt.
Signed-off-by: JiangYu <yux.jiang at intel.com>
---
tests/TestSuite_vhost_1024_ethports.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/TestSuite_vhost_1024_ethports.py b/tests/TestSuite_vhost_1024_ethports.py
index afac0fa..5eb89c3 100644
--- a/tests/TestSuite_vhost_1024_ethports.py
+++ b/tests/TestSuite_vhost_1024_ethports.py
@@ -44,7 +44,8 @@ class TestVhost1024Ethports(TestCase):
"""
Run at the start of each test suite.
"""
- self.max_ethport = 1024
+ # DPDK limits the number of vdev 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')
--
2.7.4
More information about the dts
mailing list