accel/dpdk_compressdev: remove handling for non-iovec dst
Handling for scalar dst buffers were removed in 1866faffe
, 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: Konrad Sztyber <konrad.sztyber@intel.com>
Change-Id: I21fbbb45a15e7250944753e445dede7d586bf35b
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16349
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Michal Berger <michal.berger@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
8721d5dac6
commit
dcce5fcf5c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user