projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe685b8
)
atm: clip: Don't move counters backwards
author
Jorge Boncompte [DTI2]
<jorge@dti2.net>
Mon, 21 Nov 2011 10:25:55 +0000
(10:25 +0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 22 Nov 2011 21:15:28 +0000
(16:15 -0500)
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>
net/atm/clip.c
patch
|
blob
|
blame
|
history
diff --git
a/net/atm/clip.c
b/net/atm/clip.c
index 32c41b8a803e476c300df56756dfc43d45b094d9..b3ab7ddc1185a03a0a139382dc1e794ca2e669d3 100644
(file)
--- 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;
}