[ofa-general] [PATCH 4/4] libibverbs: Add new creation flag: IBV_QP_CREATE_MULTICAST_LOOPBACK_BLOCK

Ron Livne ronli at voltaire.com
Thu Dec 11 01:04:48 PST 2008


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 <ronli at voltaire.com>

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 {



More information about the general mailing list