Message ID | 509997de37fd0feced92f05dee5cbb415e5bb6ad.1695627660.git.hengqi@linux.alibaba.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | virtio-net: Fix and update interrupt moderation | expand |
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 10878c9d430a..15bac303e3ff 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; }