summaryrefslogtreecommitdiff
path: root/include/rdma
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2019-02-13 07:12:49 +0300
committerJason Gunthorpe <jgg@mellanox.com>2019-02-19 20:13:39 +0300
commit8faea9fd4a3914f12cd343e10810ec5f4215ddd6 (patch)
treecdaac2c03560e7873b175d2efa8c09cb8315ba3b /include/rdma
parent8ceb1357b33790193e9d55d2d09bcfd6bd59dd6d (diff)
downloadlinux-8faea9fd4a3914f12cd343e10810ec5f4215ddd6.tar.xz
RDMA/cache: Move the cache per-port data into the main ib_port_data
Like the other cases there no real reason to have another array just for the cache. This larger conversion gets its own patch. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/rdma')
-rw-r--r--include/rdma/ib_verbs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index b42e257814f7..50b7ebc2885e 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -2186,7 +2186,6 @@ struct ib_port_cache {
struct ib_cache {
rwlock_t lock;
struct ib_event_handler event_handler;
- struct ib_port_cache *ports;
};
struct iw_cm_verbs;
@@ -2203,6 +2202,8 @@ struct ib_port_data {
spinlock_t pkey_list_lock;
struct list_head pkey_list;
+
+ struct ib_port_cache cache;
};
/* rdma netdev type - specifies protocol type */