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
F167846713: D24891.id.diff
Mon, Aug 24, 11:32 PM
F167838175: D24891.diff
Mon, Aug 24, 9:57 PM
Unknown Object (File)
Sat, Aug 22, 8:53 AM
Unknown Object (File)
Wed, Aug 12, 2:31 PM
Unknown Object (File)
Mon, Aug 10, 10:00 AM
Unknown Object (File)
Sat, Aug 8, 9:30 AM
Unknown Object (File)
Sat, Aug 8, 4:17 AM
Unknown Object (File)
Thu, Jul 30, 11: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.