Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[infiniband] Split queue set functionality out of ipoib.c to ib_qset.c
- Loading branch information
Michael Brown
committed
Jul 17, 2009
1 parent
8868956
commit b25a4b6
Showing
4 changed files
with
204 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#ifndef _GPXE_IB_QSET_H | ||
#define _GPXE_IB_QSET_H | ||
|
||
/** @file | ||
* | ||
* Infiniband queue sets | ||
* | ||
*/ | ||
|
||
FILE_LICENCE ( GPL2_OR_LATER ); | ||
|
||
#include <stdint.h> | ||
#include <gpxe/infiniband.h> | ||
|
||
/** An Infiniband queue set */ | ||
struct ib_queue_set { | ||
/** Completion queue */ | ||
struct ib_completion_queue *cq; | ||
/** Queue pair */ | ||
struct ib_queue_pair *qp; | ||
/** Receive work queue maximum fill level */ | ||
unsigned int recv_max_fill; | ||
/** Receive packet length */ | ||
size_t recv_pkt_len; | ||
}; | ||
|
||
extern int ib_create_qset ( struct ib_device *ibdev, | ||
struct ib_queue_set *qset, unsigned int num_cqes, | ||
struct ib_completion_queue_operations *cq_op, | ||
unsigned int num_send_wqes, | ||
unsigned int num_recv_wqes, size_t recv_pkt_len, | ||
unsigned long qkey ); | ||
extern void ib_qset_refill_recv ( struct ib_device *ibdev, | ||
struct ib_queue_set *qset ); | ||
extern void ib_destroy_qset ( struct ib_device *ibdev, | ||
struct ib_queue_set *qset ); | ||
|
||
#endif /* _GPXE_IB_QSET_H */ |
Oops, something went wrong.