[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <3c98edce-c46e-29b7-d3b0-c80576cd9c23@gmail.com>
Date: Mon, 6 Dec 2021 20:56:00 -0700
From: David Ahern <dsahern@...il.com>
To: Ido Schimmel <idosch@...sch.org>,
Lahav Schlesinger <lschlesinger@...venets.com>
Cc: netdev@...r.kernel.org, kuba@...nel.org
Subject: Re: [PATCH net-next v4] rtnetlink: Support fine-grained netdevice
bulk deletion
On 12/5/21 6:49 AM, Ido Schimmel wrote:
> In your specific case, it is quite useless for the kernel to generate
> 16k notifications when moving the netdevs to a group since the entire
> reason they are moved to a group is so that they could be deleted in a
> batch.
>
> I assume that there are other use cases where having the kernel suppress
> notifications can be useful. Did you consider adding such a flag to the
> request? I think such a mechanism is more generic/useful than an ad-hoc
> API to delete a list of netdevs and should allow you to utilize the
> existing group deletion mechanism.
I do agree that we do not want to allow netdev changes without userspace
notifications.
It would be nice to re-use the group delete API, but really there is no
guaranteed, reserved group value that can be used for a temp assignment
and to then use the group delete call.
Powered by blists - more mailing lists