From: Michael Brown Date: Thu, 13 Sep 2007 02:15:27 +0000 (+0100) Subject: Dump received packet, including GRH. X-Git-Tag: v0.9.3~71^2~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03c90e183f5a90327205efb5a88d5c2924236cf3;p=thirdparty%2Fipxe.git Dump received packet, including GRH. --- diff --git a/src/drivers/net/mlx_ipoib/mt25218.c b/src/drivers/net/mlx_ipoib/mt25218.c index 360a12fda..de91dac65 100644 --- a/src/drivers/net/mlx_ipoib/mt25218.c +++ b/src/drivers/net/mlx_ipoib/mt25218.c @@ -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 ) );