From 22090901202332b5ce427436272b780d2ddfb324 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 17 Sep 2007 08:41:06 +0100 Subject: [PATCH] Dead code disabling --- src/drivers/net/ipoib.c | 9 ++++----- src/drivers/net/mlx_ipoib/mt25218.c | 13 ------------- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/src/drivers/net/ipoib.c b/src/drivers/net/ipoib.c index a848b711..8432b2a6 100644 --- a/src/drivers/net/ipoib.c +++ b/src/drivers/net/ipoib.c @@ -274,6 +274,7 @@ static int ipoib_get_path_record ( struct ipoib_device *ipoib, static uint32_t tid = 0; int rc; +#if 0 DBG ( "get_path_record():\n" ); int get_path_record(struct ib_gid *dgid, uint16_t *dlid_p, uint8_t *sl_p, uint8_t *rate_p); @@ -283,6 +284,7 @@ static int ipoib_get_path_record ( struct ipoib_device *ipoib, get_path_record ( gid, &tmp_dlid, &tmp_sl, &tmp_rate ); DBG ( "ipoib_get_path_record():\n" ); +#endif /* Allocate I/O buffer */ iobuf = alloc_iob ( sizeof ( *path_record ) ); @@ -305,7 +307,7 @@ static int ipoib_get_path_record ( struct ipoib_device *ipoib, memcpy ( &path_record->sgid, &ibdev->port_gid, sizeof ( path_record->sgid ) ); - DBG_HD ( path_record, sizeof ( *path_record ) ); + // DBG_HD ( path_record, sizeof ( *path_record ) ); /* Construct address vector */ memset ( &av, 0, sizeof ( av ) ); @@ -421,9 +423,6 @@ static void ipoib_meta_complete_send ( struct ib_device *ibdev __unused, struct net_device *netdev = qp->owner_priv; struct ipoib_device *ipoib = netdev->priv; - DBG ( "Woohoo! METADATA TX completion\n" ); - - if ( completion->syndrome ) { DBGC ( ipoib, "IPoIB %p metadata TX completion error %x\n", ipoib, completion->syndrome ); @@ -446,7 +445,7 @@ static void ipoib_meta_complete_recv ( struct ib_device *ibdev __unused, struct net_device *netdev = qp->owner_priv; struct ipoib_device *ipoib = netdev->priv; - DBG ( "***************** META TX!!!!!! ********\n" ); + DBG ( "***************** META RX!!!!!! ********\n" ); if ( completion->syndrome ) { DBGC ( ipoib, "IPoIB %p metadata RX completion error %x\n", diff --git a/src/drivers/net/mlx_ipoib/mt25218.c b/src/drivers/net/mlx_ipoib/mt25218.c index fb98d543..6b5bd066 100644 --- a/src/drivers/net/mlx_ipoib/mt25218.c +++ b/src/drivers/net/mlx_ipoib/mt25218.c @@ -805,14 +805,6 @@ static int arbel_post_send ( struct ib_device *ibdev, MLX_FILL_1 ( &wqe->ud, 3, ud_address_vector.sl, av->sl ); gid = ( av->gid_present ? &av->gid : &arbel_no_gid ); memcpy ( &wqe->ud.u.dwords[4], gid, sizeof ( *gid ) ); - - if ( ! av->gid_present ) { - DBG ( "no_gid:\n" ); - DBG_HD ( &arbel_no_gid, sizeof ( arbel_no_gid ) ); - DBG ( "gid:\n" ); - DBG_HD ( &wqe->ud.u.dwords[4], 16 ); - } - MLX_FILL_1 ( &wqe->ud, 8, destination_qp, av->dest_qp ); MLX_FILL_1 ( &wqe->ud, 9, q_key, av->qkey ); MLX_FILL_1 ( &wqe->data[0], 0, byte_count, iob_len ( iobuf ) ); @@ -829,11 +821,6 @@ static int arbel_post_send ( struct ib_device *ibdev, f, 1, always1, 1 ); - - DBG ( "arbel_post_send()\n" ); - DBG_HD ( wqe, sizeof ( *wqe ) ); - - /* Update doorbell record */ barrier(); qp_db_rec = &arbel->db_rec[arbel_send_wq->doorbell_idx].qp;