Patch "net/mlx4_core: Eliminate warning messages for SRQ_LIMIT under SRIOV" has been added to the 4.9-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
net/mlx4_core: Eliminate warning messages for SRQ_LIMIT under SRIOV
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-mlx4_core-eliminate-warning-messages-for-srq_limit-under-sriov.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 Mon Jul 3 13:37:32 CEST 2017
From: Jack Morgenstein <[email protected]>
Date: Mon, 16 Jan 2017 18:31:39 +0200
Subject: net/mlx4_core: Eliminate warning messages for SRQ_LIMIT under SRIOV
From: Jack Morgenstein <[email protected]>
[ Upstream commit 9577b174cd0323d287c994ef0891db71666d0765 ]
When running SRIOV, warnings for SRQ LIMIT events flood the Hypervisor's message log when (correct, normally operating) apps use SRQ LIMIT events as a trigger to post WQEs to SRQs.
Add more information to the existing debug printout for SRQ_LIMIT, and output the warning messages only for the SRQ CATAS ERROR event.
--- drivers/net/ethernet/mellanox/mlx4/eq.c | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-)
drivers/net/ethernet/mellanox/mlx4/eq.c +14 -9
@@ -554,8 +554,9 @@ static int mlx4_eq_int(struct mlx4_dev *break ;case MLX4_EVENT_TYPE_SRQ_LIMIT : -mlx4_dbg (dev,"%s: MLX4_EVENT_TYPE_SRQ_LIMIT\n" , - __func__); +mlx4_dbg (dev,"%s: MLX4_EVENT_TYPE_SRQ_LIMIT. srq_no=0x%x, eq 0x%x\n" , + __func__,be32_to_cpu (eqe->event.srq.srqn), + eq->eqn);case MLX4_EVENT_TYPE_SRQ_CATAS_ERROR :if (mlx4_is_master (dev)) {/* forward only to slave owning the SRQ */
@@ -570,15 +571,19 @@ static int mlx4_eq_int(struct mlx4_dev * eq->eqn, eq->cons_index, ret);break ; } -mlx4_warn (dev,"%s: slave:%d, srq_no:0x%x, event: %02x(%02x)\n" , - __func__, slave, -be32_to_cpu (eqe->event.srq.srqn), - eqe->type, eqe->subtype); +if (eqe->type == +MLX4_EVENT_TYPE_SRQ_CATAS_ERROR ) +mlx4_warn (dev,"%s: slave:%d, srq_no:0x%x, event: %02x(%02x)\n" , + __func__, slave, +be32_to_cpu (eqe->event.srq.srqn), + eqe->type, eqe->subtype);if (!ret && slave != dev->caps.function) { -mlx4_warn (dev,"%s: sending event %02x(%02x) to slave:%d\n" , - __func__, eqe->type, - eqe->subtype, slave); +if (eqe->type == +MLX4_EVENT_TYPE_SRQ_CATAS_ERROR ) +mlx4_warn (dev,"%s: sending event %02x(%02x) to slave:%d\n" , + __func__, eqe->type, + eqe->subtype, slave);mlx4_slave_event (dev, slave, eqe);break ; }
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/net-mlx4_core-eliminate-warning-messages-for-srq_limit-under-sriov.patch