diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2011-07-13 01:09:18 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-13 01:09:18 -0400 |
commit | 1e75896294d282ecd5b1717fcb3f6aa2908d5946 (patch) | |
tree | e4e886bf5852fde01f085af272cd280e37f0843a /drivers/net/benet/be.h | |
parent | c2fed9965c60e1f989f57889357c557f7b907ab7 (diff) |
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.h')
-rw-r--r-- | drivers/net/benet/be.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/benet/be.h b/drivers/net/benet/be.h index 9aa1534c7d88..72ec00f2d032 100644 --- a/drivers/net/benet/be.h +++ b/drivers/net/benet/be.h | |||
@@ -199,6 +199,7 @@ struct be_rx_stats { | |||
199 | u32 rx_polls; /* number of times NAPI called poll function */ | 199 | u32 rx_polls; /* number of times NAPI called poll function */ |
200 | u32 rx_events; /* number of ucast rx completion events */ | 200 | u32 rx_events; /* number of ucast rx completion events */ |
201 | u32 rx_compl; /* number of rx completion entries processed */ | 201 | u32 rx_compl; /* number of rx completion entries processed */ |
202 | ulong rx_dropped; /* number of skb allocation errors */ | ||
202 | ulong rx_jiffies; | 203 | ulong rx_jiffies; |
203 | u64 rx_bytes; | 204 | u64 rx_bytes; |
204 | u64 rx_bytes_prev; | 205 | u64 rx_bytes_prev; |