OSDN Git Service

net/mlx5: Set num_vhca_ports capability
authorDaniel Jurgens <danielj@mellanox.com>
Thu, 4 Jan 2018 15:25:44 +0000 (17:25 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 8 Jan 2018 18:42:48 +0000 (11:42 -0700)
commitc4b76d8d95600d143f4d75f1bd700eb5d378099f
tree4a0b096d8225a94c8e3423f0e66577ef7777a96b
parent85c7c01499a9ebbf049422668e05c58999b5ae45
net/mlx5: Set num_vhca_ports capability

Set the current capability to the max capability. Doing so enables dual
port RoCE functionality if supported by the firmware.

Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/main.c