Patch "net/mlx5e: Fix wrong delay calculation for overflow check scheduling" has been added to the 4.9-stable tree
This is a note to let you know that I've just added the patch titled
net/mlx5e: Fix wrong delay calculation for overflow check scheduling
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
net-mlx5e-fix-wrong-delay-calculation-for-overflow-check-scheduling.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Tue Aug 8 16:27:53 PDT 2017
From: Eugenia Emantayev <[email protected]>
Date: Wed, 12 Jul 2017 17:27:18 +0300
Subject: net/mlx5e: Fix wrong delay calculation for overflow check scheduling
From: Eugenia Emantayev <[email protected]>
[ Upstream commit d439c84509a510e864fdc6166c760482cd03fc57 ]
The overflow_period is calculated in seconds. In order to use it for delayed work scheduling translation to jiffies is needed.
--- drivers/net/ethernet/mellanox/mlx5/core/en_clock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ethernet/mellanox/mlx5/core/en_clock.c +2 -1
@@ -67,7 +67,8 @@ static void mlx5e_timestamp_overflow(strwrite_lock_irqsave (&tstamp->lock, flags);timecounter_read (&tstamp->clock);write_unlock_irqrestore (&tstamp->lock, flags); -schedule_delayed_work (&tstamp->overflow_work, tstamp->overflow_period); +schedule_delayed_work (&tstamp->overflow_work, +msecs_to_jiffies (tstamp->overflow_period *1000 )); }int mlx5e_hwstamp_set (struct net_device *dev,struct ifreq *ifr)
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/net-mlx5e-schedule-overflow-check-work-to-mlx5e-workqueue.patch queue-4.9/net-mlx5e-fix-wrong-delay-calculation-for-overflow-check-scheduling.patch