]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_net: ethtool tx napi configuration
authorJason Wang <jasowang@redhat.com>
Tue, 9 Oct 2018 02:06:26 +0000 (10:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2018 05:34:38 +0000 (22:34 -0700)
commitdbcec894f21d8e57ea8512aee1193fd56c696896
treea32ec09bd8ecc98c6da27205b0affa070bc55c52
parent54d15063b7dcf86f2e711c97bbce0f4216764d84
virtio_net: ethtool tx napi configuration

Implement ethtool .set_coalesce (-C) and .get_coalesce (-c) handlers.
Interrupt moderation is currently not supported, so these accept and
display the default settings of 0 usec and 1 frame.

Toggle tx napi through setting tx-frames. So as to not interfere
with possible future interrupt moderation, value 1 means tx napi while
value 0 means not.

Only allow the switching when device is down for simplicity.

Link: https://patchwork.ozlabs.org/patch/948149/
Suggested-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c