raw/ioat: remove special case for no status reporting
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 12 May 2021 14:50:00 +0000 (14:50 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 12 May 2021 18:48:41 +0000 (20:48 +0200)
commitf6e896640a4482c8fd7fc35e11939cd9724bc0ab
treeb6c84e038e9890fa2db521d41820e5674ccdedaa
parentdbc9ae665b5c8d18e2b38ab9059ba7dfc4088dc4
raw/ioat: remove special case for no status reporting

The special fast-path for returning completed descriptors without
reporting status or user-handles returns the number of completed ring
slots used, rather than the number of actual user-submitted jobs. This
means that the counts returned are too high, as the batch descriptor
slots would be included in the total. Therefore remove this special
case, and use the normal status-processing path so that the returned
count is correct in all cases.

Fixes: 245efe544d8e ("raw/ioat: report status of completed jobs")

Reported-by: Jiayu Hu <jiayu.hu@intel.com>
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Kevin Laatz <kevin.laatz@intel.com>
drivers/raw/ioat/rte_idxd_rawdev_fns.h