From 1e75896294d282ecd5b1717fcb3f6aa2908d5946 Mon Sep 17 00:00:00 2001 From: Eric Dumazet Date: Tue, 12 Jul 2011 22:09:18 -0700 Subject: 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 Signed-off-by: David S. Miller --- drivers/net/benet/be.h | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/net/benet/be.h') 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 { u32 rx_polls; /* number of times NAPI called poll function */ u32 rx_events; /* number of ucast rx completion events */ u32 rx_compl; /* number of rx completion entries processed */ + ulong rx_dropped; /* number of skb allocation errors */ ulong rx_jiffies; u64 rx_bytes; u64 rx_bytes_prev; -- cgit