]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_net: exploit napi_complete_done() return value
authorEric Dumazet <edumazet@google.com>
Sat, 4 Feb 2017 15:49:21 +0000 (07:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Feb 2017 00:38:28 +0000 (19:38 -0500)
commit444433cf0d2cff7c3c92af9ea85b8a36fd9212db
tree866aefc115e959b34de38e715069ce0304c051af
parent408a20dd869c75179697dd6881b2efa054584118
virtio_net: exploit napi_complete_done() return value

Since commit ca14cc6a2119 ("net: busy-poll: return busypolling status to
drivers"), napi_complete_done() returns a boolean that can be used
by drivers to conditionally rearm interrupts.

This patch changes virtio_net to use this boolean to avoid a bit of
overhead for busy-poll users.

Jason reports about 1.1% improvement for 1 byte TCP_RR (burst 100).

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c