raw/ioat: rework SW ring layout
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 4 May 2021 13:14:56 +0000 (14:14 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 4 May 2021 15:37:47 +0000 (17:37 +0200)
commit74464005a2af86a30c752709953a0c5b01873fb7
tree76fb5ecdaabda901b471a22bb1a61420ca1409dc
parentf82c87eb14a47094548f0540d8a10fed6b3ae988
raw/ioat: rework SW ring layout

The ring management in the idxd part of the driver is more complex than
it needs to be, tracking individual batches in a ring and having null
descriptors as padding to avoid having single-operation batches. This can
be simplified by using a regular ring-based layout, with additional
overflow at the end to ensure that the one does not need to wrap within a
batch.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
drivers/raw/ioat/idxd_pci.c
drivers/raw/ioat/ioat_common.c
drivers/raw/ioat/ioat_rawdev_test.c
drivers/raw/ioat/rte_idxd_rawdev_fns.h