From: Stephen Hemminger <stephen@networkplumber.org>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: "David S . Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>, netdev <netdev@vger.kernel.org>,
Eric Dumazet <edumazet@google.com>
Subject: Re: [PATCH net-next] net: minor __dev_alloc_name() optimization
Date: Fri, 4 Feb 2022 11:57:14 -0800 [thread overview]
Message-ID: <20220204115714.3b98451c@hermes.local> (raw)
In-Reply-To: <20220203064609.3242863-1-eric.dumazet@gmail.com>
On Wed, 2 Feb 2022 22:46:09 -0800
Eric Dumazet <eric.dumazet@gmail.com> wrote:
> From: Eric Dumazet <edumazet@google.com>
>
> __dev_alloc_name() allocates a private zeroed page,
> then sets bits in it while iterating through net devices.
>
> It can use __set_bit() to avoid unecessary locked operations.
>
> Signed-off-by: Eric Dumazet <edumazet@google.com>
That looks correct.
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
prev parent reply other threads:[~2022-02-04 19:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-03 6:46 [PATCH net-next] net: minor __dev_alloc_name() optimization Eric Dumazet
2022-02-04 3:20 ` patchwork-bot+netdevbpf
2022-02-04 19:57 ` Stephen Hemminger [this message]
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=20220204115714.3b98451c@hermes.local \
--to=stephen@networkplumber.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=eric.dumazet@gmail.com \
--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).