raw/ioat: handle PCI address in configuration script
authorKevin Laatz <kevin.laatz@intel.com>
Fri, 28 May 2021 13:55:58 +0000 (14:55 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 17 Jun 2021 07:37:15 +0000 (09:37 +0200)
commit1e5aade752ab8dc3f91cc9507ed03d759280c9d8
tree72e4926084a36bd02d3b805cb5b19412d6247eeb
parentacbedb58fa5ee278f8a795a02000e136a95e3a6a
raw/ioat: handle PCI address in configuration script

Currently the user needs to find the DSA instance number for any DSA device
they would like to configure using this script, which can be cumbersome and
error-prone since the instance numbering may change when changing the
binding of the devices between vfio-pci and idxd.

This patch improves the usability of the script by adding the ability to
specify the DSA device to configure using the device's PCI address instead
of the DSA instance number. For example, "$dpdk_idxd_cfg.py 0" and
"$dpdk_idxd_cfg.py 6a:01.0" are both valid references to the same device
(assuming the numbering).

Signed-off-by: Kevin Laatz <kevin.laatz@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
drivers/raw/ioat/dpdk_idxd_cfg.py