From: Jorge Boncompte [DTI2] Date: Mon, 21 Nov 2011 10:25:55 +0000 (+0000) Subject: atm: clip: Don't move counters backwards X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ada22aa563c5932242d9684e01a3f51b7ea08801;p=openwrt%2Fstaging%2Fblogic.git atm: clip: Don't move counters backwards I don't see the point on substracting the skb len from the netdev stats. Signed-off-by: Jorge Boncompte [DTI2] Signed-off-by: David S. Miller --- diff --git a/net/atm/clip.c b/net/atm/clip.c index 32c41b8a803e..b3ab7ddc1185 100644 --- a/net/atm/clip.c +++ b/net/atm/clip.c @@ -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; }