Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[infiniband] Improve ib_packet debugging messages
  • Loading branch information
Michael Brown committed Jul 17, 2009
1 parent 47c4aaa commit 0582a84
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions src/net/infiniband/ib_packet.c
Expand Up @@ -213,15 +213,23 @@ int ib_pull ( struct ib_device *ibdev, struct io_buffer *iobuf,
/* Determine destination QP, if applicable */
if ( qp ) {
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 {
*qp = ib_find_qp_qpn ( ibdev, qpn );
}
if ( ! *qp ) {
DBGC ( ibdev, "IBDEV %p RX for nonexistent QP\n",
ibdev );
return -ENODEV;
if ( ! ( *qp = ib_find_qp_qpn ( ibdev, qpn ) ) ) {
DBGC ( ibdev, "IBDEV %p RX for nonexistent "
"QPN %lx\n", ibdev, qpn );
return -ENODEV;
}
}
assert ( *qp );
}

DBGC2 ( ibdev, "IBDEV %p RX %04x:%08lx <= %04x:%08lx (key %08x)\n",
Expand Down

0 comments on commit 0582a84

Please sign in to comment.