Commit 219be8df authored by Alexey Marchuk's avatar Alexey Marchuk Committed by Tomasz Zawadzki
Browse files

dma: Change signature of fetch callback



iovs are not needed in the callback

Signed-off-by: default avatarAlexey 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: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent 0fce7b09
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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.
+1 −1
Original line number Diff line number Diff line
@@ -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)
{
}