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
F135861481: D24891.id71939.diff
Thu, Nov 13, 3:18 PM
F135861460: D24891.id.diff
Thu, Nov 13, 3:18 PM
F135861408: D24891.id73835.diff
Thu, Nov 13, 3:17 PM
F135812333: D24891.diff
Thu, Nov 13, 3:13 AM
Unknown Object (File)
Mon, Nov 3, 11:00 PM
Unknown Object (File)
Wed, Oct 22, 2:43 PM
Unknown Object (File)
Wed, Oct 22, 2:43 PM
Unknown Object (File)
Wed, Oct 22, 2:43 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.