]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Bridge, fix ageing time
authorVlad Buslov <vladbu@nvidia.com>
Wed, 4 Aug 2021 15:33:26 +0000 (18:33 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 10 Aug 2021 03:56:40 +0000 (20:56 -0700)
commit173bcfc6c79c9327b293fe196a3e2f4283875f0b
treed7aee0a7fabf7553663a2653ef986e0e51011d14
parent736bf5028eca95cf99c2177b06bf82c2513bdfcd
net/mlx5: Bridge, fix ageing time

Ageing time is not converted from clock_t to jiffies which results
incorrect ageing timeout calculation in workqueue update task. Fix it by
applying clock_t_to_jiffies() to provided value.

Fixes: 89e4077adbeb ("net/mlx5: Bridge, dynamic entry ageing")
Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/esw/bridge.c