From 68fbb33b8158295f2875205516e080ec3b72e7a5 Mon Sep 17 00:00:00 2001 From: paul luse Date: Thu, 20 Jun 2019 10:18:53 -0400 Subject: [PATCH] bdev/compress: add 2 recommended flags to the comp operation Per docs. Signed-off-by: paul luse Change-Id: I2b520ba9cce2e8914e5003095cdb0be61b417cb2 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/458836 Tested-by: SPDK CI Jenkins Reviewed-by: Shuhei Matsumoto Reviewed-by: Darek Stojaczyk --- lib/bdev/compress/vbdev_compress.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/bdev/compress/vbdev_compress.c b/lib/bdev/compress/vbdev_compress.c index ab4ca539f8..086ceb920a 100644 --- a/lib/bdev/compress/vbdev_compress.c +++ b/lib/bdev/compress/vbdev_compress.c @@ -501,6 +501,9 @@ _compress_operation(struct spdk_reduce_backing_dev *backing_dev, struct iovec *s comp_op->private_xform = comp_bdev->device_qp->device->decomp_xform; } + comp_op->op_type = RTE_COMP_OP_STATELESS; + comp_op->flush_flag = RTE_COMP_FLUSH_FINAL; + rc = rte_compressdev_enqueue_burst(cdev_id, comp_bdev->device_qp->qp, &comp_op, 1); assert(rc <= 1);