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
F142194271: D34870.id105068.diff
Sat, Jan 17, 2:00 AM
Unknown Object (File)
Thu, Jan 8, 7:22 AM
Unknown Object (File)
Tue, Jan 6, 6:16 AM
Unknown Object (File)
Tue, Dec 30, 3:26 PM
Unknown Object (File)
Sat, Dec 20, 1:44 AM
Unknown Object (File)
Dec 15 2025, 1:56 PM
Unknown Object (File)
Nov 19 2025, 9:25 AM
Unknown Object (File)
Nov 7 2025, 4:07 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 45111
Build 41999: arc lint + arc unit