On Mon, Sep 30, 2019 at 9:42 AM David Ahern <dsah...@gmail.com> wrote:
>
> On 9/28/19 2:22 PM, Roopa Prabhu wrote:
> > +
> > +     req.ndm.ndm_family = dst.family;
> > +     if (addattr_l(&req.n, sizeof(req), NDA_DST, &dst.data, dst.bytelen) < 
> > 0)
> > +             return -1;
> > +
> > +     if (d) {
> > +             ll_init_map(&rth);
>
> ll_init_map is not needed and really not something you want to do (it
> does a full link dump)
>

ok got it, the get index macro does a getlink if map is not initialized.
(there are still many calls to init_map... possibly for cases that
require querying of multiple links)

Reply via email to