Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 134360
b: refs/heads/master
c: bd9fb1a
h: refs/heads/master
v: v3
  • Loading branch information
Scott Feldman authored and David S. Miller committed Feb 10, 2009
1 parent 25acb72 commit 5d24bc3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ed8af6b288c0643dfe0ad91f1bfc8c56c0d307cc
refs/heads/master: bd9fb1a44a5c52a1c322ebacd08f6b7416a40a86
1 change: 1 addition & 0 deletions trunk/drivers/net/enic/enic.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ struct enic {
____cacheline_aligned struct vnic_rq rq[1];
unsigned int rq_count;
int (*rq_alloc_buf)(struct vnic_rq *rq);
u64 rq_bad_fcs;
struct napi_struct napi;
struct net_lro_mgr lro_mgr;
struct net_lro_desc lro_desc[ENIC_LRO_MAX_DESC];
Expand Down
10 changes: 3 additions & 7 deletions trunk/drivers/net/enic/enic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_errors = stats->rx.rx_errors;
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;

return net_stats;
Expand Down Expand Up @@ -933,12 +933,8 @@ static void enic_rq_indicate_buf(struct vnic_rq *rq,

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);

Expand Down

0 comments on commit 5d24bc3

Please sign in to comment.