Commit 3225b919 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Jeff Garzik
Browse files

sky2: keep track of receive alloc failures

When driver can't allocate receive buffer it drops incoming
packet. Keep a counter.
Signed-off-by: default avatarStephen Hemminger <>
Signed-off-by: default avatarJeff Garzik <>
parent 53419c68
......@@ -2141,8 +2141,10 @@ static int sky2_status_intr(struct sky2_hw *hw, int to_do)
switch (le->opcode & ~HW_OWNER) {
skb = sky2_receive(dev, length, status);
if (!skb)
if (unlikely(!skb)) {
goto force_update;
skb->protocol = eth_type_trans(skb, dev);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment