Adds enum ibv_qp_create_flags, which holds all possible
user-space creation flags for a QP.
This enum currently has one flag: IBV_QP_CREATE_MULTICAST_LOOPBACK_BLOCK
Which will be used for creating a UD QP that blocks multicast loopback packets.
This will only work if the device has this capability - currently only for mlx4

Signed-off-by: Ron Livne <[EMAIL PROTECTED]>

diff --git a/include/infiniband/verbs.h b/include/infiniband/verbs.h
index fe586f1..cf3b15d 100644
--- a/include/infiniband/verbs.h
+++ b/include/infiniband/verbs.h
@@ -92,7 +92,16 @@ enum ibv_device_cap_flags {
        IBV_DEVICE_SYS_IMAGE_GUID       = 1 << 11,
        IBV_DEVICE_RC_RNR_NAK_GEN       = 1 << 12,
        IBV_DEVICE_SRQ_RESIZE           = 1 << 13,
-       IBV_DEVICE_N_NOTIFY_CQ          = 1 << 14
+       IBV_DEVICE_N_NOTIFY_CQ          = 1 << 14,
+       IBV_DEVICE_BLOCK_MULTICAST_LOOPBACK     = 1 << 22
+};
+
+/*
+       This enum must be aligned with ib_qp_create_flags
+       in include/rdma/ib_verbs.h
+*/
+enum ibv_qp_create_flags {
+       IBV_QP_CREATE_MULTICAST_LOOPBACK_BLOCK    = 1 << 1
 };

 enum ibv_atomic_cap {
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to