net: dsa: lantiq: Add fast age function
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 5 May 2019 22:25:09 +0000 (00:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 May 2019 17:34:45 +0000 (10:34 -0700)
commit4581348199ca189b1943a7c5fc3950003310fa37
tree9ccc05d6eb8ce54019a31d6766bf9c426654ebd1
parent9bbb1c053bdcfba075ffb703c4b865297c3fee02
net: dsa: lantiq: Add fast age function

Fast aging per port is not supported directly by the hardware, it is
only possible to configure a global aging time.

Do the fast aging by iterating over the MAC forwarding table and remove
all dynamic entries for a given port.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/lantiq_gswip.c