Skip to content

Commit

Permalink
RDMA/core: Increase total number of RDMA ports across all devices
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Leon Romanovsky authored and Doug Ledford committed Oct 16, 2018
1 parent b4c542d commit 7d65cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/core/core_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#include "mad_priv.h"

/* Total number of ports combined across all struct ib_devices's */
#define RDMA_MAX_PORTS 1024
#define RDMA_MAX_PORTS 8192

struct pkey_index_qp_list {
struct list_head pkey_index_list;
Expand Down

0 comments on commit 7d65cbf

Please sign in to comment.