summaryrefslogtreecommitdiffstats
path: root/drivers/net/benet/be_ethtool.c
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2011-07-13 07:09:18 +0200
committerDavid S. Miller <davem@davemloft.net>2011-07-13 07:09:18 +0200
commit1e75896294d282ecd5b1717fcb3f6aa2908d5946 (patch)
treee4e886bf5852fde01f085af272cd280e37f0843a /drivers/net/benet/be_ethtool.c
parente1000e: use GFP_KERNEL allocations at init time (diff)
downloadlinux-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.c1
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))