]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Avoid SMP MADs from VFs
authorMaor Gottlieb <maorg@mellanox.com>
Wed, 18 Jan 2017 12:10:34 +0000 (14:10 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 14 Feb 2017 15:14:25 +0000 (10:14 -0500)
commite0b4cf98dd2b4551621a640106cf9a6efc9a45a8
tree0624901272043d807e35e60bad199c5c33e586fa
parent61de36ebae55e3e96ed55c020224133870e06506
IB/mlx5: Avoid SMP MADs from VFs

According to the device specification, we need to check that the
has_smi bit is set in vport context before allowing send SMP
MADs from VF.

Fixes: ffaf2c1a3989 ('mlx5: Add driver for Mellanox Connect-IB adapters')
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Reviewed-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/qp.c