Commit dcce5fcf authored by Konrad Sztyber's avatar Konrad Sztyber Committed by Tomasz Zawadzki
Browse files

accel/dpdk_compressdev: remove handling for non-iovec dst



Handling for scalar dst buffers were removed in 1866faff, and all
buffers are now described by iovecs.  The dst field was removed from
spdk_accel_task, so we also need to remove any references to that field
from dpdk_compressdev.  This patch fixes the build with compressdev
enabled.

Signed-off-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Change-Id: I21fbbb45a15e7250944753e445dede7d586bf35b
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16349


Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: default avatarMichal Berger <michal.berger@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent 8721d5da
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -438,17 +438,6 @@ _compress_operation(struct compress_io_channel *chan, struct spdk_accel_task *t
	assert(chan->device_qp->device != NULL);
	cdev_id = chan->device_qp->device->cdev_id;

	/* Much of this code was ported from the vbdev compress module where iovecs were
	 * supported on dst.  In the accel_fw they are not however lets preserve the full
	 * functionality of the code and make a simple iovec out of the dst.
	 */
	if (task->d.iovcnt == 0) {
		assert(task->dst != NULL);
		dst_iovcnt = 1;
		dst_iovs[0].iov_base = task->dst;
		dst_iovs[0].iov_len = task->nbytes_dst;
	}

	/* calc our mbuf totals based on max MBUF size allowed so we can pre-alloc mbufs in bulk */
	for (i = 0 ; i < src_iovcnt; i++) {
		src_mbuf_total += spdk_divide_round_up(src_iovs[i].iov_len, MBUF_SPLIT);