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)
commit135f9eceb7fa0287e535f9ec921485661e9d6667
treed89f4791d6d5f596c2303cffcc5e276c2f3bd9a3
parent75c09280feddcf5c01c00aa11881c4b38559e2ef
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: 56ade8fe3f ("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