aboutsummaryrefslogtreecommitdiffstats
path: root/net/atm
diff options
context:
space:
mode:
authorJorge Boncompte [DTI2] <jorge@dti2.net>2011-11-21 05:25:55 -0500
committerDavid S. Miller <davem@davemloft.net>2011-11-22 16:15:28 -0500
commitada22aa563c5932242d9684e01a3f51b7ea08801 (patch)
tree4a2f37b0dfd72dfc219ae075b079bf3a1db9d2ba /net/atm
parentfe685b80469996149ca28c74062f72b5879c1607 (diff)
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] <jorge@dti2.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm')
-rw-r--r--net/atm/clip.c10
1 files changed, 1 insertions, 9 deletions
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)
484 if (!clip_devs) { 484 if (!clip_devs) {
485 atm_return(vcc, skb->truesize); 485 atm_return(vcc, skb->truesize);
486 kfree_skb(skb); 486 kfree_skb(skb);
487 } else { 487 } else
488 struct net_device *dev = skb->dev;
489 unsigned int len = skb->len;
490
491 skb_get(skb);
492 clip_push(vcc, skb); 488 clip_push(vcc, skb);
493 dev->stats.rx_packets--;
494 dev->stats.rx_bytes -= len;
495 kfree_skb(skb);
496 }
497 } 489 }
498 return 0; 490 return 0;
499} 491}