Skip to content

Commit eabfdda

Browse files
viviendavem330
authored andcommitted
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: f55ac58 ("switchdev: add bridge ageing_time attribute") Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 97b0419 commit eabfdda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/net/switchdev.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ struct switchdev_attr {
6060
struct netdev_phys_item_id ppid; /* PORT_PARENT_ID */
6161
u8 stp_state; /* PORT_STP_STATE */
6262
unsigned long brport_flags; /* PORT_BRIDGE_FLAGS */
63-
u32 ageing_time; /* BRIDGE_AGEING_TIME */
63+
clock_t ageing_time; /* BRIDGE_AGEING_TIME */
6464
bool vlan_filtering; /* BRIDGE_VLAN_FILTERING */
6565
} u;
6666
};

0 commit comments

Comments
 (0)