Page MenuHomeFreeBSD

nvme: Remove NVME_MAX_XFER_SIZE, replace inline calculation
ClosedPublic

Authored by imp on Apr 10 2022, 5:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 14 2024, 8:25 AM
Unknown Object (File)
Dec 20 2023, 6:01 AM
Unknown Object (File)
Aug 16 2023, 7:20 AM
Unknown Object (File)
Aug 15 2023, 11:35 AM
Unknown Object (File)
Aug 6 2023, 5:38 PM
Unknown Object (File)
Aug 6 2023, 5:13 PM
Unknown Object (File)
Jul 10 2023, 8:10 PM
Unknown Object (File)
Jun 24 2023, 7:48 AM
Subscribers

Details

Summary

NVME_MAX_XFER_SIZE used to be a constant (back when MAXPHYS was a
constant) to denote the smaller of MAXPHYS or the largest PRP we could
encode with our prealloation scheme. However, it's no longer constant
since MAXPHYS varies at runtime. In addition, the actual maximum is now
based on the drive's currently in use page_size, which is also a runtime
expression. As such, remove the define and expand it inline in the one
place its used still in the tree.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable