diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2018-10-02 04:13:28 -0400 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2018-10-16 14:36:20 -0400 |
commit | 7d65cbf0b0ac7d7eebf397ff9af6645b2b3004c2 (patch) | |
tree | a1cd6c6a4149e10a8b7ed13c8b433148ff9f8ab8 | |
parent | b4c542df5ae83f079f867011a8f7721fb8a1f44c (diff) |
RDMA/core: Increase total number of RDMA ports across all devices
IDA adds overhead to store IDs bitmap with maximal value of IDA
can be upto 2099202 (IDA_MAX = 0x80000000U / IDA_BITMAP_BITS - 1).
However, there is no need to add such enormous number of devices
and it is enough for now to limit it to be 8192.
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r-- | drivers/infiniband/core/core_priv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/core_priv.h b/drivers/infiniband/core/core_priv.h index c5881756b799..bb9007a0cca7 100644 --- a/drivers/infiniband/core/core_priv.h +++ b/drivers/infiniband/core/core_priv.h | |||
@@ -44,7 +44,7 @@ | |||
44 | #include "mad_priv.h" | 44 | #include "mad_priv.h" |
45 | 45 | ||
46 | /* Total number of ports combined across all struct ib_devices's */ | 46 | /* Total number of ports combined across all struct ib_devices's */ |
47 | #define RDMA_MAX_PORTS 1024 | 47 | #define RDMA_MAX_PORTS 8192 |
48 | 48 | ||
49 | struct pkey_index_qp_list { | 49 | struct pkey_index_qp_list { |
50 | struct list_head pkey_index_list; | 50 | struct list_head pkey_index_list; |