From 18521a170c6b256d842d8f1e298edf61c9104a83 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 14 Jul 2013 19:07:38 +0200 Subject: [PATCH] [intel] Incorporate ring producer and consumer counters in diagnostics Signed-off-by: Michael Brown --- src/drivers/net/intel.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/drivers/net/intel.c b/src/drivers/net/intel.c index c3a7d407..569f3911 100644 --- a/src/drivers/net/intel.c +++ b/src/drivers/net/intel.c @@ -247,10 +247,15 @@ static int intel_fetch_mac ( struct intel_nic *intel, uint8_t *hw_addr ) { */ static void __attribute__ (( unused )) intel_diag ( struct intel_nic *intel ) { - DBGC ( intel, "INTEL %p TDH=%04x TDT=%04x RDH=%04x RDT=%04x\n", intel, + DBGC ( intel, "INTEL %p TX %04x(%02x)/%04x(%02x) " + "RX %04x(%02x)/%04x(%02x)\n", intel, + ( intel->tx.cons & 0xffff ), readl ( intel->regs + intel->tx.reg + INTEL_xDH ), + ( intel->tx.prod & 0xffff ), readl ( intel->regs + intel->tx.reg + INTEL_xDT ), + ( intel->rx.cons & 0xffff ), readl ( intel->regs + intel->rx.reg + INTEL_xDH ), + ( intel->rx.prod & 0xffff ), readl ( intel->regs + intel->rx.reg + INTEL_xDT ) ); }