Skip to content

Commit

Permalink
atm: clip: Don't move counters backwards
Browse files Browse the repository at this point in the history
I don't see the point on substracting the skb len from the netdev
stats.

Signed-off-by: Jorge Boncompte [DTI2] <jorge@dti2.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jorge Boncompte [DTI2] authored and davem330 committed Nov 22, 2011
1 parent fe685b8 commit ada22aa
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions net/atm/clip.c
Original file line number Diff line number Diff line change
Expand Up @@ -484,16 +484,8 @@ static int clip_mkip(struct atm_vcc *vcc, int timeout)
if (!clip_devs) {
atm_return(vcc, skb->truesize);
kfree_skb(skb);
} else {
struct net_device *dev = skb->dev;
unsigned int len = skb->len;

skb_get(skb);
} else
clip_push(vcc, skb);
dev->stats.rx_packets--;
dev->stats.rx_bytes -= len;
kfree_skb(skb);
}
}
return 0;
}
Expand Down

0 comments on commit ada22aa

Please sign in to comment.