From: Jorge B. [DTI2] <jo...@dt...> - 2011-11-21 20:39:55
|
From: "Jorge Boncompte [DTI2]" <jo...@dt...> I don't see the point on substracting the skb len from the netdev stats. Signed-off-by: Jorge Boncompte [DTI2] <jo...@dt...> --- 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 |