diff options
author | Eli Cohen <eli@mellanox.com> | 2017-02-14 08:25:38 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-02-15 17:29:37 +0300 |
commit | cdbe33d0f82d68ff74f05502a4c26e65ec7e90bb (patch) | |
tree | 5e179fb792e0a48418cb8a2fb9ea0fafe1f8c236 /drivers/infiniband/sw/rxe/rxe_verbs.c | |
parent | a748d60df32ec5da31626a140be1795eefa04282 (diff) | |
download | linux-cdbe33d0f82d68ff74f05502a4c26e65ec7e90bb.tar.xz |
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>
Diffstat (limited to 'drivers/infiniband/sw/rxe/rxe_verbs.c')
0 files changed, 0 insertions, 0 deletions