virtio-net: returns whether napi is complete
authorHeng Qi <hengqi@linux.alibaba.com>
Mon, 11 Dec 2023 10:36:04 +0000 (18:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Dec 2023 12:49:04 +0000 (12:49 +0000)
commit7949c06ad9a8fefc4aabe4baed057f8f4a8e33d8
treecc77a37aa3227148c50af69d63f505c97db3708b
parentd2e9464e63366a2a89375a2b14e8a5adb4d0b1d5
virtio-net: returns whether napi is complete

rx netdim needs to count the traffic during a complete napi process,
and start updating and comparing samples to make decisions after
the napi ends. Let virtqueue_napi_complete() return true if napi is done,
otherwise vice versa.

Signed-off-by: Heng Qi <hengqi@linux.alibaba.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c