net: dsa: sja1105: Add support for configuring address ageing time
authorVladimir Oltean <olteanv@gmail.com>
Thu, 2 May 2019 20:23:36 +0000 (23:23 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 May 2019 14:49:17 +0000 (10:49 -0400)
commit8456721dd4ec777e6f914f2ae98ba9fe3c6681df
tree909639a7d16698c96c349bbec681207cddcd9ea1
parent52c34e6e125c153097befbfe18b8d2918c68a41d
net: dsa: sja1105: Add support for configuring address ageing time

If STP is active, this setting is applied on bridged ports each time an
Ethernet link is established (topology changes).

Since the setting is global to the switch and a reset is required to
change it, resets are prevented if the new callback does not change the
value that the hardware already is programmed for.

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105.h
drivers/net/dsa/sja1105/sja1105_main.c