dma: Change signature of fetch callback

iovs are not needed in the callback

Signed-off-by: Alexey Marchuk <alexeymar@mellanox.com>
Change-Id: I29718f1f2e65881628b72dea938e40c60348b85d
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9877
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Alexey Marchuk 2021-10-14 09:41:41 +03:00 committed by Tomasz Zawadzki
parent 0fce7b0958
commit 219be8dff1
2 changed files with 3 additions and 5 deletions

View File

@ -66,11 +66,9 @@ struct spdk_memory_domain;
* Definition of completion callback to be called by fetch function.
*
* \param ctx User context passed to fetch function
* \param iov Pointer to iovs that hold result of fetch function
* \param iovcnt iov array size
* \param rc Result of asynchronous fetch function. Data in iov is valid only when rc is 0
* \param rc Result of asynchronous fetch function
*/
typedef void (*spdk_memory_domain_fetch_data_cpl_cb)(void *ctx, void *iov, uint32_t iovcnt, int rc);
typedef void (*spdk_memory_domain_fetch_data_cpl_cb)(void *ctx, int rc);
/**
* Definition of function which asynchronously fetches data from src_domain to local memory domain.

View File

@ -41,7 +41,7 @@ static bool g_memory_domain_translate_called;
static int g_memory_domain_cb_rc = 123;
static void
test_memory_domain_fetch_data_cpl_cb(void *ctx, void *iov, uint32_t iovcnt, int rc)
test_memory_domain_fetch_data_cpl_cb(void *ctx, int rc)
{
}