2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-14 15:21:32 +00:00

Dump received packet, including GRH.

This commit is contained in:
Michael Brown 2007-09-13 03:15:27 +01:00
parent 7e4e5af462
commit 03c90e183f

View File

@ -246,7 +246,13 @@ static void mlx_poll ( struct net_device *netdev ) {
free_wqe ( ib_cqe.wqe );
return;
}
buf = get_rcv_wqe_buf(ib_cqe.wqe, 1);
memcpy ( iob_put ( iobuf, len ), buf, len );
DBG ( "Received packet header:\n" );
struct recv_wqe_st *rcv_wqe = ib_cqe.wqe;
DBG_HD ( get_rcv_wqe_buf(ib_cqe.wqe, 0),
be32_to_cpu(rcv_wqe->mpointer[0].byte_count) );
DBG ( "Received packet:\n" );
DBG_HD ( iobuf->data, iob_len ( iobuf ) );