[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20220204115714.3b98451c@hermes.local>
Date: Fri, 4 Feb 2022 11:57:14 -0800
From: Stephen Hemminger <stephen@...workplumber.org>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: "David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
netdev <netdev@...r.kernel.org>,
Eric Dumazet <edumazet@...gle.com>
Subject: Re: [PATCH net-next] net: minor __dev_alloc_name() optimization
On Wed, 2 Feb 2022 22:46:09 -0800
Eric Dumazet <eric.dumazet@...il.com> wrote:
> From: Eric Dumazet <edumazet@...gle.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@...gle.com>
That looks correct.
Acked-by: Stephen Hemminger <stephen@...workplumber.org>
Powered by blists - more mailing lists