Re: [PATCH iproute2-next] tc: use ll_init_map() only when needed

Eric Dumazet
2026-05-02T17:25:55Z

On Thu, Apr 30, 2026 at 11:20 AM Jamal Hadi Salim <jhs@mojatatu.com> wrote:
>
> On Thu, Apr 30, 2026 at 11:36 AM David Ahern <dsahern@kernel.org> wrote:
> >
> > Jamal: waiting for your review ...
> >
> > On 4/28/26 2:28 AM, Eric Dumazet wrote:
> > > Some setups can have thousands of devices.
> > >
> > > ll_init_map() is rather expensive for them.
> > >
> > > Only call ll_init_map() in the following cases:
> > >
> > > 1) tc runs in batch mode.
> > > 2) tc runs in monitor mode.
> > > 3) tc dumps qdiscs/classes/filters for all netdev.
> > >
> > > This greatly reduces RTNL pressure on common operations.
> > >
> > > Signed-off-by: Eric Dumazet <edumazet@google.com>
>
> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
>

Gentle reminder, this patch has not been merged.

I have other patches coming that depend on this one.

Thanks!