]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Fix configuration of port capabilities
authorEli Cohen <eli@mellanox.com>
Tue, 14 Feb 2017 05:25:38 +0000 (07:25 +0200)
committerDoug Ledford <dledford@redhat.com>
Wed, 15 Feb 2017 14:29:37 +0000 (09:29 -0500)
commitc38e26ff8a2f0a031945b4bf66061585a562e500
tree5e179fb792e0a48418cb8a2fb9ea0fafe1f8c236
parente5a3b1c987118ae881d789acbe954d1dc337e6d4
IB/mlx5: Fix configuration of port capabilities

When the "ib_virt" cap is set, configuration of port capabilities need
to be done through mlx5_core_modify_hca_vport_context.
Since modify_hca_vport_context accepts mask and value, there is no need
to read the port capabilities and calculate the new cap values so we
avoid the mutex when ib_virt is set.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c