Merge de02eb727f ("virtio-net: fix total qstat values") into android16-6.12-lts
Steps on the way to 6.12.29 Change-Id: Ib5ce5856827f6a4fb377fe6f3a110765b8728e5d Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
@@ -5427,6 +5427,10 @@ static void virtnet_get_base_stats(struct net_device *dev,
|
||||
|
||||
if (vi->device_stats_cap & VIRTIO_NET_STATS_TYPE_TX_SPEED)
|
||||
tx->hw_drop_ratelimits = 0;
|
||||
|
||||
netdev_stat_queue_sum(dev,
|
||||
dev->real_num_rx_queues, vi->max_queue_pairs, rx,
|
||||
dev->real_num_tx_queues, vi->max_queue_pairs, tx);
|
||||
}
|
||||
|
||||
static const struct netdev_stat_ops virtnet_stat_ops = {
|
||||
|
||||
Reference in New Issue
Block a user