diff options
-rw-r--r-- | drivers/net/niu.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/niu.c b/drivers/net/niu.c index 7b6cdd07c85f..671721c8ca65 100644 --- a/drivers/net/niu.c +++ b/drivers/net/niu.c | |||
@@ -3558,6 +3558,9 @@ static inline void niu_sync_rx_discard_stats(struct niu *np, | |||
3558 | if (unlikely(misc & RXMISC_OFLOW)) | 3558 | if (unlikely(misc & RXMISC_OFLOW)) |
3559 | dev_err(np->device, "rx-%d: Counter overflow " | 3559 | dev_err(np->device, "rx-%d: Counter overflow " |
3560 | "RXMISC discard\n", rx_channel); | 3560 | "RXMISC discard\n", rx_channel); |
3561 | |||
3562 | niudbg(RX_ERR, "%s-rx-%d: MISC drop=%u over=%u\n", | ||
3563 | np->dev->name, rx_channel, misc, misc-limit); | ||
3561 | } | 3564 | } |
3562 | 3565 | ||
3563 | /* WRED (Weighted Random Early Discard) by hardware */ | 3566 | /* WRED (Weighted Random Early Discard) by hardware */ |
@@ -3569,6 +3572,9 @@ static inline void niu_sync_rx_discard_stats(struct niu *np, | |||
3569 | if (unlikely(wred & RED_DIS_CNT_OFLOW)) | 3572 | if (unlikely(wred & RED_DIS_CNT_OFLOW)) |
3570 | dev_err(np->device, "rx-%d: Counter overflow " | 3573 | dev_err(np->device, "rx-%d: Counter overflow " |
3571 | "WRED discard\n", rx_channel); | 3574 | "WRED discard\n", rx_channel); |
3575 | |||
3576 | niudbg(RX_ERR, "%s-rx-%d: WRED drop=%u over=%u\n", | ||
3577 | np->dev->name, rx_channel, wred, wred-limit); | ||
3572 | } | 3578 | } |
3573 | } | 3579 | } |
3574 | 3580 | ||