net/mlx5_core: Set IB capability mask1 to fix ib_srpt connection failure
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 16 Mar 2020 07:31:03 +0000 (09:31 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 24 Mar 2020 21:42:58 +0000 (14:42 -0700)
commit306f354c67397b3138300cde875c5cab45b857f7
treedde0df9fba6ec2af0009957bfc61267afc883ee3
parent81573b18f26defe672a7d960f9af9ac2c97f324d
net/mlx5_core: Set IB capability mask1 to fix ib_srpt connection failure

The cap_mask1 isn't protected by field_select and not listed among RW
fields, but it is required to be written to properly initialize ports
in IB virtualization mode.

Link: https://lore.kernel.org/linux-rdma/88bab94d2fd72f3145835b4518bc63dda587add6.camel@redhat.com
Fixes: ab118da4c10a ("net/mlx5: Don't write read-only fields in MODIFY_HCA_VPORT_CONTEXT command")
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/vport.c