mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
ravb: Remove Rx overflow log messages
[ Upstream commit18a3ed59d0] Remove Rx overflow log messages as in an environment where logging results in network traffic logging may cause further overflows. Fixes:c156633f13("Renesas Ethernet AVB driver proper") Signed-off-by: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com> [simon: reworked changelog] Signed-off-by: Simon Horman <horms+renesas@verge.net.au> Acked-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1bb50d02a8
commit
7228df818d
@@ -831,14 +831,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user