nvmf: move RDMA resource defaults to rdma.c
Change-Id: I98e92b4351b64ce87117341d86b1d39d8a826e72 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
9ab12243ef
commit
54b538d1cb
@ -49,12 +49,6 @@ enum nvmf_cstate {
|
||||
NVMF_CSTATE_DISCONNECTED,
|
||||
};
|
||||
|
||||
/*
|
||||
RDMA Connection Resouce Defaults
|
||||
*/
|
||||
#define NVMF_DEFAULT_TX_SGE 1
|
||||
#define NVMF_DEFAULT_RX_SGE 2
|
||||
|
||||
/* RDMA transport connection states */
|
||||
enum conn_state {
|
||||
CONN_STATE_INVALID = 0,
|
||||
|
@ -56,6 +56,12 @@
|
||||
#define MAX_RDMA_DEVICES 4
|
||||
#define MAX_SESSIONS_PER_DEVICE 1 /* for now accept only single session per device */
|
||||
|
||||
/*
|
||||
RDMA Connection Resouce Defaults
|
||||
*/
|
||||
#define NVMF_DEFAULT_TX_SGE 1
|
||||
#define NVMF_DEFAULT_RX_SGE 2
|
||||
|
||||
static int alloc_qp_rx_desc(struct spdk_nvmf_conn *conn);
|
||||
static int alloc_qp_tx_desc(struct spdk_nvmf_conn *conn);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user