Skip to content

net-sysfs: move the xps cpus/rxqs retrieval in a common function

Antoine Tenart netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net-sysfs: convert xps_cpus_show to bitmap_zallocnet/core/net-sysfs.c+6 -60 replies
2/3net-sysfs: store the return of get_netdev_queue_index in an unsigned intnet/core/net-sysfs.c+7 -40 replies
3/3net-sysfs: move the xps cpus/rxqs retrieval in a common functionnet/core/net-sysfs.c+79 -898 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net 0/3] net-sysfs: move the xps cpus/rxqs retrieval in a common function

Hello,

In net-sysfs, the xps_cpus_show and xps_rxqs_show functions share the same logic. To improve readability and maintenance, as discussed here[1], this series moves their common logic to a new function.

Patches 1/3 and 2/3 are prerequisites for the factorization to happen, so that patch 3/3 looks better and is easier to review.

Thanks!
Antoine

[1] https://lore.kernel.org/netdev/[email protected]/

Antoine Tenart (3):
net-sysfs: convert xps_cpus_show to bitmap_zalloc
net-sysfs: store the return of get_netdev_queue_index in an unsigned
int
net-sysfs: move the xps cpus/rxqs retrieval in a common function

 net/core/net-sysfs.c | 179 +++++++++++++++++++++----------------------
 1 file changed, 86 insertions(+), 93 deletions(-)
Signature · 1 line
2.29.2