diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2016-07-18 22:02:06 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-20 02:49:20 +0300 |
commit | eabfdda93477f6ee5e153f560560e9cb1c617fd7 (patch) | |
tree | 7db35299b99f024c4562c5c49abcf58502ad31f1 /include/net/switchdev.h | |
parent | 97b041971e1c70da077fcfa7a50b362e22cd241e (diff) | |
download | linux-eabfdda93477f6ee5e153f560560e9cb1c617fd7.tar.xz |
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: f55ac58ae64c ("switchdev: add bridge ageing_time attribute")
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/switchdev.h')
-rw-r--r-- | include/net/switchdev.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/switchdev.h b/include/net/switchdev.h index 985619a59323..1d8e158241da 100644 --- a/include/net/switchdev.h +++ b/include/net/switchdev.h @@ -60,7 +60,7 @@ struct switchdev_attr { struct netdev_phys_item_id ppid; /* PORT_PARENT_ID */ u8 stp_state; /* PORT_STP_STATE */ unsigned long brport_flags; /* PORT_BRIDGE_FLAGS */ - u32 ageing_time; /* BRIDGE_AGEING_TIME */ + clock_t ageing_time; /* BRIDGE_AGEING_TIME */ bool vlan_filtering; /* BRIDGE_VLAN_FILTERING */ } u; }; |