]> git.droids-corp.org - dpdk.git/commit
dma/idxd: fix paths to driver sysfs directory
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 11 Jan 2022 13:41:03 +0000 (13:41 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 20 Jan 2022 13:04:40 +0000 (14:04 +0100)
commit3277676319f61dbc14a38e5c9c79d97c59889855
treeb0aa5f4702933a2d459bdec33cb49e0d0761594f
parenta2b43447e923a54a4d8293fae960fbe2dc3f641e
dma/idxd: fix paths to driver sysfs directory

Recent kernel changes[1][2] mean that we cannot guarantee that the paths
in sysfs used for creating/binding a DSA or workqueue instance will be
as given in the utility script, since they are now "compatibility-mode
only". Update script to support both new paths and compatibility ones.

[1] https://lore.kernel.org/all/162637445139.744545.6008938867943724701.stgit@djiang5-desk3.ch.intel.com/
[2] https://lore.kernel.org/all/162637468705.744545.4399080971745974435.stgit@djiang5-desk3.ch.intel.com/

Fixes: 01863b9d2354 ("raw/ioat: include example configuration script")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Kevin Laatz <kevin.laatz@intel.com>
drivers/dma/idxd/dpdk_idxd_cfg.py