]> 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)
commit9d65f9cbfe46192ff73436369c287ecd6e18fee5
treed89f4791d6d5f596c2303cffcc5e276c2f3bd9a3
parent028a397d4360b186885086d45a0168eded3b2065
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: a3f1591607 ("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