opnsense-src/sys/dev/mlx5
Hans Petter Selasky 565cb4e8cc 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

MFC after:	1 week
Reviewed by:	kib
Sponsored by:	Mellanox Technologies // NVIDIA Networking
2021-07-12 14:22:29 +02:00
..
mlx5_accel mlx5fpga: Initial code import. 2018-12-05 14:11:20 +00:00
mlx5_core mlx5en: Add missing media types for 100GBit/s, 200Gbit/s and 400Gbit/s. 2021-07-12 14:22:29 +02:00
mlx5_en mlx5en: Add more error checks in the transmit path. 2021-07-12 14:22:29 +02:00
mlx5_fpga Add MLX5_FPGA_RELOAD IOCTL(2) to mlx5fpga. 2019-05-08 10:25:14 +00:00
mlx5_fpga_tools Infiniband clients must be attached and detached in a specific order in ibcore. 2020-07-06 08:50:11 +00:00
mlx5_ib mlx5ib: Limit mkey page size to 2GB 2021-07-12 14:22:29 +02:00
mlx5_lib mlx5fpga: Initial code import. 2018-12-05 14:11:20 +00:00
cmd.h
cq.h Update user access region, UAR, APIs in the core in mlx5core. 2021-01-08 13:33:46 +01:00
device.h mlx5en: Add more error checks in the transmit path. 2021-07-12 14:22:29 +02:00
diagnostics.h Move EEPROM information query from a sysctl in mlx5en(4) to an ioctl 2019-10-02 10:14:55 +00:00
doorbell.h
driver.h Update user access region, UAR, APIs in the core in mlx5core. 2021-01-08 13:33:46 +01:00
fs.h
mlx5_ifc.h mlx5: Fix PBMC register mapping 2021-07-12 12:34:40 +03:00
mlx5_rdma_if.h
mlx5io.h Move EEPROM information query from a sysctl in mlx5en(4) to an ioctl 2019-10-02 10:14:55 +00:00
mpfs.h mlx5: Integrate eswitch and mpfs management code. 2020-03-18 22:33:39 +00:00
port.h mlx5en: Add missing media types for 100GBit/s, 200Gbit/s and 400Gbit/s. 2021-07-12 14:22:29 +02:00
qp.h Use mlx5core to create/destroy all Dynamically Connected Targets, DCTs. 2020-11-16 10:03:18 +00:00
srq.h
tls.h Add basic support for TCP/IP based hardware TLS offload to mlx5core. 2019-12-05 15:16:19 +00:00
vport.h mlx5en: Fix for inlining issues in transmit path 2018-12-05 14:21:28 +00:00