raw/ioat: fix termination descriptor for batch
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Fri, 16 Jul 2021 13:50:27 +0000 (14:50 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 20 Jul 2021 13:28:43 +0000 (15:28 +0200)
commita03e4b62a79b3857d8097d8e95a44e7a0ae3f4f5
treee50a3f684fa612ad95c533f7f63b648804385d5d
parent9cf9ac48b116e371e25e1daca33636e9cdc07db8
raw/ioat: fix termination descriptor for batch

When batch_size == 1, idxd has to add a dummy termination descriptor
to satisfy HW requirements.
Right now it uses NOP descriptor with FENCE flag.
This is excessive and fencing can slowdown things quite significantly.
The patch removes FENCE flag from termination dummy descriptor.
That helps to improve performance for no-burst scenarios.

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

Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
drivers/raw/ioat/rte_idxd_rawdev_fns.h