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

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

805
 	MLX_FILL_1 ( &wqe->ud, 3, ud_address_vector.sl, av->sl );
805
 	MLX_FILL_1 ( &wqe->ud, 3, ud_address_vector.sl, av->sl );
806
 	gid = ( av->gid_present ? &av->gid : &arbel_no_gid );
806
 	gid = ( av->gid_present ? &av->gid : &arbel_no_gid );
807
 	memcpy ( &wqe->ud.u.dwords[4], gid, sizeof ( *gid ) );
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
 	MLX_FILL_1 ( &wqe->ud, 8, destination_qp, av->dest_qp );
808
 	MLX_FILL_1 ( &wqe->ud, 8, destination_qp, av->dest_qp );
817
 	MLX_FILL_1 ( &wqe->ud, 9, q_key, av->qkey );
809
 	MLX_FILL_1 ( &wqe->ud, 9, q_key, av->qkey );
818
 	MLX_FILL_1 ( &wqe->data[0], 0, byte_count, iob_len ( iobuf ) );
810
 	MLX_FILL_1 ( &wqe->data[0], 0, byte_count, iob_len ( iobuf ) );
829
 		     f, 1,
821
 		     f, 1,
830
 		     always1, 1 );
822
 		     always1, 1 );
831
 
823
 
832
-
833
-	DBG ( "arbel_post_send()\n" );
834
-	DBG_HD ( wqe, sizeof ( *wqe ) );
835
-
836
-
837
 	/* Update doorbell record */
824
 	/* Update doorbell record */
838
 	barrier();
825
 	barrier();
839
 	qp_db_rec = &arbel->db_rec[arbel_send_wq->doorbell_idx].qp;
826
 	qp_db_rec = &arbel->db_rec[arbel_send_wq->doorbell_idx].qp;

Loading…
Cancel
Save