virtio-net: fix mismatch of getting tx-frames
authorHeng Qi <hengqi@linux.alibaba.com>
Sun, 8 Oct 2023 06:27:40 +0000 (14:27 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Oct 2023 06:13:50 +0000 (07:13 +0100)
commit134674c1877be5e35e35802517c67a9ecce21153
treee0310f2c7db9cd858e0b0ca2efd09f49455bcb9d
parent3014a0d54820d25c3dc66657bcc19013f2338760
virtio-net: fix mismatch of getting tx-frames

Since virtio-net allows switching napi_tx for per txq, we have to
get the specific txq's result now.

Fixes: 394bd87764b6 ("virtio_net: support per queue interrupt coalesce command")
Cc: Gavin Li <gavinl@nvidia.com>
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