mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 09:14:19 +08:00
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: 394bd87764
("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>
This commit is contained in:
parent
3014a0d548
commit
134674c187
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user