HomeFreeBSD

mlx5ib: Limit mkey page size to 2GB

Description

mlx5ib: Limit mkey page size to 2GB

The maximum page size in the mkey context is 2GB.

Until today, we didn't enforce this requirement in the code, and therefore,
if we got a page size larger than 2GB, we have passed zeros in the
log_page_shift instead of the actual value and the registration failed.

This patch limits the driver to use compound pages of 2GB for mkeys.

Linux commit:
762f899ae7875554284af92b821be8c083227092

Reviewed by: kib
Sponsored by: Mellanox Technologies // NVIDIA Networking

(cherry picked from commit 565cb4e8cc5efb4c493efe5cf2cb2ec36f69a413)

Details

Provenance
hselaskyAuthored on Jun 16 2021, 1:01 PM
Parents
rGcae3be82c3cd: mlx5ib: Simplify mlx5_ib_cont_pages()
Branches
Unknown
Tags
Unknown