]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0d5a280fcd19db1d716d6de03854a9fdd415cd0d
tree909639a7d16698c96c349bbec681207cddcd9ea1
parente57babfd4c1484d57c44dd06dfd1816a51b1c459
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