Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183830
b: refs/heads/master
c: 90c3033
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Feb 4, 2010
1 parent c9974e8 commit 8571c23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3fbd9187d004149fb8a98c9cb51ef9f4a4f66aca
refs/heads/master: 90c30335a70e96b8b8493b7deb15e6b30e6d9fce
8 changes: 5 additions & 3 deletions trunk/drivers/net/sky2.c
Original file line number Diff line number Diff line change
Expand Up @@ -2404,6 +2404,9 @@ static struct sk_buff *sky2_receive(struct net_device *dev,
skb = receive_copy(sky2, re, length);
else
skb = receive_new(sky2, re, length);

dev->stats.rx_dropped += (skb == NULL);

resubmit:
sky2_rx_submit(sky2, re);

Expand Down Expand Up @@ -2515,11 +2518,10 @@ static int sky2_status_intr(struct sky2_hw *hw, int to_do, u16 idx)
case OP_RXSTAT:
total_packets[port]++;
total_bytes[port] += length;

skb = sky2_receive(dev, length, status);
if (unlikely(!skb)) {
dev->stats.rx_dropped++;
if (!skb)
break;
}

/* This chip reports checksum status differently */
if (hw->flags & SKY2_HW_NEW_LE) {
Expand Down

0 comments on commit 8571c23

Please sign in to comment.