Files
linux-stable-mirror/include/net
Jakub Kicinski 23fa6a23d9 net: export a helper for adding up queue stats
Older drivers and drivers with lower queue counts often have a static
array of queues, rather than allocating structs for each queue on demand.
Add a helper for adding up qstats from a queue range. Expectation is
that driver will pass a queue range [netdev->real_num_*x_queues, MAX).
It was tempting to always use num_*x_queues as the end, but virtio
seems to clamp its queue count after allocating the netdev. And this
way we can trivaly reuse the helper for [0, real_..).

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Link: https://patch.msgid.link/20250507003221.823267-2-kuba@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2025-05-08 11:56:12 +02:00
..
2024-10-08 15:33:49 -07:00
2024-12-09 14:44:59 -08:00
2025-01-20 12:16:04 -08:00
2025-03-24 10:26:53 +00:00
2025-01-16 13:04:58 -08:00
2024-08-26 09:37:23 -07:00
2024-12-09 14:44:59 -08:00
2024-11-13 18:49:50 -08:00
2024-08-26 09:37:23 -07:00
2024-08-26 09:37:23 -07:00
2024-12-06 17:43:08 -08:00
2024-08-26 09:37:23 -07:00
2024-08-12 17:23:57 -07:00
2025-02-06 16:27:30 -08:00
2024-08-12 17:50:34 -07:00
2024-08-26 09:37:23 -07:00
2024-08-26 09:37:23 -07:00
2025-03-25 08:24:13 -07:00
2025-01-29 13:32:08 -08:00
2024-07-08 14:07:31 -07:00
2025-03-25 09:15:07 -07:00
2024-08-26 09:37:23 -07:00
2025-02-27 14:03:52 +01:00