Browse Source

Dead code disabling

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
2209090120
2 changed files with 4 additions and 18 deletions
  1. 4
    5
      src/drivers/net/ipoib.c
  2. 0
    13
      src/drivers/net/mlx_ipoib/mt25218.c

+ 4
- 5
src/drivers/net/ipoib.c View File

@@ -274,6 +274,7 @@ static int ipoib_get_path_record ( struct ipoib_device *ipoib,
274 274
  	static uint32_t tid = 0;
275 275
 	int rc;
276 276
 
277
+#if 0
277 278
 	DBG ( "get_path_record():\n" );
278 279
 	int get_path_record(struct ib_gid *dgid, uint16_t *dlid_p,
279 280
 			    uint8_t *sl_p, uint8_t *rate_p);
@@ -283,6 +284,7 @@ static int ipoib_get_path_record ( struct ipoib_device *ipoib,
283 284
 	get_path_record ( gid, &tmp_dlid, &tmp_sl, &tmp_rate );
284 285
 
285 286
 	DBG ( "ipoib_get_path_record():\n" );
287
+#endif
286 288
 
287 289
 	/* Allocate I/O buffer */
288 290
 	iobuf = alloc_iob ( sizeof ( *path_record ) );
@@ -305,7 +307,7 @@ static int ipoib_get_path_record ( struct ipoib_device *ipoib,
305 307
 	memcpy ( &path_record->sgid, &ibdev->port_gid,
306 308
 		 sizeof ( path_record->sgid ) );
307 309
 
308
-	DBG_HD ( path_record, sizeof ( *path_record ) );
310
+	//	DBG_HD ( path_record, sizeof ( *path_record ) );
309 311
 
310 312
 	/* Construct address vector */
311 313
 	memset ( &av, 0, sizeof ( av ) );
@@ -421,9 +423,6 @@ static void ipoib_meta_complete_send ( struct ib_device *ibdev __unused,
421 423
 	struct net_device *netdev = qp->owner_priv;
422 424
 	struct ipoib_device *ipoib = netdev->priv;
423 425
 
424
-	DBG ( "Woohoo! METADATA TX completion\n" );
425
-
426
-
427 426
 	if ( completion->syndrome ) {
428 427
 		DBGC ( ipoib, "IPoIB %p metadata TX completion error %x\n",
429 428
 		       ipoib, completion->syndrome );
@@ -446,7 +445,7 @@ static void ipoib_meta_complete_recv ( struct ib_device *ibdev __unused,
446 445
 	struct net_device *netdev = qp->owner_priv;
447 446
 	struct ipoib_device *ipoib = netdev->priv;
448 447
 
449
-	DBG ( "***************** META TX!!!!!! ********\n" );
448
+	DBG ( "***************** META RX!!!!!! ********\n" );
450 449
 
451 450
 	if ( completion->syndrome ) {
452 451
 		DBGC ( ipoib, "IPoIB %p metadata RX completion error %x\n",

+ 0
- 13
src/drivers/net/mlx_ipoib/mt25218.c View File

@@ -805,14 +805,6 @@ static int arbel_post_send ( struct ib_device *ibdev,
805 805
 	MLX_FILL_1 ( &wqe->ud, 3, ud_address_vector.sl, av->sl );
806 806
 	gid = ( av->gid_present ? &av->gid : &arbel_no_gid );
807 807
 	memcpy ( &wqe->ud.u.dwords[4], gid, sizeof ( *gid ) );
808
-	
809
-	if ( ! av->gid_present ) {
810
-		DBG ( "no_gid:\n" );
811
-		DBG_HD ( &arbel_no_gid, sizeof ( arbel_no_gid ) );
812
-		DBG ( "gid:\n" );
813
-		DBG_HD ( &wqe->ud.u.dwords[4], 16 );
814
-	}
815
-	
816 808
 	MLX_FILL_1 ( &wqe->ud, 8, destination_qp, av->dest_qp );
817 809
 	MLX_FILL_1 ( &wqe->ud, 9, q_key, av->qkey );
818 810
 	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,
829 821
 		     f, 1,
830 822
 		     always1, 1 );
831 823
 
832
-
833
-	DBG ( "arbel_post_send()\n" );
834
-	DBG_HD ( wqe, sizeof ( *wqe ) );
835
-
836
-
837 824
 	/* Update doorbell record */
838 825
 	barrier();
839 826
 	qp_db_rec = &arbel->db_rec[arbel_send_wq->doorbell_idx].qp;

Loading…
Cancel
Save