]> git.baikalelectronics.ru Git - kernel.git/commit
switchdev: bridge: Pass ageing time as clock_t instead of jiffies
authorIdo Schimmel <idosch@mellanox.com>
Mon, 21 Dec 2015 08:56:01 +0000 (09:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Dec 2015 20:56:44 +0000 (15:56 -0500)
commitf02eec61eb0e990c8458c09633e308f28c1da5fc
treec7ab7ebde9c6522dd0d1e6bb22b211a7ebba8a76
parent5882c2d3ee692dd790a5ace973dfb560b299d6f2
switchdev: bridge: Pass ageing time as clock_t instead of jiffies

The bridge's ageing time is offloaded to hardware when:
1) A port joins a bridge
2) The ageing time of the bridge is changed

In the first case the ageing time is offloaded as jiffies, but in the
second case it's offloaded as clock_t, which is what existing switchdev
drivers expect to receive.

Fixes: 9f188c0a5dc4 ("Adding switchdev ageing notification on port bridged")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_stp_if.c