HomeFreeBSD

mlx5en(4): Use hard-coded 4K page size for RQ/SQ/CQ.

Description

mlx5en(4): Use hard-coded 4K page size for RQ/SQ/CQ.

The page size specified for RQ, SQ and CQ is always in units of 4KBytes.
Make sure we subtract MLX5_ADAPTER_PAGE_SHIFT, 12, instead of PAGE_SHIFT
which may vary. This fixes support for using the mlx5en driver on systems
having non-4K page size.

Linux commit:
68cdf5d6e91068c98d6091b193dc7a5ab7dcf5eb

Sponsored by: NVIDIA Networking

(cherry picked from commit d735d604f063617909d98bd0fc36a6f25a14c699)

Details

Provenance
hselaskyAuthored on May 2 2022, 3:14 PM
Parents
rG097991f8ffd6: linuxkpi: Mitigate a seqlock livelock
Branches
Unknown
Tags
Unknown