]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/mlx5: Obtain upper net device only when needed
authorMark Bloch <mbloch@nvidia.com>
Mon, 9 Sep 2024 17:30:20 +0000 (20:30 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:29:34 +0000 (16:29 +0200)
commit6eff336b103fc0065dfee6f93a4f4074011f374b
tree5bd03b36c49cc5e9e5e48bf93b3020d1c0f3cc55
parente8721e9ba113746b1463bc6f0661c73b5694fef0
RDMA/mlx5: Obtain upper net device only when needed

[ Upstream commit 3ed7f9e239938a0cfaf3689e2f545229ecabec06 ]

Report the upper device's state as the RDMA port state only in RoCE LAG or
switchdev LAG.

Fixes: 27f9e0ccb6da ("net/mlx5: Lag, Add single RDMA device in multiport mode")
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Michael Guralnik <michaelgur@nvidia.com>
Link: https://patch.msgid.link/20240909173025.30422-3-michaelgur@nvidia.com
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/mlx5/main.c