Patch "IB/mlx5: Enable MAD_IFC commands for IB ports only" has been added to the 4.7-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
IB/mlx5: Enable MAD_IFC commands for IB ports only
to the 4.7-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:
ib-mlx5-enable-mad_ifc-commands-for-ib-ports-only.patch
and it can be found in the queue-4.7 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
7fae6655a0c897875bd34501ec092232b526d3e4Mon Sep 17 00:00:00 2001
From: Noa Osherovich <[email protected]>
Date: Mon, 12 Sep 2016 19:16:23 +0300
Subject: IB/mlx5: Enable MAD_IFC commands for IB ports only
From: Noa Osherovich <[email protected]>
commit 7fae6655a0c897875bd34501ec092232b526d3e4 upstream.
MAD_IFC command is supported only for physical functions (PF) and when physical port is IB. The proposed fix enforces it.
--- drivers/infiniband/hw/mlx5/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/infiniband/hw/mlx5/main.c +3 -1
@@ -287,7 +287,9 @@ __be16 mlx5_get_roce_udp_sport(struct mlstatic int mlx5_use_mad_ifc (struct mlx5_ib_dev *dev) { -return !MLX5_CAP_GEN (dev->mdev, ib_virt); +if (MLX5_CAP_GEN (dev->mdev, port_type) ==MLX5_CAP_PORT_TYPE_IB ) +return !MLX5_CAP_GEN (dev->mdev, ib_virt); +return 0 ; }enum {
Patches currently in stable-queue which might be from [email protected] are
queue-4.7/ib-mlx5-enable-mad_ifc-commands-for-ib-ports-only.patch