projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e348c5e
)
atm: br2684: Do not move counters backwards
author
Jorge Boncompte [DTI2]
<jorge@dti2.net>
Mon, 21 Nov 2011 10:25:54 +0000
(10:25 +0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 22 Nov 2011 21:15:22 +0000
(16:15 -0500)
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>
net/atm/br2684.c
patch
|
blob
|
history
diff --git
a/net/atm/br2684.c
b/net/atm/br2684.c
index d07223c834af2a6b2bc45606d64d0093f30d9897..81cf33b1527de0f4a0e72aeb289aba26e96ac8f8 100644
(file)
--- a/
net/atm/br2684.c
+++ b/
net/atm/br2684.c
@@
-557,15
+557,8
@@
static int br2684_regvcc(struct atm_vcc *atmvcc, void __user * arg)
skb_queue_splice_init(rq, &queue);
spin_unlock_irqrestore(&rq->lock, flags);
- skb_queue_walk_safe(&queue, skb, tmp) {
- struct net_device *dev;
-
+ skb_queue_walk_safe(&queue, skb, tmp)
br2684_push(atmvcc, skb);
- dev = skb->dev;
-
- dev->stats.rx_bytes -= skb->len;
- dev->stats.rx_packets--;
- }
/* initialize netdev carrier state */
if (atmvcc->dev->signal == ATM_PHY_SIG_LOST)