summaryrefslogtreecommitdiffstats
path: root/include/rdma
diff options
context:
space:
mode:
authorDon Hiatt <don.hiatt@intel.com>2017-02-08 05:28:25 -0800
committerDoug Ledford <dledford@redhat.com>2017-02-19 09:18:44 -0500
commit832666c163f04306fa6823b8974bccf7bb5e5ad3 (patch)
treea3d5bd844a108dd816c778aede658d1da923b82f /include/rdma
parent881fccb8640bdd3533f5a98a99991aae23a5106b (diff)
downloadlinux-832666c163f04306fa6823b8974bccf7bb5e5ad3.tar.bz2
IB/hfi1, qib, rdmavt: Move AETH defines to rdma/ib_hdrs.h
Rename RVT AETH defines and export in rdma/ib_hdrs.h Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Don Hiatt <don.hiatt@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma')
-rw-r--r--include/rdma/ib_hdrs.h6
-rw-r--r--include/rdma/rdmavt_qp.h5
2 files changed, 6 insertions, 5 deletions
diff --git a/include/rdma/ib_hdrs.h b/include/rdma/ib_hdrs.h
index 408439fe911e..c755325f0831 100644
--- a/include/rdma/ib_hdrs.h
+++ b/include/rdma/ib_hdrs.h
@@ -75,6 +75,12 @@
#define IB_GRH_FLOW_SHIFT 0
#define IB_GRH_NEXT_HDR 0x1B
+#define IB_AETH_CREDIT_SHIFT 24
+#define IB_AETH_CREDIT_MASK 0x1F
+#define IB_AETH_CREDIT_INVAL 0x1F
+#define IB_AETH_NAK_SHIFT 29
+#define IB_MSN_MASK 0xFFFFFF
+
struct ib_reth {
__be64 vaddr; /* potentially unaligned */
__be32 rkey;
diff --git a/include/rdma/rdmavt_qp.h b/include/rdma/rdmavt_qp.h
index 9767549ab42c..f3816396c76a 100644
--- a/include/rdma/rdmavt_qp.h
+++ b/include/rdma/rdmavt_qp.h
@@ -594,11 +594,6 @@ static inline void rvt_qp_swqe_complete(
}
}
-#define RVT_AETH_CREDIT_SHIFT 24
-#define RVT_AETH_CREDIT_MASK 0x1F
-#define RVT_AETH_NAK_SHIFT 29
-#define RVT_MSN_MASK 0xFFFFFF
-
/*
* Compare the lower 24 bits of the msn values.
* Returns an integer <, ==, or > than zero.