diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2011-07-13 07:09:18 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-13 07:09:18 +0200 |
commit | 1e75896294d282ecd5b1717fcb3f6aa2908d5946 (patch) | |
tree | e4e886bf5852fde01f085af272cd280e37f0843a /drivers/net/benet/be_ethtool.c | |
parent | e1000e: use GFP_KERNEL allocations at init time (diff) | |
download | linux-1e75896294d282ecd5b1717fcb3f6aa2908d5946.tar.xz linux-1e75896294d282ecd5b1717fcb3f6aa2908d5946.zip |
be2net: account for skb allocation failures
If we cannot allocate new skbs in RX completion handler, we should
increase netdevice rx_dropped counter, not spam console messages.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet/be_ethtool.c')
-rw-r--r-- | drivers/net/benet/be_ethtool.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/benet/be_ethtool.c b/drivers/net/benet/be_ethtool.c index 30c1386027f8..7fd8130d86ea 100644 --- a/drivers/net/benet/be_ethtool.c +++ b/drivers/net/benet/be_ethtool.c @@ -102,6 +102,7 @@ static const struct be_ethtool_stat et_rx_stats[] = { {DRVSTAT_RX_INFO(rx_compl)}, {DRVSTAT_RX_INFO(rx_mcast_pkts)}, {DRVSTAT_RX_INFO(rx_post_fail)}, + {DRVSTAT_RX_INFO(rx_dropped)}, {ERXSTAT_INFO(rx_drops_no_fragments)} }; #define ETHTOOL_RXSTATS_NUM (ARRAY_SIZE(et_rx_stats)) |