net/mlx5: check maximum Verbs port number
authorXueming Li <xuemingl@nvidia.com>
Wed, 21 Jul 2021 14:37:36 +0000 (22:37 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 21 Jul 2021 22:11:14 +0000 (00:11 +0200)
commitcdfdb82d0b361d9e0848917b0ed6e9cf30e46dd1
tree3dc2910ebaa024225acab5761573a4fbaeb0b94a
parent919488fbfa7121887410f3863f674d99dabc7d64
net/mlx5: check maximum Verbs port number

Verbs API doesn't support device port number larger than 255 by design.
Add check and fail probing with proper error log.

Signed-off-by: Xueming Li <xuemingl@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/linux/mlx5_os.c