+12
−7
+2
−4
+3
−1
Loading
Rather than limiting the batch size to DESC_PER_BATCH, use the maximum batch size value presented from the device. To accommodate increased the allocated descriptors for a batch. Prior to this patch full batch was flushed on task submission, meanwhile any built up batch was submitted in spdk_idxd_process_events(). Rate of flushing is now defined by IDXD_MIN_BATCH_FLUSH, while still allowing for larger batches to be created within single task submission. If IDXD_MIN_BATCH_FLUSH is modified to very high value, batches would still be submitted in spdk_idxd_process_events(). For now the IDXD_MIN_BATCH_FLUSH matches prior DESC_PER_BATCH limit, making this parameter configurable might be explored. Signed-off-by:Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: Ie32648731260a542c858a8dbc91314d6b353e2ce Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/21243 Reviewed-by:
Jim Harris <jim.harris@samsung.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Slawomir Ptak <slawomir.ptak@intel.com> Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Community-CI: Mellanox Build Bot