]> git.baikalelectronics.ru Git - kernel.git/commit
net-sysfs: move the xps cpus/rxqs retrieval in a common function
authorAntoine Tenart <atenart@kernel.org>
Thu, 18 Mar 2021 18:37:50 +0000 (19:37 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Mar 2021 21:56:22 +0000 (14:56 -0700)
commit9884be12056397ef39b7d1fb5b8fb62fa7cf9283
tree825d6d44176fec044468f655f6b14f463bd422c1
parent6cc6ddd0f3addffd3a9c7f8a5c0eb46e75c76ad0
net-sysfs: move the xps cpus/rxqs retrieval in a common function

Most of the xps_cpus_show and xps_rxqs_show functions share the same
logic. Having it in two different functions does not help maintenance.
This patch moves their common logic into a new function, xps_queue_show,
to improve this.

Signed-off-by: Antoine Tenart <atenart@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net-sysfs.c