Skip to content

Commit fe685b8

Browse files
Jorge Boncompte [DTI2]davem330
authored andcommitted
atm: br2684: Do not move counters backwards
This snippet has caused several bugs in the past, and I don't see the point on substracting the skb len from netdev stats. Signed-off-by: Jorge Boncompte [DTI2] <jorge@dti2.net> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent e348c5e commit fe685b8

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

‎net/atm/br2684.c‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -557,15 +557,8 @@ static int br2684_regvcc(struct atm_vcc *atmvcc, void __user * arg)
557557
skb_queue_splice_init(rq, &queue);
558558
spin_unlock_irqrestore(&rq->lock, flags);
559559

560-
skb_queue_walk_safe(&queue, skb, tmp) {
561-
struct net_device *dev;
562-
560+
skb_queue_walk_safe(&queue, skb, tmp)
563561
br2684_push(atmvcc, skb);
564-
dev = skb->dev;
565-
566-
dev->stats.rx_bytes -= skb->len;
567-
dev->stats.rx_packets--;
568-
}
569562

570563
/* initialize netdev carrier state */
571564
if (atmvcc->dev->signal == ATM_PHY_SIG_LOST)

0 commit comments

Comments
 (0)