Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Feb 2008 16:00:45 GMT
From:      "Randall R. Stewart" <rrs@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 135803 for review
Message-ID:  <200802201600.m1KG0jLL057910@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=135803

Change 135803 by rrs@rrs-mips2-jnpr on 2008/02/20 15:59:50

	Less output has packets come/in out

Affected files ...

.. //depot/projects/mips2-jnpr/src/sys/dev/rgmii/octeon_rgmx.c#4 edit

Differences ...

==== //depot/projects/mips2-jnpr/src/sys/dev/rgmii/octeon_rgmx.c#4 (text+ko) ====

@@ -583,11 +583,11 @@
 #define ENABLE_BACK_PRESSURE		0
 #define RGMX_MAX_PAK_RECEIVE		5000000
 
-
+#ifdef __not_used__
 static void octeon_dump_pow_stats(void);
+#endif
 
 
-
 #ifdef	OCTEON_RGMX_SCHEDULED_ISRS
 
 
@@ -794,19 +794,17 @@
 	void *data_start, *new_data_start;
 	struct mbuf *mbuf;
 
-#define DEBUG_RX_PKT_DUMP 1
 #ifdef DEBUG_RX_PKT_DUMP
-	    int i;
+	int i;
 	u_char *dc;
 
 #endif
 
 	data_start = octeon_pow_pktptr_to_kbuffer(work->packet_ptr);
 
-#define DEBUG_RX2
 #ifdef DEBUG_RX2
 	    printf(" WQE 0x%p: port:%u  ", work, port);
-	printf(" Grp: %u, %x  Tag: %x    type: %u 0x%x\n",
+	    printf(" Grp: %u, %x  Tag: %x    type: %u 0x%x\n",
 	    work->grp, work->grp, work->tag, work->tag_type, work->tag_type);
 #endif
 
@@ -912,8 +910,6 @@
 
 #define OCTEON_VISUAL_RGMX 1
 #ifdef OCTEON_VISUAL_RGMX
-static int where0 = 0;
-static int where1 = 0;
 
 #endif
 
@@ -934,7 +930,7 @@
 
 
 #ifdef OCTEON_VISUAL_RGMX
-	octeon_led_run_wheel(&where0, 3);
+	octeon_led_run_wheel();
 #endif
 	while (1) {
 
@@ -951,7 +947,7 @@
 			break;
 		}
 #ifdef OCTEON_VISUAL_RGMX
-		octeon_led_run_wheel(&where1, 4);
+		octeon_led_run_wheel();
 #endif
 		octeon_rgmx_rx_process_work(work, work->ipprt);
 
@@ -1291,16 +1287,18 @@
 		/*
 		 * put the mbuf onto pending queue
 		 */
-#define DEBUG_TX_PKT_DUMP 1
+
 #ifdef DEBUG_TX_PKT_DUMP
-		    int ii;
-		u_char *dc = out_buff;
+		{
+		  int ii;
+		  u_char *dc = out_buff;
 
-		printf("\n");
-		printf("Out: ");
-		for (ii = 0; ii < len; ii++)
-			printf(" %X", dc[ii]);
-		printf("\n");
+		  printf("\n");
+		  printf("Out: ");
+		  for (ii = 0; ii < len; ii++)
+		    printf(" %X", dc[ii]);
+		  printf("\n");
+		}
 #endif
 
 		IF_ENQUEUE(&sc->tx_pending_queue, m);
@@ -2035,7 +2033,7 @@
 	}
 }
 #endif
-
+#ifdef _not_used_
 static void 
 octeon_dump_pow_stats(void)
 {
@@ -2084,7 +2082,7 @@
 			printf(" Grp-%u:  %u ", i, inpt_q_grp.bits.iq_cnt);
 	}
 }
-
+#endif
 
 /* ------------------------------------------------------------------- *
  *                      octeon_line_status_loop()                      *
@@ -2116,7 +2114,7 @@
 		/*octeon_dump_fpa_pool(OCTEON_FPA_WQE_RX_POOL);*/
 		/*octeon_dump_fpa_pool(OCTEON_FPA_TX_PACKET_POOL);*/
 		octeon_dump_rgmx_stats(16);
-		octeon_dump_pow_stats();
+		/*octeon_dump_pow_stats();*/
 	}
 #endif
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802201600.m1KG0jLL057910>