RDMA/mana_ib: Enable RoCE on port 1
authorKonstantin Taranov <kotaranov@microsoft.com>
Wed, 10 Apr 2024 08:42:29 +0000 (01:42 -0700)
committerLeon Romanovsky <leon@kernel.org>
Tue, 16 Apr 2024 11:28:26 +0000 (14:28 +0300)
commit8b184e4f1c328d9b37994f66224550befdefe49b
treeba58df8c59847a1bfc0164da8dad794502f7aaa1
parent4bda1d5332ec1b00262ad53f6a4cfa88190a048d
RDMA/mana_ib: Enable RoCE on port 1

Set netdev and RoCEv2 flag to enable GID population on port 1.
Use GIDs of the master netdev. As mc->ports[] stores slave devices,
use a helper to get the master netdev.

Signed-off-by: Konstantin Taranov <kotaranov@microsoft.com>
Link: https://lore.kernel.org/r/1712738551-22075-5-git-send-email-kotaranov@linux.microsoft.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/mana/device.c
drivers/infiniband/hw/mana/main.c