]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve: update the NVMe CQ based on the status
authorchuck <chuck@FreeBSD.org>
Wed, 17 Jul 2019 03:19:30 +0000 (03:19 +0000)
committerchuck <chuck@FreeBSD.org>
Wed, 17 Jul 2019 03:19:30 +0000 (03:19 +0000)
commitb9ac5b2377dfc2758be8b2c9ea122dcef983554d
tree282a141d4c6a103c80e1421525b2c8a3bf059561
parent69b19356de20e076393461ff5ae1f40c87003de7
bhyve: update the NVMe CQ based on the status

Instead of skipping the NVMe Completion Queue update based on the
opcode, define a synthetic status value which indicates the completion
queue entry is invalid. This will also allow deferred completion queue
updates for other commands.

Also returns the correct status for unrecognized opcodes ("invalid
opcode").

Reviewed by: imp, jhb, araujo
Approved by: imp (mentor), jhb (maintainer)
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D20945
usr.sbin/bhyve/pci_nvme.c