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 <[EMAIL PROTECTED]>
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 {
_______________________________________________
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