summaryrefslogtreecommitdiffstats
path: root/include/rdma/ib_hdrs.h
diff options
context:
space:
mode:
authorDon Hiatt <don.hiatt@intel.com>2017-02-08 14:28:25 +0100
committerDoug Ledford <dledford@redhat.com>2017-02-19 15:18:44 +0100
commit832666c163f04306fa6823b8974bccf7bb5e5ad3 (patch)
treea3d5bd844a108dd816c778aede658d1da923b82f /include/rdma/ib_hdrs.h
parentIB/hfi1: Add rvt_rnr_tbl_to_usec function (diff)
downloadlinux-832666c163f04306fa6823b8974bccf7bb5e5ad3.tar.xz
linux-832666c163f04306fa6823b8974bccf7bb5e5ad3.zip
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/ib_hdrs.h')
-rw-r--r--include/rdma/ib_hdrs.h6
1 files changed, 6 insertions, 0 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;