Function ibverbs::ffi::ibv_attach_mcast [] [src]

pub unsafe extern "C" fn ibv_attach_mcast(
    qp: *mut ibv_qp,
    gid: *const ibv_gid,
    lid: u16
) -> c_int

ibv_attach_mcast - Attaches the specified QP to a multicast group. @qp: QP to attach to the multicast group. The QP must be a UD QP. @gid: Multicast group GID. @lid: Multicast group LID in host byte order.

In order to route multicast packets correctly, subnet administration must have created the multicast group and configured the fabric appropriately. The port associated with the specified QP must also be a member of the multicast group.