Skip to contentSkip to conversation

ravb: Remove Rx overflow log messages

PATCH Applied Simon Horman 2 participants 2 messages Jan 12, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ravb: Remove Rx overflow log messages

From: Kazuya Mizuguchi <[email protected]>

Remove Rx overflow log messages as in an environment where logging results in network traffic logging may cause further overflows.

Fixes c156633f1353 ("Renesas Ethernet AVB driver proper")
[simon: reworked changelog]

---
Changes since RFC:
* Added Ack from Sergei

---
 drivers/net/ethernet/renesas/ravb_main.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
drivers/net/ethernet/renesas/ravb_main.c +2 -6
index 92d7692c840d..5e5ad978eab9 100644
@@ -926,14 +926,10 @@ static int ravb_poll(struct napi_struct *napi, int budget)
 	/* Receive error message handling */
 	priv->rx_over_errors =  priv->stats[RAVB_BE].rx_over_errors;
 	priv->rx_over_errors += priv->stats[RAVB_NC].rx_over_errors;
-	if (priv->rx_over_errors != ndev->stats.rx_over_errors) {
+	if (priv->rx_over_errors != ndev->stats.rx_over_errors)
 		ndev->stats.rx_over_errors = priv->rx_over_errors;
-		netif_err(priv, rx_err, ndev, "Receive Descriptor Empty\n");
-	}
-	if (priv->rx_fifo_errors != ndev->stats.rx_fifo_errors) {
+	if (priv->rx_fifo_errors != ndev->stats.rx_fifo_errors)
 		ndev->stats.rx_fifo_errors = priv->rx_fifo_errors;
-		netif_err(priv, rx_err, ndev, "Receive FIFO Overflow\n");
-	}
 out:
 	return budget - quota;
 }
Signature · 1 line
2.7.0.rc3.207.g0ac5344
maintainer Applied
#1 lore raw

From: Simon Horman <[email protected]>
Date: Thu, 12 Jan 2017 13:21:06 +0100

Quoted 10 lines

From: Kazuya Mizuguchi <[email protected]>

Remove Rx overflow log messages as in an environment where logging results in network traffic logging may cause further overflows.

Fixes c156633f1353 ("Renesas Ethernet AVB driver proper")
[simon: reworked changelog]

Applied, thanks.