copy: Replace rte_memcpy with regular memcpy
Eliminate rte_memcpy dependency by replacing it with regular memcpy. This may impact performance, but the only use of rte_memcpy was in the malloc bdev which is for testing only. Change-Id: I3e8592cb08262272518ec3d29ea165b4e8f48a5c Signed-off-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
2d2fde0d7f
commit
1ad673a9dd
@ -35,9 +35,7 @@
|
||||
|
||||
#include "spdk_internal/copy_engine.h"
|
||||
|
||||
#include <rte_config.h>
|
||||
#include <rte_memcpy.h>
|
||||
|
||||
#include "spdk/env.h"
|
||||
#include "spdk/log.h"
|
||||
#include "spdk/io_channel.h"
|
||||
|
||||
@ -110,7 +108,8 @@ mem_copy_submit(void *cb_arg, struct spdk_io_channel *ch, void *dst, void *src,
|
||||
{
|
||||
struct spdk_copy_task *copy_req;
|
||||
|
||||
rte_memcpy(dst, src, (size_t)nbytes);
|
||||
memcpy(dst, src, (size_t)nbytes);
|
||||
|
||||
copy_req = (struct spdk_copy_task *)((uintptr_t)cb_arg -
|
||||
offsetof(struct spdk_copy_task, offload_ctx));
|
||||
cb(copy_req, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user