[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1321907158-27857-3-git-send-email-jorge@dti2.net>
Date: Mon, 21 Nov 2011 21:25:55 +0100
From: "Jorge Boncompte [DTI2]" <jorge@...2.net>
To: netdev@...r.kernel.org, linux-atm-general@...ts.sourceforge.net
Cc: "Jorge Boncompte [DTI2]" <jorge@...2.net>
Subject: [PATCH 2/5] atm: clip: Don't move counters backwards
From: "Jorge Boncompte [DTI2]" <jorge@...2.net>
I don't see the point on substracting the skb len from the netdev stats.
Signed-off-by: Jorge Boncompte [DTI2] <jorge@...2.net>
---
net/atm/clip.c | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
diff --git a/net/atm/clip.c b/net/atm/clip.c
index 8523940..3cb9470 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;
}
--
1.7.7.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists