diff options
author | Heng Qi <hengqi@linux.alibaba.com> | 2023-10-08 09:27:40 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-10-11 09:13:50 +0300 |
commit | 134674c1877be5e35e35802517c67a9ecce21153 (patch) | |
tree | e0310f2c7db9cd858e0b0ca2efd09f49455bcb9d /drivers/net/virtio_net.c | |
parent | 3014a0d54820d25c3dc66657bcc19013f2338760 (diff) | |
download | linux-134674c1877be5e35e35802517c67a9ecce21153.tar.xz |
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>
Diffstat (limited to 'drivers/net/virtio_net.c')
-rw-r--r-- | drivers/net/virtio_net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 35dc978def77..1037febefc37 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -3453,7 +3453,7 @@ static int virtnet_get_per_queue_coalesce(struct net_device *dev, } else { ec->rx_max_coalesced_frames = 1; - if (vi->sq[0].napi.weight) + if (vi->sq[queue].napi.weight) ec->tx_max_coalesced_frames = 1; } |