[ofa-general] ***SPAM*** [PATCH 1/3 v2] ib/verbs : multicast loopback blocking

Ron Livne ronli at voltaire.com
Sun Jun 22 09:35:55 PDT 2008


ib/verbs: add multicast block loopback capability to the ib device.

This patch adds a capability flag for blocking multicast loopback
packets in an ib device.

This patch also adds a creation flag for QPs:
IB_QP_CREATE_MULTICAST_BLOCK_LOOPBACK, which means that when attaching
this QP, the multicast packets loopback block bit will be turned on.


Signed-off-by: Ron Livne <ronli at voltaire.com>

Changes in v2:
IB_QP_BLOCK_LOOPBACK QP creation flag in version 1, is now called
IB_QP_CREATE_MULTICAST_BLOCK_LOOPBACK.

Index: kernels/linux-2.6.26-rc2/include/rdma/ib_verbs.h
===================================================================
--- kernels.orig/linux-2.6.26-rc2/include/rdma/ib_verbs.h	2008-06-22 15:22:03.000000000 +0300
+++ kernels/linux-2.6.26-rc2/include/rdma/ib_verbs.h	2008-06-22 15:25:02.000000000 +0300
@@ -106,6 +106,7 @@ enum ib_device_cap_flags {
 	IB_DEVICE_UD_IP_CSUM		= (1<<18),
 	IB_DEVICE_UD_TSO		= (1<<19),
 	IB_DEVICE_SEND_W_INV		= (1<<21),
+	IB_DEVICE_BLOCK_LOOPBACK        = (1<<22),
 };

 enum ib_atomic_cap {
@@ -499,7 +500,8 @@ enum ib_qp_type {
 };

 enum ib_qp_create_flags {
-	IB_QP_CREATE_IPOIB_UD_LSO	= 1 << 0,
+	IB_QP_CREATE_IPOIB_UD_LSO 		= 1 << 0,
+	IB_QP_CREATE_MULTICAST_BLOCK_LOOPBACK   = 1 << 1,
 };

 struct ib_qp_init_attr {



More information about the general mailing list