remove dpdk_nic_bind.py dependency 99/38599/3
authorYulong Pei <yulong.pei@intel.com>
Fri, 31 Mar 2023 09:50:17 +0000 (09:50 +0000)
committerPeter Mikus <peter.mikus@protonmail.ch>
Mon, 3 Apr 2023 06:31:03 +0000 (06:31 +0000)
commit327f93c093a163f60af19e34f20c0cba7d17e0a0
tree9e328f188e3b6c17b29d76a950396e0f38938612
parentca2c6c053978a8eac3674e29ffa00a90fb9afc3f
remove dpdk_nic_bind.py dependency

dpdk_nic_bind.py from <trex>/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 <yulong.pei@intel.com>
Change-Id: I5a3f641cd77d339aa7a213f410ce2efe7c322b8a
Signed-off-by: Yulong Pei <yulong.pei@intel.com>
resources/libraries/python/Constants.py
resources/libraries/python/TrafficGenerator.py