]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: ocelot: ANA_AUTOAGE_AGE_PERIOD holds a value in seconds, not ms
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sun, 3 May 2020 22:20:27 +0000 (01:20 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 May 2020 00:15:25 +0000 (17:15 -0700)
commit75c477e805fdb125cc4073ed92464017d914f50a
tree501d3327e2d77a45a76ed54c0bb84caf9aaa8d4f
parent39094edc1f5a66f7526f1a5e76d6fd8206c0d7dd
net: mscc: ocelot: ANA_AUTOAGE_AGE_PERIOD holds a value in seconds, not ms

One may notice that automatically-learnt entries 'never' expire, even
though the bridge configures the address age period at 300 seconds.

Actually the value written to hardware corresponds to a time interval
1000 times higher than intended, i.e. 83 hours.

Fixes: 1bed22a67906 ("net: mscc: Add initial Ocelot switch support")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Faineli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot.c