From: santosh.shilimkar@oracle.com Date: Tue, 1 Mar 2016 23:20:49 +0000 (-0800) Subject: RDS: IB: add connection info to ibmr X-Git-Tag: v5.15~13995^2~145^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d4de76da5c39582aa14a94186c35b4aec6ef292c;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Santosh Shilimkar Signed-off-by: David S. Miller --- diff --git a/net/rds/ib_mr.h b/net/rds/ib_mr.h index f5c1fcb4..add7725 100644 --- a/net/rds/ib_mr.h +++ b/net/rds/ib_mr.h @@ -50,18 +50,19 @@ struct rds_ib_fmr { /* This is stored as mr->r_trans_private. */ struct rds_ib_mr { - struct rds_ib_device *device; - struct rds_ib_mr_pool *pool; + struct rds_ib_device *device; + struct rds_ib_mr_pool *pool; + struct rds_ib_connection *ic; - struct llist_node llnode; + struct llist_node llnode; /* unmap_list is for freeing */ - struct list_head unmap_list; - unsigned int remap_count; + struct list_head unmap_list; + unsigned int remap_count; - struct scatterlist *sg; - unsigned int sg_len; - int sg_dma_len; + struct scatterlist *sg; + unsigned int sg_len; + int sg_dma_len; union { struct rds_ib_fmr fmr;