Browse Source

[intel] Incorporate ring producer and consumer counters in diagnostics

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 years ago
parent
commit
18521a170c
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      src/drivers/net/intel.c

+ 6
- 1
src/drivers/net/intel.c View File

@@ -247,10 +247,15 @@ static int intel_fetch_mac ( struct intel_nic *intel, uint8_t *hw_addr ) {
247 247
  */
248 248
 static void __attribute__ (( unused )) intel_diag ( struct intel_nic *intel ) {
249 249
 
250
-	DBGC ( intel, "INTEL %p TDH=%04x TDT=%04x RDH=%04x RDT=%04x\n", intel,
250
+	DBGC ( intel, "INTEL %p TX %04x(%02x)/%04x(%02x) "
251
+	       "RX %04x(%02x)/%04x(%02x)\n", intel,
252
+	       ( intel->tx.cons & 0xffff ),
251 253
 	       readl ( intel->regs + intel->tx.reg + INTEL_xDH ),
254
+	       ( intel->tx.prod & 0xffff ),
252 255
 	       readl ( intel->regs + intel->tx.reg + INTEL_xDT ),
256
+	       ( intel->rx.cons & 0xffff ),
253 257
 	       readl ( intel->regs + intel->rx.reg + INTEL_xDH ),
258
+	       ( intel->rx.prod & 0xffff ),
254 259
 	       readl ( intel->regs + intel->rx.reg + INTEL_xDT ) );
255 260
 }
256 261
 

Loading…
Cancel
Save