commit | 0d2ffdc8d4002a62de31ff7aa3bef28c843c3cbe | [log] [tgz] |
---|---|---|
author | Eran Ben Elisha <eranbe@mellanox.com> | Tue Jun 16 12:07:10 2020 +0300 |
committer | Saeed Mahameed <saeedm@nvidia.com> | Tue Sep 15 11:59:50 2020 -0700 |
tree | ce2608efa6400d0731adaca921e538fbde6e3d92 | |
parent | 87f3495cbe8d1d34ce430b11b1ea34e69e6f4126 [diff] |
net/mlx5: Don't call timecounter cyc2time directly from 1PPS flow Before calling timecounter_cyc2time(), clock->lock must be taken. Use mlx5_timecounter_cyc2time instead which guarantees a safe access. Fixes: afc98a0b46d8 ("net/mlx5: Update ptp_clock_event foreach PPS event") Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>