bdev/compress: add 2 recommended flags to the comp operation

Per docs.

Signed-off-by: paul luse <paul.e.luse@intel.com>
Change-Id: I2b520ba9cce2e8914e5003095cdb0be61b417cb2
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/458836
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
This commit is contained in:
paul luse 2019-06-20 10:18:53 -04:00 committed by Darek Stojaczyk
parent 8d2455caa3
commit 68fbb33b81

View File

@ -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);