Skip to content

Commit ada22aa

Browse files
Jorge Boncompte [DTI2]davem330
authored andcommitted
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>
1 parent fe685b8 commit ada22aa

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

‎net/atm/clip.c‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -484,16 +484,8 @@ static int clip_mkip(struct atm_vcc *vcc, int timeout)
484484
if (!clip_devs) {
485485
atm_return(vcc, skb->truesize);
486486
kfree_skb(skb);
487-
} else {
488-
struct net_device *dev = skb->dev;
489-
unsigned int len = skb->len;
490-
491-
skb_get(skb);
487+
} else
492488
clip_push(vcc, skb);
493-
dev->stats.rx_packets--;
494-
dev->stats.rx_bytes -= len;
495-
kfree_skb(skb);
496-
}
497489
}
498490
return 0;
499491
}

0 commit comments

Comments
 (0)