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:
Daniel Verkamp 2016-06-20 09:43:54 -07:00
parent 9ab12243ef
commit 54b538d1cb
2 changed files with 6 additions and 6 deletions

View File

@ -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,

View File

@ -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);