Patchwork [17/17] cadence_gem: Add debug msgs for rx desc movement

login
register
mail settings
Submitter Peter Maydell
Date Feb. 28, 2013, 6:54 p.m.
Message ID <1362077643-31443-18-git-send-email-peter.maydell@linaro.org>
Download mbox | patch
Permalink /patch/224150/
State New
Headers show

Comments

Peter Maydell - Feb. 28, 2013, 6:54 p.m.
From: Peter Crosthwaite <peter.crosthwaite@xilinx.com>

Add some helpful messages that show the rx descriptor pointer moving as packets
are rxed.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Message-id: 1ef2eb34dade64d589a69a2bcfd5aaddb7d50164.1360901435.git.peter.crosthwaite@xilinx.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 hw/cadence_gem.c |    2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/hw/cadence_gem.c b/hw/cadence_gem.c
index 61f1801..de7d15a 100644
--- a/hw/cadence_gem.c
+++ b/hw/cadence_gem.c
@@ -724,7 +724,9 @@  static ssize_t gem_receive(NetClientState *nc, const uint8_t *buf, size_t size)
     s->rx_desc_addr = last_desc_addr;
     if (rx_desc_get_wrap(desc)) {
         s->rx_desc_addr = s->regs[GEM_RXQBASE];
+        DB_PRINT("wrapping RX descriptor list\n");
     } else {
+        DB_PRINT("incrementing RX descriptor list\n");
         s->rx_desc_addr += 8;
     }