Commit 951d4854 authored by Mark Bloch's avatar Mark Bloch Committed by openeuler-sync-bot
Browse files

net/mlx5: devcom only supports 2 ports

stable inclusion
from stable-v5.10.182
commit 57dc3c124e7bf2b937086e4b57c4a834b02c0457
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8GJZJ

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=57dc3c124e7bf2b937086e4b57c4a834b02c0457



--------------------------------

[ Upstream commit 8a6e75e5 ]

Devcom API is intended to be used between 2 devices only add this
implied assumption into the code and check when it's no true.

Signed-off-by: default avatarMark Bloch <mbloch@nvidia.com>
Reviewed-by: default avatarMaor Gottlieb <maorg@nvidia.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
Stable-dep-of: 1f893f57 ("net/mlx5: Devcom, serialize devcom registration")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
(cherry picked from commit c5b937bf)
parent 8bfc4430
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment