mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 12:44:11 +08:00
RDMA/rxe: Bump up default maximum values used via uverbs
In our internal testing we have found that default maximum values are too small. Ideally there should be no limits, but since maximum values are reported via ibv_query_device, we have to return some value. So, the default maximums have been changed to large values. Link: https://lore.kernel.org/r/20210915011220.307585-1-Rao.Shoaib@oracle.com Signed-off-by: Rao Shoaib <Rao.Shoaib@oracle.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
This commit is contained in:
parent
49b99314b4
commit
0994a1bcd5
@ -9,6 +9,8 @@
|
||||
|
||||
#include <uapi/rdma/rdma_user_rxe.h>
|
||||
|
||||
#define DEFAULT_MAX_VALUE (1 << 20)
|
||||
|
||||
static inline enum ib_mtu rxe_mtu_int_to_enum(int mtu)
|
||||
{
|
||||
if (mtu < 256)
|
||||
@ -37,7 +39,7 @@ static inline enum ib_mtu eth_mtu_int_to_enum(int mtu)
|
||||
enum rxe_device_param {
|
||||
RXE_MAX_MR_SIZE = -1ull,
|
||||
RXE_PAGE_SIZE_CAP = 0xfffff000,
|
||||
RXE_MAX_QP_WR = 0x4000,
|
||||
RXE_MAX_QP_WR = DEFAULT_MAX_VALUE,
|
||||
RXE_DEVICE_CAP_FLAGS = IB_DEVICE_BAD_PKEY_CNTR
|
||||
| IB_DEVICE_BAD_QKEY_CNTR
|
||||
| IB_DEVICE_AUTO_PATH_MIG
|
||||
@ -58,42 +60,42 @@ enum rxe_device_param {
|
||||
RXE_MAX_INLINE_DATA = RXE_MAX_WQE_SIZE -
|
||||
sizeof(struct rxe_send_wqe),
|
||||
RXE_MAX_SGE_RD = 32,
|
||||
RXE_MAX_CQ = 16384,
|
||||
RXE_MAX_CQ = DEFAULT_MAX_VALUE,
|
||||
RXE_MAX_LOG_CQE = 15,
|
||||
RXE_MAX_PD = 0x7ffc,
|
||||
RXE_MAX_PD = DEFAULT_MAX_VALUE,
|
||||
RXE_MAX_QP_RD_ATOM = 128,
|
||||
RXE_MAX_RES_RD_ATOM = 0x3f000,
|
||||
RXE_MAX_QP_INIT_RD_ATOM = 128,
|
||||
RXE_MAX_MCAST_GRP = 8192,
|
||||
RXE_MAX_MCAST_QP_ATTACH = 56,
|
||||
RXE_MAX_TOT_MCAST_QP_ATTACH = 0x70000,
|
||||
RXE_MAX_AH = 100,
|
||||
RXE_MAX_SRQ_WR = 0x4000,
|
||||
RXE_MAX_AH = DEFAULT_MAX_VALUE,
|
||||
RXE_MAX_SRQ_WR = DEFAULT_MAX_VALUE,
|
||||
RXE_MIN_SRQ_WR = 1,
|
||||
RXE_MAX_SRQ_SGE = 27,
|
||||
RXE_MIN_SRQ_SGE = 1,
|
||||
RXE_MAX_FMR_PAGE_LIST_LEN = 512,
|
||||
RXE_MAX_PKEYS = 1,
|
||||
RXE_MAX_PKEYS = 64,
|
||||
RXE_LOCAL_CA_ACK_DELAY = 15,
|
||||
|
||||
RXE_MAX_UCONTEXT = 512,
|
||||
RXE_MAX_UCONTEXT = DEFAULT_MAX_VALUE,
|
||||
|
||||
RXE_NUM_PORT = 1,
|
||||
|
||||
RXE_MAX_QP = 0x10000,
|
||||
RXE_MIN_QP_INDEX = 16,
|
||||
RXE_MAX_QP_INDEX = 0x00020000,
|
||||
RXE_MAX_QP_INDEX = DEFAULT_MAX_VALUE,
|
||||
RXE_MAX_QP = DEFAULT_MAX_VALUE - RXE_MIN_QP_INDEX,
|
||||
|
||||
RXE_MAX_SRQ = 0x00001000,
|
||||
RXE_MIN_SRQ_INDEX = 0x00020001,
|
||||
RXE_MAX_SRQ_INDEX = 0x00040000,
|
||||
RXE_MAX_SRQ_INDEX = DEFAULT_MAX_VALUE,
|
||||
RXE_MAX_SRQ = DEFAULT_MAX_VALUE - RXE_MIN_SRQ_INDEX,
|
||||
|
||||
RXE_MAX_MR = 0x00001000,
|
||||
RXE_MAX_MW = 0x00001000,
|
||||
RXE_MIN_MR_INDEX = 0x00000001,
|
||||
RXE_MAX_MR_INDEX = 0x00010000,
|
||||
RXE_MAX_MR_INDEX = DEFAULT_MAX_VALUE,
|
||||
RXE_MAX_MR = DEFAULT_MAX_VALUE - RXE_MIN_MR_INDEX,
|
||||
RXE_MIN_MW_INDEX = 0x00010001,
|
||||
RXE_MAX_MW_INDEX = 0x00020000,
|
||||
RXE_MAX_MW = 0x00001000,
|
||||
|
||||
RXE_MAX_PKT_PER_ACK = 64,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user