From 6a3ffa0114411ae4aa6c4485c6058bf03fec3623 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 8 Mar 2016 15:48:53 +0000 Subject: [infiniband] Assign names to queue pairs Signed-off-by: Michael Brown --- src/include/ipxe/infiniband.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/ipxe/infiniband.h b/src/include/ipxe/infiniband.h index 065e42180..5910390da 100644 --- a/src/include/ipxe/infiniband.h +++ b/src/include/ipxe/infiniband.h @@ -158,6 +158,8 @@ struct ib_queue_pair { struct ib_device *ibdev; /** List of queue pairs on this Infiniband device */ struct list_head list; + /** Queue pair name */ + const char *name; /** Queue pair number */ unsigned long qpn; /** Externally-visible queue pair number @@ -498,7 +500,7 @@ extern struct ib_queue_pair * ib_create_qp ( struct ib_device *ibdev, enum ib_queue_pair_type type, unsigned int num_send_wqes, struct ib_completion_queue *send_cq, unsigned int num_recv_wqes, struct ib_completion_queue *recv_cq, - struct ib_queue_pair_operations *op ); + struct ib_queue_pair_operations *op, const char *name ); extern int ib_modify_qp ( struct ib_device *ibdev, struct ib_queue_pair *qp ); extern void ib_destroy_qp ( struct ib_device *ibdev, struct ib_queue_pair *qp ); -- cgit v1.2.3-55-g7522