summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
diff options
context:
space:
mode:
authorHariprasad S <hariprasad@chelsio.com>2016-06-10 01:05:16 +0530
committerDoug Ledford <dledford@redhat.com>2016-06-23 10:44:17 -0400
commit0f8ab0b6e91b4d5302ceee5ec12ce54d81297635 (patch)
tree74a3fc9a68ef95d9ed213a9cbd37e1eca95efc31 /drivers/infiniband/hw/cxgb4/iw_cxgb4.h
parent4a740838bf44ca4b03e26ff79aedb86b9d8cace4 (diff)
downloadblackbird-op-linux-0f8ab0b6e91b4d5302ceee5ec12ce54d81297635.tar.gz
blackbird-op-linux-0f8ab0b6e91b4d5302ceee5ec12ce54d81297635.zip
RDMA/iw_cxgb4: Low resource fixes for Memory registration
Pre-allocate buffers for deregistering memory region and memory window during RDMA connection close, when system is running out of memory. Signed-off-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4/iw_cxgb4.h')
-rw-r--r--drivers/infiniband/hw/cxgb4/iw_cxgb4.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/cxgb4/iw_cxgb4.h b/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
index ce42d09ef9f7..e94ec0d766bc 100644
--- a/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
+++ b/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
@@ -384,6 +384,7 @@ struct c4iw_mr {
struct ib_mr ibmr;
struct ib_umem *umem;
struct c4iw_dev *rhp;
+ struct sk_buff *dereg_skb;
u64 kva;
struct tpt_attributes attr;
u64 *mpl;
@@ -400,6 +401,7 @@ static inline struct c4iw_mr *to_c4iw_mr(struct ib_mr *ibmr)
struct c4iw_mw {
struct ib_mw ibmw;
struct c4iw_dev *rhp;
+ struct sk_buff *dereg_skb;
u64 kva;
struct tpt_attributes attr;
};
OpenPOWER on IntegriCloud