2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-14 23:31:39 +00:00

Dead code disabling

This commit is contained in:
Michael Brown 2007-09-17 08:41:06 +01:00
parent b3d3814c17
commit 2209090120
2 changed files with 4 additions and 18 deletions

View File

@ -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",

View File

@ -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;