Files
erofs-linux/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 <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
2025-05-08 11:56:12 +02: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-12-09 14:44:59 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2024-12-06 17:43:08 -08:00
…
…
…
…
…
…
…
…
…
…
…
2025-02-06 16:27:30 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-03-25 08:24:13 -07:00
…
…
…
…
…
…
…
2025-01-29 13:32:08 -08:00
…
…
…
…
…
2025-03-25 09:15:07 -07:00
…
…
…
2025-02-27 14:03:52 +01:00