Patch "net/mlx5e: Remove WARN_ONCE from adaptive moderation code" 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: Remove WARN_ONCE from adaptive moderation code
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-remove-warn_once-from-adaptive-moderation-code.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 Thu Jan 12 21:37:26 CET 2017
From: Gil Rockah <[email protected]>
Date: Tue, 10 Jan 2017 22:33:38 +0200
Subject: net/mlx5e: Remove WARN_ONCE from adaptive moderation code
From: Gil Rockah <[email protected]>
[ Upstream commit 0bbcc0a8fc394d01988fe0263ccf7fddb77a12c3 ]
When trying to do interface down or changing interface configuration under heavy traffic, some of the adaptive moderation corner cases can occur and leave a WARN_ONCE call trace in the kernel log.
Those WARN_ONCE are meant for debug only, and should have been inserted only under debug. We avoid such call traces by removing those WARN_ONCE.
--- drivers/net/ethernet/mellanox/mlx5/core/en_rx_am.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/net/ethernet/mellanox/mlx5/core/en_rx_am.c +1 -6
@@ -109,7 +109,6 @@ static bool mlx5e_am_on_top(struct mlx5eswitch (am->tune_state) {case MLX5E_AM_PARKING_ON_TOP :case MLX5E_AM_PARKING_TIRED : -WARN_ONCE (true,"mlx5e_am_on_top: PARKING\n" );return true;case MLX5E_AM_GOING_RIGHT :return (am->steps_left >1 ) && (am->steps_right ==1 );
@@ -123,7 +122,6 @@ static void mlx5e_am_turn(struct mlx5e_rswitch (am->tune_state) {case MLX5E_AM_PARKING_ON_TOP :case MLX5E_AM_PARKING_TIRED : -WARN_ONCE (true,"mlx5e_am_turn: PARKING\n" );break ;case MLX5E_AM_GOING_RIGHT : am->tune_state =MLX5E_AM_GOING_LEFT ;
@@ -144,7 +142,6 @@ static int mlx5e_am_step(struct mlx5e_rxswitch (am->tune_state) {case MLX5E_AM_PARKING_ON_TOP :case MLX5E_AM_PARKING_TIRED : -WARN_ONCE (true,"mlx5e_am_step: PARKING\n" );break ;case MLX5E_AM_GOING_RIGHT :if (am->profile_ix == (MLX5E_PARAMS_AM_NUM_PROFILES -1 ))
@@ -282,10 +279,8 @@ static void mlx5e_am_calc_stats(struct mu32 delta_us =ktime_us_delta (end->time, start->time);unsigned int npkts = end->pkt_ctr - start->pkt_ctr; -if (!delta_us) { -WARN_ONCE (true,"mlx5e_am_calc_stats: delta_us=0\n" ); +if (!delta_us)return ; - } curr_stats->ppms = (npkts *USEC_PER_MSEC ) / delta_us; curr_stats->epms = (MLX5E_AM_NEVENTS *USEC_PER_MSEC ) / delta_us;
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/net-mlx5e-remove-warn_once-from-adaptive-moderation-code.patch