nvmf: use global VALUE_4KB value
Minor cleanup. Change-Id: Ib0608bf9f38b1e2e03e6440661134063406de93d Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1042 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
e03861f138
commit
29b6e20b73
@ -43,6 +43,7 @@
|
||||
#include "spdk/nvmf.h"
|
||||
#include "spdk/nvmf_cmd.h"
|
||||
#include "spdk/nvmf_spec.h"
|
||||
#include "spdk/memory.h"
|
||||
|
||||
#define SPDK_NVMF_MAX_SGL_ENTRIES 16
|
||||
|
||||
@ -52,8 +53,7 @@
|
||||
/* AIO backend requires block size aligned data buffers,
|
||||
* extra 4KiB aligned data buffer should work for most devices.
|
||||
*/
|
||||
#define NVMF_SHIFT_4KB 12u
|
||||
#define NVMF_DATA_BUFFER_ALIGNMENT (1u << NVMF_SHIFT_4KB)
|
||||
#define NVMF_DATA_BUFFER_ALIGNMENT VALUE_4KB
|
||||
#define NVMF_DATA_BUFFER_MASK (NVMF_DATA_BUFFER_ALIGNMENT - 1LL)
|
||||
|
||||
union nvmf_h2c_msg {
|
||||
|
Loading…
Reference in New Issue
Block a user