[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <376287b0-8b47-a89e-4359-0dac162b822e@nvidia.com>
Date: Sun, 5 Dec 2021 12:28:33 +0200
From: Nikolay Aleksandrov <nikolay@...dia.com>
To: Lahav Schlesinger <lschlesinger@...venets.com>,
netdev@...r.kernel.org
Cc: kuba@...nel.org, dsahern@...il.com,
Ido Schimmel <idosch@...sch.org>
Subject: Re: [PATCH net-next v5] rtnetlink: Support fine-grained netdevice
bulk deletion
On 05/12/2021 11:36, Lahav Schlesinger wrote:
[snip]
> But, while "group deletion" is the fastest, it is not suited for
> deleting large number of arbitrary devices which are unknown a head of
> time. Furthermore, moving large number of devices to a group is also a
> costly operation.
>
> This patch adds support for passing an arbitrary list of ifindex of
> devices to delete with a new IFLA_IFINDEX attribute. A single message
> may contain multiple instances of this attribute).
> This gives a more fine-grained control over which devices to delete,
> while still resulting in rcu_barrier() being called only once.
> Indeed, the timings of using this new API to delete 10K devices is
> the same as using the existing "group" deletion.
>
> Signed-off-by: Lahav Schlesinger <lschlesinger@...venets.com>
> ---
[snip]
Note that Ido raised a good point[1] about group operations and their efficiency
as a reply to v4 of the patch.
+CC Ido
[1] https://marc.info/?l=linux-netdev&m=163869796129581&w=2
Powered by blists - more mailing lists