From 327f93c093a163f60af19e34f20c0cba7d17e0a0 Mon Sep 17 00:00:00 2001 From: Yulong Pei Date: Fri, 31 Mar 2023 09:50:17 +0000 Subject: remove dpdk_nic_bind.py dependency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit dpdk_nic_bind.py from /scripts/ is out of date, often bumped into errors when using it to bind nic port, e.g. /usr/bin/python3 dpdk_nic_bind.py --bind=vfio-pci 0000:ca:00.0 /opt/trex-core-3.00/scripts/dpdk_nic_bind.py:40: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives   from distutils.util import strtobool Error: bind failed for 0000:ca:00.0 - Cannot bind to driver vfio-pci so remove dpdk_nic_bind.py dependency in csit. Signed-off-by: Yulong Pei Change-Id: I5a3f641cd77d339aa7a213f410ce2efe7c322b8a Signed-off-by: Yulong Pei --- resources/libraries/python/Constants.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'resources/libraries/python/Constants.py') diff --git a/resources/libraries/python/Constants.py b/resources/libraries/python/Constants.py index eda94fe40f..1049e47f40 100644 --- a/resources/libraries/python/Constants.py +++ b/resources/libraries/python/Constants.py @@ -216,6 +216,10 @@ class Constants: TREX_EXTRA_CMDLINE = get_str_from_env( u"TREX_EXTRA_CMDLINE", u"--mbuf-factor 32") + # TRex port driver default vfio-pci or set to igb_uio + TREX_PORT_DRIVER = get_str_from_env( + u"TREX_PORT_DRIVER", u"vfio-pci") + # Graph node variant value GRAPH_NODE_VARIANT = get_str_from_env(u"GRAPH_NODE_VARIANT", u"") -- cgit 1.2.3-korg