3 .TH IBV_ATTACH_MCAST 3 2006-10-31 libibverbs "Libibverbs Programmer's Manual"
5 ibv_attach_mcast, ibv_detach_mcast \- attach and detach a queue pair
6 (QPs) to/from a multicast group
9 .B #include <infiniband/verbs.h>
11 .BI "int ibv_attach_mcast(struct ibv_qp " "*qp" ", const union ibv_gid " "*gid" ",
12 .BI " uint16_t " "lid" ");
14 .BI "int ibv_detach_mcast(struct ibv_qp " "*qp" ", const union ibv_gid " "*gid" ",
15 .BI " uint16_t " "lid" ");
21 to the multicast group having MGID
29 to the multicast group having MGID
37 returns 0 on success, or the value of errno on failure (which indicates the failure reason).
39 Only QPs of Transport Service Type
41 may be attached to multicast groups.
43 If a QP is attached to the same multicast group multiple times, the QP will still receive a single copy of a multicast message.
45 In order to receive multicast messages, a join request for the
46 multicast group must be sent to the subnet administrator (SA), so that
47 the fabric's multicast routing is configured to deliver messages to
53 Dotan Barak <dotanb@mellanox.co.il>