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:
0308813
)
virtio_net: replace netdev_alloc_skb_ip_align() with napi_alloc_skb()
author
Paolo Abeni
<pabeni@redhat.com>
Thu, 17 Mar 2016 14:44:00 +0000
(15:44 +0100)
committer
Michael S. Tsirkin
<mst@redhat.com>
Thu, 17 Mar 2016 15:42:00 +0000
(17:42 +0200)
This gives small but noticeable rx performance improvement (2-3%)
and will allow exploiting future napi improvement.
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/net/virtio_net.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/virtio_net.c
b/drivers/net/virtio_net.c
index 767ab11a6e9f67ce774d086101daeb1eb91838ce..a43631696bcbb2aa3ed0e436cfd88011b3b3c35e 100644
(file)
--- a/
drivers/net/virtio_net.c
+++ b/
drivers/net/virtio_net.c
@@
-256,7
+256,7
@@
static struct sk_buff *page_to_skb(struct virtnet_info *vi,
p = page_address(page) + offset;
/* copy small packet so we can reuse these pages for small data */
- skb = n
etdev_alloc_skb_ip_align(vi->dev
, GOOD_COPY_LEN);
+ skb = n
api_alloc_skb(&rq->napi
, GOOD_COPY_LEN);
if (unlikely(!skb))
return NULL;