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)
commitc0d7eccbc76115b7eb337956c03d47d6a889cf8c
tree501d3327e2d77a45a76ed54c0bb84caf9aaa8d4f
parent21ce7f3e16fbf89faaf149cfe0f730edfc553914
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: a556c76adc05 ("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