[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2815a75c-b474-34f0-f0c9-7566f0f9e87e@gmail.com>
Date: Mon, 7 Feb 2022 20:29:35 -0800
From: David Ahern <dsahern@...il.com>
To: Eric Dumazet <eric.dumazet@...il.com>,
"David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>
Cc: netdev <netdev@...r.kernel.org>, David Ahern <dsahern@...nel.org>,
Eric Dumazet <edumazet@...gle.com>
Subject: Re: [PATCH net-next 11/11] net: remove default_device_exit()
On 2/7/22 9:17 AM, Eric Dumazet wrote:
> From: Eric Dumazet <edumazet@...gle.com>
>
> For some reason default_device_ops kept two exit method:
>
> 1) default_device_exit() is called for each netns being dismantled in
> a cleanup_net() round. This acquires rtnl for each invocation.
>
> 2) default_device_exit_batch() is called once with the list of all netns
> int the batch, allowing for a single rtnl invocation.
>
> Get rid of the .exit() method to handle the logic from
> default_device_exit_batch(), to decrease the number of rtnl acquisition
> to one.
>
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
> ---
> net/core/dev.c | 22 ++++++++++++++--------
> 1 file changed, 14 insertions(+), 8 deletions(-)
>
Reviewed-by: David Ahern <dsahern@...nel.org>
Powered by blists - more mailing lists