mlx5: Don't give zero number of pages to the firmware.
authorHans Petter Selasky <hselasky@FreeBSD.org>
Tue, 18 Apr 2023 11:22:41 +0000 (13:22 +0200)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Tue, 18 Apr 2023 13:01:06 +0000 (15:01 +0200)
commit95bf70a4bf7982091bb59200bc2db2cb5cd840d7
tree027bf60a9e3fd27f7b6a92522c9bb4471d573390
parent273bfac08ff838786c8b48bc7d3d7180b5f6a3be
mlx5: Don't give zero number of pages to the firmware.

Can happen when using virtual mlx5_core<N> functions, VFs.

MFC after: 1 week
Sponsored by: NVIDIA Networking
sys/dev/mlx5/mlx5_core/mlx5_pagealloc.c