1 #ifndef _IPXE_IB_MCAST_H
2 #define _IPXE_IB_MCAST_H
6 * Infiniband multicast groups
10 FILE_LICENCE ( GPL2_OR_LATER );
12 #include <ipxe/infiniband.h>
14 struct ib_mad_transaction;
16 /** An Infiniband multicast group membership */
17 struct ib_mc_membership {
19 struct ib_queue_pair *qp;
22 /** Multicast group join transaction */
23 struct ib_mad_transaction *madx;
24 /** Handle join success/failure
26 * @v ibdev Infiniband device
28 * @v membership Multicast group membership
30 * @v mad Response MAD (or NULL on error)
32 void ( * complete ) ( struct ib_device *ibdev, struct ib_queue_pair *qp,
33 struct ib_mc_membership *membership, int rc,
37 extern int ib_mcast_join ( struct ib_device *ibdev, struct ib_queue_pair *qp,
38 struct ib_mc_membership *membership,
40 void ( * joined ) ( struct ib_device *ibdev,
41 struct ib_queue_pair *qp,
42 struct ib_mc_membership *memb,
43 int rc, union ib_mad *mad ) );
45 extern void ib_mcast_leave ( struct ib_device *ibdev, struct ib_queue_pair *qp,
46 struct ib_mc_membership *membership );
48 #endif /* _IPXE_IB_MCAST_H */