]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Fix ageing time value
authorJiri Pirko <jiri@mellanox.com>
Wed, 28 Oct 2015 09:17:02 +0000 (10:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Oct 2015 03:26:52 +0000 (12:26 +0900)
commite443ec67108a7318da60107f1da83325816a4e52
treed89f4791d6d5f596c2303cffcc5e276c2f3bd9a3
parentbf4f0e801dfc5864935884c9ce07d55d912b8f16
mlxsw: spectrum: Fix ageing time value

The value passed through switchdev attr set is not in jiffies, but in
clock_t, so fix the convert.

Reported-by: Sagi Rotem <sagir@mellanox.com>
Fixes: 91747a7223 ("mlxsw: spectrum: Add initial support for Spectrum ASIC")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c