be2net: account for skb allocation failures
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 13 Jul 2011 05:09:18 +0000 (22:09 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Jul 2011 05:09:18 +0000 (22:09 -0700)
commit1e75896294d282ecd5b1717fcb3f6aa2908d5946
treee4e886bf5852fde01f085af272cd280e37f0843a
parentc2fed9965c60e1f989f57889357c557f7b907ab7
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>
drivers/net/benet/be.h
drivers/net/benet/be_ethtool.c
drivers/net/benet/be_main.c