IB/core: Allocate a bit for SRQ ODP support
authorMoni Shoua <monis@mellanox.com>
Tue, 22 Jan 2019 06:48:41 +0000 (08:48 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 4 Feb 2019 21:34:06 +0000 (14:34 -0700)
The ODP support matrix is per operation and per transport. The support for
each transport (RC, UD, etc.) is described with a bit field.

ODP for SRQ WQEs is considered a different kind of support from ODP for RQ
WQs and therefore needs a different capability bit.

Signed-off-by: Moni Shoua <monis@mellanox.com>
Reviewed-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
include/rdma/ib_verbs.h

index 5fc3be88444449714201ee07f4b851e75fd7f9c8..5eefdea62831017c5cff08a344aa508f2cb1d85b 100644 (file)
@@ -268,6 +268,7 @@ enum ib_odp_transport_cap_bits {
        IB_ODP_SUPPORT_WRITE    = 1 << 2,
        IB_ODP_SUPPORT_READ     = 1 << 3,
        IB_ODP_SUPPORT_ATOMIC   = 1 << 4,
+       IB_ODP_SUPPORT_SRQ_RECV = 1 << 5,
 };
 
 struct ib_odp_caps {