From 634af37b463fcaec1e7ecdb1e3be3aa1161ac8e3 Mon Sep 17 00:00:00 2001 From: paul luse Date: Thu, 9 May 2019 15:58:45 -0400 Subject: [PATCH] bdev/compress: use the queue pair for the current device Had 0 hardcoded early on, this just uses the queue pair that was pre-assigned to the compression bdev to use when interacting with the cryptodev API. Multi-threaded testing is coming later. Change-Id: Iab8ea4e59169980933e9c81715baf4d41803b572 Signed-off-by: paul luse Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/453921 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto --- lib/bdev/compress/vbdev_compress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bdev/compress/vbdev_compress.c b/lib/bdev/compress/vbdev_compress.c index b46351d0e..014136019 100644 --- a/lib/bdev/compress/vbdev_compress.c +++ b/lib/bdev/compress/vbdev_compress.c @@ -485,7 +485,7 @@ _compress_operation(struct spdk_reduce_backing_dev *backing_dev, struct iovec *s comp_op->private_xform = comp_bdev->device_qp->device->decomp_xform; } - rc = rte_compressdev_enqueue_burst(cdev_id, 0, &comp_op, 1); + rc = rte_compressdev_enqueue_burst(cdev_id, comp_bdev->device_qp->qp, &comp_op, 1); assert(rc <= 1); /* We always expect 1 got queued, if 0 then we need to queue it up. */