raw/ioat: fix config script queue size calculation
authorKevin Laatz <kevin.laatz@intel.com>
Fri, 16 Jul 2021 13:21:55 +0000 (13:21 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 20 Jul 2021 13:28:43 +0000 (15:28 +0200)
commit9cf9ac48b116e371e25e1daca33636e9cdc07db8
tree96d52feec88221cf74b800715f17cb23a7a9d8c9
parentde8606bf73323dfa8395f2dc0a93dc6194ff21b7
raw/ioat: fix config script queue size calculation

The queue size calculation is currently based on "max_tokens" rather than
"max_work_queues_size". This is resulting in the queue size being
incorrectly configured when using the script to configure devices bound to
the IDXD kernel driver.
This patch fixes this miscalculation so devices are configured with
appropriate queue size.

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