netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Antoine Tenart <atenart@kernel.org>
To: davem@davemloft.net, kuba@kernel.org, alexander.duyck@gmail.com
Cc: Antoine Tenart <atenart@kernel.org>, netdev@vger.kernel.org
Subject: [PATCH net 0/3] net-sysfs: move the xps cpus/rxqs retrieval in a common function
Date: Wed,  6 Jan 2021 19:04:25 +0100	[thread overview]
Message-ID: <20210106180428.722521-1-atenart@kernel.org> (raw)

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/160875219353.1783433.8066935261216141538@kwain.local/

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(-)

-- 
2.29.2


             reply	other threads:[~2021-01-06 18:05 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-06 18:04 Antoine Tenart [this message]
2021-01-06 18:04 ` [PATCH net 1/3] net-sysfs: convert xps_cpus_show to bitmap_zalloc Antoine Tenart
2021-01-06 18:04 ` [PATCH net 2/3] net-sysfs: store the return of get_netdev_queue_index in an unsigned int Antoine Tenart
2021-01-06 18:04 ` [PATCH net 3/3] net-sysfs: move the xps cpus/rxqs retrieval in a common function Antoine Tenart
2021-01-06 19:54   ` Alexander Duyck
2021-01-07  8:54     ` Antoine Tenart
2021-01-07 16:38       ` Alexander Duyck
2021-01-08  9:07         ` Antoine Tenart
2021-01-08 16:33           ` Alexander Duyck
2021-01-08 18:58             ` Antoine Tenart
2021-01-08 22:04               ` Alexander Duyck
2021-01-08 22:46                 ` Antoine Tenart

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210106180428.722521-1-atenart@kernel.org \
    --to=atenart@kernel.org \
    --cc=alexander.duyck@gmail.com \
    --cc=davem@davemloft.net \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).