* [PATCH v2] IB/mlx5: avoid excessive warning msgs when creating VFs on 2nd port
@ 2018-07-23 21:15 Qing Huang
2018-07-23 21:17 ` Daniel Jurgens
2018-07-26 22:12 ` Jason Gunthorpe
0 siblings, 2 replies; 3+ messages in thread
From: Qing Huang @ 2018-07-23 21:15 UTC (permalink / raw)
To: linux-kernel, linux-rdma
Cc: jgg, dledford, leon, gerald.gibson, qing.huang, danielj,
sharon.s.liu
When a CX5 device is configured in dual-port RoCE mode, after creating
many VFs against port 1, creating the same number of VFs against port 2
will flood kernel/syslog with something like
"mlx5_*:mlx5_ib_bind_slave_port:4266:(pid 5269): port 2 already
affiliated."
So basically, when traversing mlx5_ib_dev_list, mlx5_ib_add_slave_port()
repeatedly attempts to bind the new mpi structure to every device
on the list until it finds an unbound device.
Change the log level from warn to dbg to avoid log flooding as the warning
should be harmless.
Signed-off-by: Qing Huang <qing.huang@oracle.com>
---
v1 -> v2: change the log level instead
drivers/infiniband/hw/mlx5/main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c
index b3ba9a2..f57b8f7 100644
--- a/drivers/infiniband/hw/mlx5/main.c
+++ b/drivers/infiniband/hw/mlx5/main.c
@@ -5127,8 +5127,8 @@ static bool mlx5_ib_bind_slave_port(struct mlx5_ib_dev *ibdev,
spin_lock(&ibdev->port[port_num].mp.mpi_lock);
if (ibdev->port[port_num].mp.mpi) {
- mlx5_ib_warn(ibdev, "port %d already affiliated.\n",
- port_num + 1);
+ mlx5_ib_dbg(ibdev, "port %d already affiliated.\n",
+ port_num + 1);
spin_unlock(&ibdev->port[port_num].mp.mpi_lock);
return false;
}
--
2.9.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] IB/mlx5: avoid excessive warning msgs when creating VFs on 2nd port
2018-07-23 21:15 [PATCH v2] IB/mlx5: avoid excessive warning msgs when creating VFs on 2nd port Qing Huang
@ 2018-07-23 21:17 ` Daniel Jurgens
2018-07-26 22:12 ` Jason Gunthorpe
1 sibling, 0 replies; 3+ messages in thread
From: Daniel Jurgens @ 2018-07-23 21:17 UTC (permalink / raw)
To: Qing Huang, linux-kernel, linux-rdma
Cc: jgg, dledford, leon, gerald.gibson, sharon.s.liu
On 7/23/2018 4:15 PM, Qing Huang wrote:
> When a CX5 device is configured in dual-port RoCE mode, after creating
> many VFs against port 1, creating the same number of VFs against port 2
> will flood kernel/syslog with something like
> "mlx5_*:mlx5_ib_bind_slave_port:4266:(pid 5269): port 2 already
> affiliated."
>
> So basically, when traversing mlx5_ib_dev_list, mlx5_ib_add_slave_port()
> repeatedly attempts to bind the new mpi structure to every device
> on the list until it finds an unbound device.
>
> Change the log level from warn to dbg to avoid log flooding as the warning
> should be harmless.
>
> Signed-off-by: Qing Huang <qing.huang@oracle.com>
> ---
> v1 -> v2: change the log level instead
>
> drivers/infiniband/hw/mlx5/main.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c
> index b3ba9a2..f57b8f7 100644
> --- a/drivers/infiniband/hw/mlx5/main.c
> +++ b/drivers/infiniband/hw/mlx5/main.c
> @@ -5127,8 +5127,8 @@ static bool mlx5_ib_bind_slave_port(struct mlx5_ib_dev *ibdev,
>
> spin_lock(&ibdev->port[port_num].mp.mpi_lock);
> if (ibdev->port[port_num].mp.mpi) {
> - mlx5_ib_warn(ibdev, "port %d already affiliated.\n",
> - port_num + 1);
> + mlx5_ib_dbg(ibdev, "port %d already affiliated.\n",
> + port_num + 1);
> spin_unlock(&ibdev->port[port_num].mp.mpi_lock);
> return false;
> }
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] IB/mlx5: avoid excessive warning msgs when creating VFs on 2nd port
2018-07-23 21:15 [PATCH v2] IB/mlx5: avoid excessive warning msgs when creating VFs on 2nd port Qing Huang
2018-07-23 21:17 ` Daniel Jurgens
@ 2018-07-26 22:12 ` Jason Gunthorpe
1 sibling, 0 replies; 3+ messages in thread
From: Jason Gunthorpe @ 2018-07-26 22:12 UTC (permalink / raw)
To: Qing Huang
Cc: linux-kernel, linux-rdma, dledford, leon, gerald.gibson, danielj,
sharon.s.liu
On Mon, Jul 23, 2018 at 02:15:08PM -0700, Qing Huang wrote:
> When a CX5 device is configured in dual-port RoCE mode, after creating
> many VFs against port 1, creating the same number of VFs against port 2
> will flood kernel/syslog with something like
> "mlx5_*:mlx5_ib_bind_slave_port:4266:(pid 5269): port 2 already
> affiliated."
>
> So basically, when traversing mlx5_ib_dev_list, mlx5_ib_add_slave_port()
> repeatedly attempts to bind the new mpi structure to every device
> on the list until it finds an unbound device.
>
> Change the log level from warn to dbg to avoid log flooding as the warning
> should be harmless.
>
> Signed-off-by: Qing Huang <qing.huang@oracle.com>
> Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
> ---
> v1 -> v2: change the log level instead
Applied to for-next
Thanks,
Jason
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-07-26 22:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-23 21:15 [PATCH v2] IB/mlx5: avoid excessive warning msgs when creating VFs on 2nd port Qing Huang
2018-07-23 21:17 ` Daniel Jurgens
2018-07-26 22:12 ` Jason Gunthorpe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox