mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 21:41:43 +03:00
[infiniband] Parse MLID, rate, and SL from multicast membership record
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -17,32 +17,25 @@ struct ib_mad_transaction;
|
||||
struct ib_mc_membership {
|
||||
/** Queue pair */
|
||||
struct ib_queue_pair *qp;
|
||||
/** Multicast GID */
|
||||
union ib_gid gid;
|
||||
/** Address vector */
|
||||
struct ib_address_vector *av;
|
||||
/** Attached to multicast GID */
|
||||
int attached;
|
||||
/** Multicast group join transaction */
|
||||
struct ib_mad_transaction *madx;
|
||||
/** Handle join success/failure
|
||||
*
|
||||
* @v ibdev Infiniband device
|
||||
* @v qp Queue pair
|
||||
* @v membership Multicast group membership
|
||||
* @v rc Status code
|
||||
* @v mad Response MAD (or NULL on error)
|
||||
*/
|
||||
void ( * complete ) ( struct ib_device *ibdev, struct ib_queue_pair *qp,
|
||||
struct ib_mc_membership *membership, int rc,
|
||||
union ib_mad *mad );
|
||||
void ( * complete ) ( struct ib_mc_membership *membership, int rc );
|
||||
};
|
||||
|
||||
extern int ib_mcast_join ( struct ib_device *ibdev, struct ib_queue_pair *qp,
|
||||
struct ib_mc_membership *membership,
|
||||
union ib_gid *gid,
|
||||
void ( * joined ) ( struct ib_device *ibdev,
|
||||
struct ib_queue_pair *qp,
|
||||
struct ib_mc_membership *memb,
|
||||
int rc, union ib_mad *mad ) );
|
||||
struct ib_address_vector *av,
|
||||
void ( * joined ) ( struct ib_mc_membership *memb,
|
||||
int rc ) );
|
||||
|
||||
extern void ib_mcast_leave ( struct ib_device *ibdev, struct ib_queue_pair *qp,
|
||||
struct ib_mc_membership *membership );
|
||||
|
||||
Reference in New Issue
Block a user