Commit b6d77734 authored by Stephen Hemminger's avatar Stephen Hemminger

sky2: no message on rx fifo overflow

Under high load it is possible to make the receiver FIFO get overloaded.
The driver/hardware recover properly, so there is no reason to fill the log
with lots of extra messages, just update counter.
Signed-off-by: default avatarStephen Hemminger <shemminger@osdl.org>
parent 16ad91e1
...@@ -2014,6 +2014,10 @@ static struct sk_buff *sky2_receive(struct net_device *dev, ...@@ -2014,6 +2014,10 @@ static struct sk_buff *sky2_receive(struct net_device *dev,
error: error:
++sky2->net_stats.rx_errors; ++sky2->net_stats.rx_errors;
if (status & GMR_FS_RX_FF_OV) {
sky2->net_stats.rx_fifo_errors++;
goto resubmit;
}
if (netif_msg_rx_err(sky2) && net_ratelimit()) if (netif_msg_rx_err(sky2) && net_ratelimit())
printk(KERN_INFO PFX "%s: rx error, status 0x%x length %d\n", printk(KERN_INFO PFX "%s: rx error, status 0x%x length %d\n",
...@@ -2025,8 +2029,6 @@ static struct sk_buff *sky2_receive(struct net_device *dev, ...@@ -2025,8 +2029,6 @@ static struct sk_buff *sky2_receive(struct net_device *dev,
sky2->net_stats.rx_frame_errors++; sky2->net_stats.rx_frame_errors++;
if (status & GMR_FS_CRC_ERR) if (status & GMR_FS_CRC_ERR)
sky2->net_stats.rx_crc_errors++; sky2->net_stats.rx_crc_errors++;
if (status & GMR_FS_RX_FF_OV)
sky2->net_stats.rx_fifo_errors++;
goto resubmit; goto resubmit;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment