Re: [PATCH net-next 3/4 v4] net: dsa: rtl8366rb: Support fast aging

Linus Walleij
2021-10-04T22:41:47Z

On Wed, Sep 29, 2021 at 11:45 PM Vladimir Oltean <olteanv@gmail.com> wrote:
> On Wed, Sep 29, 2021 at 11:03:48PM +0200, Linus Walleij wrote:

> > + /* This will age out any learned L2 entries */
> > + regmap_update_bits(smi->map, RTL8366RB_SECURITY_CTRL,
> > + BIT(port), BIT(port));
>
> Is there any delay that needs to be added between these two operations?
>
> > + /* Restore the normal state of things */
> > + regmap_update_bits(smi->map, RTL8366RB_SECURITY_CTRL,
> > + BIT(port), 0);

Absolutely no idea. The API from the vendor essentially just set/clear
this bit with no comments on use.

Yours,
Linus Walleij