]> git.baikalelectronics.ru Git - kernel.git/commit
net: switchdev: change ageing_time type to clock_t
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Mon, 18 Jul 2016 19:02:06 +0000 (15:02 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Jul 2016 23:49:20 +0000 (16:49 -0700)
commit3f8b1ffd35645af52b09d836c5139e4ef4219d6a
tree7db35299b99f024c4562c5c49abcf58502ad31f1
parent7b2f74bc09a9d172073a959282c09ca3a731d354
net: switchdev: change ageing_time type to clock_t

The switchdev value for the SWITCHDEV_ATTR_ID_BRIDGE_AGEING_TIME
attribute is a clock_t and requires to use helpers such as
clock_t_to_jiffies() to convert to milliseconds.

Change ageing_time type from u32 to clock_t to make it explicit.

Fixes: 7fbe22cd5b5c ("switchdev: add bridge ageing_time attribute")
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/switchdev.h