diff options
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r-- | drivers/net/tg3.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 22720eeabddb..852e917778f8 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -4754,7 +4754,7 @@ static int tg3_rx(struct tg3_napi *tnapi, int budget) | |||
4754 | desc_idx, *post_ptr); | 4754 | desc_idx, *post_ptr); |
4755 | drop_it_no_recycle: | 4755 | drop_it_no_recycle: |
4756 | /* Other statistics kept track of by card. */ | 4756 | /* Other statistics kept track of by card. */ |
4757 | tp->net_stats.rx_dropped++; | 4757 | tp->rx_dropped++; |
4758 | goto next_pkt; | 4758 | goto next_pkt; |
4759 | } | 4759 | } |
4760 | 4760 | ||
@@ -4814,7 +4814,7 @@ static int tg3_rx(struct tg3_napi *tnapi, int budget) | |||
4814 | if (len > (tp->dev->mtu + ETH_HLEN) && | 4814 | if (len > (tp->dev->mtu + ETH_HLEN) && |
4815 | skb->protocol != htons(ETH_P_8021Q)) { | 4815 | skb->protocol != htons(ETH_P_8021Q)) { |
4816 | dev_kfree_skb(skb); | 4816 | dev_kfree_skb(skb); |
4817 | goto next_pkt; | 4817 | goto drop_it_no_recycle; |
4818 | } | 4818 | } |
4819 | 4819 | ||
4820 | if (desc->type_flags & RXD_FLAG_VLAN && | 4820 | if (desc->type_flags & RXD_FLAG_VLAN && |
@@ -9453,6 +9453,8 @@ static struct rtnl_link_stats64 *tg3_get_stats64(struct net_device *dev, | |||
9453 | stats->rx_missed_errors = old_stats->rx_missed_errors + | 9453 | stats->rx_missed_errors = old_stats->rx_missed_errors + |
9454 | get_stat64(&hw_stats->rx_discards); | 9454 | get_stat64(&hw_stats->rx_discards); |
9455 | 9455 | ||
9456 | stats->rx_dropped = tp->rx_dropped; | ||
9457 | |||
9456 | return stats; | 9458 | return stats; |
9457 | } | 9459 | } |
9458 | 9460 | ||