Page MenuHomeFreeBSD

bhyve: base pci_nvme_ioreq size on advertised MDTS
Needs ReviewPublic

Authored by chuck on Mon, May 18, 4:00 PM.

Details

Reviewers
jhb
imp
Group Reviewers
bhyve
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

Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

chuck created this revision.Mon, May 18, 4:00 PM
chuck requested review of this revision.Mon, May 18, 4:00 PM