IB/qib: Change lkey table allocation to support more MRs
[firefly-linux-kernel-4.4.55.git] / drivers / infiniband / hw / qib / qib_verbs.h
index aff8b2c178869ce31503b7981ed5d7c8df456469..e4f9fff51890b8f6e57ae80d957cc2891d69617b 100644 (file)
@@ -645,6 +645,8 @@ struct qib_qpn_table {
        struct qpn_map map[QPNMAP_ENTRIES];
 };
 
+#define MAX_LKEY_TABLE_BITS 23
+
 struct qib_lkey_table {
        spinlock_t lock; /* protect changes in this struct */
        u32 next;               /* next unused index (speeds search) */