idxd: minor one LOC cleanup
We always set num_batches to the same value we set num_descriptors so just make it explicit. Makes it easier to experiment with different values when performance testing. Signed-off-by: paul luse <paul.e.luse@intel.com> Change-Id: I648262001772c791a032d6cab38dc3b03c1d55c1 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11354 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
9a9cde60a9
commit
7aa1650d28
@ -185,7 +185,7 @@ spdk_idxd_get_channel(struct spdk_idxd_device *idxd)
|
||||
}
|
||||
|
||||
/* Allocate batches */
|
||||
num_batches = idxd->queues[idxd->wq_id].wqcfg.wq_size / idxd->chan_per_device;
|
||||
num_batches = num_descriptors;
|
||||
chan->batch_base = calloc(num_batches, sizeof(struct idxd_batch));
|
||||
if (chan->batch_base == NULL) {
|
||||
SPDK_ERRLOG("Failed to allocate batch pool\n");
|
||||
|
Loading…
Reference in New Issue
Block a user