numam-dpdk/drivers/dma
Bruce Richardson a2b43447e9 dma/idxd: fix burst capacity calculation
When the maximum burst size supported by HW is less than the available
ring space, incorrect capacity was returned when there was already some
jobs queued up for submission. This was because the capacity calculation
failed to subtract the number of already-enqueued jobs from the max
burst size. After subtraction is done, ensure that any negative values
(which should never occur if the user respects the reported limits), are
clamped to zero.

Fixes: 9459de4edc ("dma/idxd: add burst capacity")
Cc: stable@dpdk.org

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Kevin Laatz <kevin.laatz@intel.com>
Tested-by: Jiayu Hu <jiayu.hu@intel.com>
2022-01-20 13:40:20 +01:00
..
cnxk dma/cnxk: add statistics 2021-11-08 00:08:45 +01:00
dpaa dma/dpaa: support statistics 2021-11-10 13:48:38 +01:00
hisilicon dma/hisilicon: support multi-process 2021-11-07 20:02:27 +01:00
idxd dma/idxd: fix burst capacity calculation 2022-01-20 13:40:20 +01:00
ioat dma/ioat: add burst capacity 2021-10-22 22:40:59 +02:00
skeleton fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
meson.build dma/dpaa: introduce DPAA DMA driver skeleton 2021-11-10 13:48:38 +01:00