You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ib_mcast.h 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef _GPXE_IB_MCAST_H
  2. #define _GPXE_IB_MCAST_H
  3. /** @file
  4. *
  5. * Infiniband multicast groups
  6. *
  7. */
  8. FILE_LICENCE ( GPL2_OR_LATER );
  9. #include <gpxe/infiniband.h>
  10. struct ib_mad_transaction;
  11. /** An Infiniband multicast group membership */
  12. struct ib_mc_membership {
  13. /** Queue pair */
  14. struct ib_queue_pair *qp;
  15. /** Multicast GID */
  16. struct ib_gid gid;
  17. /** Multicast group join transaction */
  18. struct ib_mad_transaction *madx;
  19. /** Handle join success/failure
  20. *
  21. * @v ibdev Infiniband device
  22. * @v qp Queue pair
  23. * @v membership Multicast group membership
  24. * @v rc Status code
  25. * @v mad Response MAD (or NULL on error)
  26. */
  27. void ( * complete ) ( struct ib_device *ibdev, struct ib_queue_pair *qp,
  28. struct ib_mc_membership *membership, int rc,
  29. union ib_mad *mad );
  30. };
  31. extern int ib_mcast_join ( struct ib_device *ibdev, struct ib_queue_pair *qp,
  32. struct ib_mc_membership *membership,
  33. struct ib_gid *gid,
  34. void ( * joined ) ( struct ib_device *ibdev,
  35. struct ib_queue_pair *qp,
  36. struct ib_mc_membership *memb,
  37. int rc, union ib_mad *mad ) );
  38. extern void ib_mcast_leave ( struct ib_device *ibdev, struct ib_queue_pair *qp,
  39. struct ib_mc_membership *membership );
  40. #endif /* _GPXE_IB_MCAST_H */