Page MenuHomeFreeBSD

bhyve: base pci_nvme_ioreq size on advertised MDTS
ClosedPublic

Authored by chuck on May 18 2020, 4:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 26, 4:09 PM
Unknown Object (File)
Mar 27 2024, 10:57 PM
Unknown Object (File)
Jan 12 2024, 6:37 PM
Unknown Object (File)
Dec 20 2023, 5:57 AM
Unknown Object (File)
Nov 7 2023, 6:11 PM
Unknown Object (File)
Nov 4 2023, 9:45 PM
Unknown Object (File)
Nov 4 2023, 9:01 PM
Unknown Object (File)
Oct 6 2023, 5:07 PM
Subscribers

Details

Summary

NVMe controllers advertise their Max Data Transfer Size (MDTS) to limit
the number of page descriptors in an I/O request. Take advantage of this
and size the struct pci_nvme_ioreq accordingly.

Ensuring these values match both future-proofs the code and allows
removing some complexity which only exists to handle this possibility.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

chuck requested review of this revision.May 18 2020, 4:00 PM
This revision was not accepted when it landed; it landed in state Needs Review.Jun 29 2020, 12:32 AM
This revision was automatically updated to reflect the committed changes.