Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752659AbcCAXVb (ORCPT ); Tue, 1 Mar 2016 18:21:31 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:29636 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752391AbcCAXV0 (ORCPT ); Tue, 1 Mar 2016 18:21:26 -0500 From: Santosh Shilimkar To: netdev@vger.kernel.org, davem@davemloft.net Cc: linux-kernel@vger.kernel.org, Santosh Shilimkar Subject: [net-next][PATCH v3 08/13] RDS: IB: add connection info to ibmr Date: Tue, 1 Mar 2016 15:20:49 -0800 Message-Id: <1456874454-10355-9-git-send-email-santosh.shilimkar@oracle.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1456874454-10355-1-git-send-email-santosh.shilimkar@oracle.com> References: <1456874454-10355-1-git-send-email-santosh.shilimkar@oracle.com> X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1252 Lines: 47 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 --- net/rds/ib_mr.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/net/rds/ib_mr.h b/net/rds/ib_mr.h index f5c1fcb..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; -- 1.9.1