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.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef _IPXE_IB_MCAST_H
  2. #define _IPXE_IB_MCAST_H
  3. /** @file
  4. *
  5. * Infiniband multicast groups
  6. *
  7. */
  8. FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
  9. #include <ipxe/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. /** Address vector */
  16. struct ib_address_vector *av;
  17. /** Attached to multicast GID */
  18. int attached;
  19. /** Multicast group join transaction */
  20. struct ib_mad_transaction *madx;
  21. /** Handle join success/failure
  22. *
  23. * @v membership Multicast group membership
  24. * @v rc Status code
  25. */
  26. void ( * complete ) ( struct ib_mc_membership *membership, int rc );
  27. };
  28. extern int ib_mcast_join ( struct ib_device *ibdev, struct ib_queue_pair *qp,
  29. struct ib_mc_membership *membership,
  30. struct ib_address_vector *av, unsigned int mask,
  31. void ( * joined ) ( struct ib_mc_membership *memb,
  32. int rc ) );
  33. extern void ib_mcast_leave ( struct ib_device *ibdev, struct ib_queue_pair *qp,
  34. struct ib_mc_membership *membership );
  35. #endif /* _IPXE_IB_MCAST_H */