]> 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)
commit5cb685ca951570fbe453f0ce0101b678cbd8d996
tree909639a7d16698c96c349bbec681207cddcd9ea1
parentab9ee365bd5a04743d1dfe9b571362b7aefe3b80
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