projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
IB/qib: Change lkey table allocation to support more MRs
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
infiniband
/
hw
/
qib
/
qib_verbs.h
diff --git
a/drivers/infiniband/hw/qib/qib_verbs.h
b/drivers/infiniband/hw/qib/qib_verbs.h
index aff8b2c178869ce31503b7981ed5d7c8df456469..e4f9fff51890b8f6e57ae80d957cc2891d69617b 100644
(file)
--- a/
drivers/infiniband/hw/qib/qib_verbs.h
+++ b/
drivers/infiniband/hw/qib/qib_verbs.h
@@
-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) */