|
@@ -688,7 +688,7 @@ static struct net_device_stats *enic_get_stats(struct net_device *netdev)
|
|
net_stats->rx_bytes = stats->rx.rx_bytes_ok;
|
|
net_stats->rx_bytes = stats->rx.rx_bytes_ok;
|
|
net_stats->rx_errors = stats->rx.rx_errors;
|
|
net_stats->rx_errors = stats->rx.rx_errors;
|
|
net_stats->multicast = stats->rx.rx_multicast_frames_ok;
|
|
net_stats->multicast = stats->rx.rx_multicast_frames_ok;
|
|
- net_stats->rx_crc_errors = stats->rx.rx_crc_errors;
|
|
|
|
|
|
+ net_stats->rx_crc_errors = enic->rq_bad_fcs;
|
|
net_stats->rx_dropped = stats->rx.rx_no_bufs;
|
|
net_stats->rx_dropped = stats->rx.rx_no_bufs;
|
|
|
|
|
|
return net_stats;
|
|
return net_stats;
|
|
@@ -933,12 +933,8 @@ static void enic_rq_indicate_buf(struct vnic_rq *rq,
|
|
|
|
|
|
if (packet_error) {
|
|
if (packet_error) {
|
|
|
|
|
|
- if (bytes_written > 0 && !fcs_ok) {
|
|
|
|
- if (net_ratelimit())
|
|
|
|
- printk(KERN_ERR PFX
|
|
|
|
- "%s: packet error: bad FCS\n",
|
|
|
|
- netdev->name);
|
|
|
|
- }
|
|
|
|
|
|
+ if (bytes_written > 0 && !fcs_ok)
|
|
|
|
+ enic->rq_bad_fcs++;
|
|
|
|
|
|
dev_kfree_skb_any(skb);
|
|
dev_kfree_skb_any(skb);
|
|
|
|
|