]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: devcom only supports 2 ports
authorMark Bloch <mbloch@nvidia.com>
Sun, 27 Feb 2022 12:23:34 +0000 (12:23 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 10 May 2022 05:54:00 +0000 (22:54 -0700)
commit20ec9ea66326677e17eba20a899bec556f43f42f
tree5c07477025d8af6add7d4bb4edc913315957640e
parenta6c51eed4a15846b4eb2e0ddd4b893b032a37ec8
net/mlx5: devcom only supports 2 ports

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: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.c
drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.h