aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsantosh.shilimkar@oracle.com <santosh.shilimkar@oracle.com>2016-03-01 18:20:49 -0500
committerDavid S. Miller <davem@davemloft.net>2016-03-02 14:13:18 -0500
commitd4de76da5c39582aa14a94186c35b4aec6ef292c (patch)
tree6b12d551daf4c68985df8b67ac2555a50ebc5e4c
parent490ea5967b0d94b84747d3327903d31f287f30e5 (diff)
RDS: IB: add connection info to ibmr
Preperatory patch for FRMR support. From connection info, we can retrieve cm_id which contains qp handled needed for work request posting. We also need to drop the RDS connection on QP error states where connection handle becomes useful. Signed-off-by: Santosh Shilimkar <ssantosh@kernel.org> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/rds/ib_mr.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/net/rds/ib_mr.h b/net/rds/ib_mr.h
index f5c1fcb4b91e..add7725bc062 100644
--- a/net/rds/ib_mr.h
+++ b/net/rds/ib_mr.h
@@ -50,18 +50,19 @@ struct rds_ib_fmr {
50 50
51/* This is stored as mr->r_trans_private. */ 51/* This is stored as mr->r_trans_private. */
52struct rds_ib_mr { 52struct rds_ib_mr {
53 struct rds_ib_device *device; 53 struct rds_ib_device *device;
54 struct rds_ib_mr_pool *pool; 54 struct rds_ib_mr_pool *pool;
55 struct rds_ib_connection *ic;
55 56
56 struct llist_node llnode; 57 struct llist_node llnode;
57 58
58 /* unmap_list is for freeing */ 59 /* unmap_list is for freeing */
59 struct list_head unmap_list; 60 struct list_head unmap_list;
60 unsigned int remap_count; 61 unsigned int remap_count;
61 62
62 struct scatterlist *sg; 63 struct scatterlist *sg;
63 unsigned int sg_len; 64 unsigned int sg_len;
64 int sg_dma_len; 65 int sg_dma_len;
65 66
66 union { 67 union {
67 struct rds_ib_fmr fmr; 68 struct rds_ib_fmr fmr;