1 /* QLogic qed NIC Driver
2 * Copyright (c) 2015 QLogic Corporation
4 * This software is available under the terms of the GNU General Public License
5 * (GPL) Version 2, available from the file COPYING in the main directory of
9 #ifndef __RDMA_COMMON__
10 #define __RDMA_COMMON__
11 /************************/
12 /* RDMA FW CONSTANTS */
13 /************************/
15 #define RDMA_RESERVED_LKEY (0)
16 #define RDMA_RING_PAGE_SIZE (0x1000)
18 #define RDMA_MAX_SGE_PER_SQ_WQE (4)
19 #define RDMA_MAX_SGE_PER_RQ_WQE (4)
21 #define RDMA_MAX_DATA_SIZE_IN_WQE (0x7FFFFFFF)
23 #define RDMA_REQ_RD_ATOMIC_ELM_SIZE (0x50)
24 #define RDMA_RESP_RD_ATOMIC_ELM_SIZE (0x20)
26 #define RDMA_MAX_CQS (64 * 1024)
27 #define RDMA_MAX_TIDS (128 * 1024 - 1)
28 #define RDMA_MAX_PDS (64 * 1024)
30 #define RDMA_NUM_STATISTIC_COUNTERS MAX_NUM_VPORTS
32 #define RDMA_TASK_TYPE (PROTOCOLID_ROCE)
39 struct rdma_srq_producers {
44 #endif /* __RDMA_COMMON__ */