Direct polling of TX completion queue now works.

This commit is contained in:
Michael Brown
2007-09-15 20:58:29 +01:00
parent 687afdcdd9
commit 8deef093d9
4 changed files with 319 additions and 75 deletions

View File

@@ -33,6 +33,26 @@
*
*/
/**
* Find queue pair from a list
*
* @v list List of queue pairs
* @v qpn Queue pair number
* @ret qp Queue pair, or NULL if not found
*/
struct ib_queue_pair * ib_find_qp ( struct list_head *list,
unsigned long qpn ) {
struct ib_queue_pair *qp;
list_for_each_entry ( qp, list, list ) {
if ( qp->qpn == qpn )
return qp;
}
return NULL;
}
/** Infiniband broadcast MAC address */
static uint8_t ib_broadcast[IB_ALEN] = { 0xff, };