diff options
author | Eric Dumazet <edumazet@google.com> | 2015-11-18 06:30:59 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-18 16:17:41 -0500 |
commit | 93f93a4404159ecf7e9148f5ad0718ec702ac4cb (patch) | |
tree | 870897137213237587fb35c3f238d9d06e164de3 /drivers/net/virtio_net.c | |
parent | 868fdb06063d92f4373be4974d1b651a32bb9442 (diff) | |
download | op-kernel-dev-93f93a4404159ecf7e9148f5ad0718ec702ac4cb.zip op-kernel-dev-93f93a4404159ecf7e9148f5ad0718ec702ac4cb.tar.gz |
net: move skb_mark_napi_id() into core networking stack
We would like to automatically provide busy polling support
to all NAPI drivers, without them having to implement anything.
skb_mark_napi_id() can be called from napi_gro_receive() and
napi_get_frags().
Few drivers are still calling skb_mark_napi_id() because
they use netif_receive_skb(). They should eventually call
napi_gro_receive() instead. I will leave this to drivers
maintainers.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/virtio_net.c')
-rw-r--r-- | drivers/net/virtio_net.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index d8838ded..d1d14ce 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -516,8 +516,6 @@ static void receive_buf(struct virtnet_info *vi, struct receive_queue *rq, skb_shinfo(skb)->gso_segs = 0; } - skb_mark_napi_id(skb, &rq->napi); - napi_gro_receive(&rq->napi, skb); return; |