aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2025-05-07 00:32:20 +0000
committerPaolo Abeni <[email protected]>2025-05-08 09:56:12 +0000
commit23fa6a23d97182d36ca3c71e43c804fa91e46a03 (patch)
treef85742c29862c2b8a82a013d45c140c79978edf1 /net/unix
parentMerge branch 'fbnic-fw-ipc-mailbox-fixes' (diff)
downloadkernel-23fa6a23d97182d36ca3c71e43c804fa91e46a03.tar.gz
kernel-23fa6a23d97182d36ca3c71e43c804fa91e46a03.zip
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]>
Diffstat (limited to 'net/unix')
0 files changed, 0 insertions, 0 deletions