david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[infiniband] Improve ib_packet debugging messages

This commit is contained in:
Michael Brown 2009-07-08 04:31:48 +01:00
parent 47c4aaa9e2
commit 0582a84e66
1 changed files with 15 additions and 7 deletions

View File

@ -213,15 +213,23 @@ int ib_pull ( struct ib_device *ibdev, struct io_buffer *iobuf,
/* Determine destination QP, if applicable */ /* Determine destination QP, if applicable */
if ( qp ) { if ( qp ) {
if ( IB_LID_MULTICAST ( lid ) && grh ) { if ( IB_LID_MULTICAST ( lid ) && grh ) {
*qp = ib_find_qp_mgid ( ibdev, &grh->dgid ); if ( ! ( *qp = ib_find_qp_mgid ( ibdev, &grh->dgid ))){
DBGC ( ibdev, "IBDEV %p RX for unknown MGID "
"%08x:%08x:%08x:%08x\n", ibdev,
ntohl ( grh->dgid.u.dwords[0] ),
ntohl ( grh->dgid.u.dwords[1] ),
ntohl ( grh->dgid.u.dwords[2] ),
ntohl ( grh->dgid.u.dwords[3] ) );
return -ENODEV;
}
} else { } else {
*qp = ib_find_qp_qpn ( ibdev, qpn ); if ( ! ( *qp = ib_find_qp_qpn ( ibdev, qpn ) ) ) {
} DBGC ( ibdev, "IBDEV %p RX for nonexistent "
if ( ! *qp ) { "QPN %lx\n", ibdev, qpn );
DBGC ( ibdev, "IBDEV %p RX for nonexistent QP\n", return -ENODEV;
ibdev ); }
return -ENODEV;
} }
assert ( *qp );
} }
DBGC2 ( ibdev, "IBDEV %p RX %04x:%08lx <= %04x:%08lx (key %08x)\n", DBGC2 ( ibdev, "IBDEV %p RX %04x:%08lx <= %04x:%08lx (key %08x)\n",