raw/ioat: fix script for configuring small number of queues
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 4 May 2021 13:14:51 +0000 (14:14 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 4 May 2021 15:12:25 +0000 (17:12 +0200)
commitcfb286ab2b487b6e40f958a096fbe8cd13aa055d
tree150a9ad481b1e1ae1cf2a5973348ba6ea0535cea
parenta2bc5d7bcc11438404027c119e889f6cd4c2bdfa
raw/ioat: fix script for configuring small number of queues

The dpdk_idxd_cfg.py script included with the driver for convenience did
not work properly where the number of queues to be configured was
less than the number of groups or engines. This was because there would
be configured groups/engines not assigned to queues. Fix this by
limiting the engine and group counts to be no bigger than the number of
queues.

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