Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Vivien Didelot and committed by
David S. Miller
eabfdda9 97b04197

+1 -1
+1 -1
include/net/switchdev.h
··· 60 60 struct netdev_phys_item_id ppid; /* PORT_PARENT_ID */ 61 61 u8 stp_state; /* PORT_STP_STATE */ 62 62 unsigned long brport_flags; /* PORT_BRIDGE_FLAGS */ 63 - u32 ageing_time; /* BRIDGE_AGEING_TIME */ 63 + clock_t ageing_time; /* BRIDGE_AGEING_TIME */ 64 64 bool vlan_filtering; /* BRIDGE_VLAN_FILTERING */ 65 65 } u; 66 66 };