projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af57d2b
)
virtio_net: be drop monitor friendly
author
Eric Dumazet
<edumazet@google.com>
Thu, 24 Aug 2017 16:02:49 +0000
(09:02 -0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 24 Aug 2017 18:50:21 +0000
(11:50 -0700)
This change is needed to not fool drop monitor.
(perf record ... -e skb:kfree_skb )
Packets were properly sent and are consumed after TX completion.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/virtio_net.c
b/drivers/net/virtio_net.c
index 98f17b05c68b745276ecbe67d2934918eaf340bd..b06169ea60dc9d519f9a7673e9aea809539dbd5c 100644
(file)
--- a/
drivers/net/virtio_net.c
+++ b/
drivers/net/virtio_net.c
@@
-1058,7
+1058,7
@@
static void free_old_xmit_skbs(struct send_queue *sq)
bytes += skb->len;
packets++;
- dev_
kfre
e_skb_any(skb);
+ dev_
consum
e_skb_any(skb);
}
/* Avoid overhead when no packets have been processed