]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/mlx5: Enforce same type port association for multiport RoCE
authorPatrisious Haddad <phaddad@nvidia.com>
Tue, 3 Dec 2024 13:45:37 +0000 (15:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2025 12:29:57 +0000 (13:29 +0100)
commitcbc35242a97a472ba8e3a87cac2ad861a4f9b164
tree0f294e655bcad105989b6d4c9dc054c3e1902bb4
parent6c6f477f64563fdc7cf09f52d927c73317b4c721
RDMA/mlx5: Enforce same type port association for multiport RoCE

[ Upstream commit e05feab22fd7dabcd6d272c4e2401ec1acdfdb9b ]

Different core device types such as PFs and VFs shouldn't be affiliated
together since they have different capabilities, fix that by enforcing
type check before doing the affiliation.

Fixes: 32f69e4be269 ("{net, IB}/mlx5: Manage port association for multiport RoCE")
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Link: https://patch.msgid.link/88699500f690dff1c1852c1ddb71f8a1cc8b956e.1733233480.git.leonro@nvidia.com
Reviewed-by: Mateusz Polchlopek <mateusz.polchlopek@intel.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/mlx5/main.c
include/linux/mlx5/driver.h