aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ocrdma/ocrdma_ah.h
diff options
context:
space:
mode:
authorDevesh Sharma <devesh.sharma@avagotech.com>2016-01-28 08:59:59 -0500
committerDoug Ledford <dledford@redhat.com>2016-02-29 17:12:10 -0500
commit834d16d66ebc2b5faa06af0bda3bb6f9c71b3996 (patch)
tree5efcd294f393fa6a3c0725ff2b8ff8af075d3a32 /drivers/infiniband/hw/ocrdma/ocrdma_ah.h
parentRDMA/ocrdma: Support RoCE-v2 in the RC path (diff)
downloadlinux-dev-834d16d66ebc2b5faa06af0bda3bb6f9c71b3996.tar.xz
linux-dev-834d16d66ebc2b5faa06af0bda3bb6f9c71b3996.zip
RDMA/ocrdma: Support user AH creation for RoCE-v2
This patch adds support to create RoCE-v2 compatible AH. It uses ahid field to tell network-header-type to user space library. The library has to decode network-header-type from ahid field. Signed-off-by: Somnath Kotur <somnath.kotur@avagotech.com> Signed-off-by: Devesh Sharma <devesh.sharma@avagotech.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/ocrdma/ocrdma_ah.h')
-rw-r--r--drivers/infiniband/hw/ocrdma/ocrdma_ah.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_ah.h b/drivers/infiniband/hw/ocrdma/ocrdma_ah.h
index 04a30ae67473..3856dd4c7e3d 100644
--- a/drivers/infiniband/hw/ocrdma/ocrdma_ah.h
+++ b/drivers/infiniband/hw/ocrdma/ocrdma_ah.h
@@ -46,9 +46,10 @@
enum {
OCRDMA_AH_ID_MASK = 0x3FF,
OCRDMA_AH_VLAN_VALID_MASK = 0x01,
- OCRDMA_AH_VLAN_VALID_SHIFT = 0x1F
+ OCRDMA_AH_VLAN_VALID_SHIFT = 0x1F,
+ OCRDMA_AH_L3_TYPE_MASK = 0x03,
+ OCRDMA_AH_L3_TYPE_SHIFT = 0x1D /* 29 bits */
};
-
struct ib_ah *ocrdma_create_ah(struct ib_pd *, struct ib_ah_attr *);
int ocrdma_destroy_ah(struct ib_ah *);
int ocrdma_query_ah(struct ib_ah *, struct ib_ah_attr *);