]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: rtl8366rb: Support fast aging
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 5 Oct 2021 19:47:03 +0000 (21:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Oct 2021 14:08:11 +0000 (15:08 +0100)
commit60bab96ef266e79e06b2a0cdd614ab2e443b99c7
tree0e839f839b2debc65820b587827b92f6972d13fb
parentfe0e210890f9b88463127ca15f5b35311df2979f
net: dsa: rtl8366rb: Support fast aging

This implements fast aging per-port using the special "security"
register, which will flush any learned L2 LUT entries on a port.

The vendor API just enabled setting and clearing this bit, so
we set it to age out any entries on the port and then we clear
it again.

Suggested-by: Vladimir Oltean <olteanv@gmail.com>
Cc: Mauri Sandberg <sandberg@mailfence.com>
Cc: DENG Qingfang <dqfext@gmail.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Alvin Šipraga <alsi@bang-olufsen.dk>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/rtl8366rb.c