diff options
author | Chuck Tuffli <chuck@FreeBSD.org> | 2021-06-24 16:54:05 +0000 |
---|---|---|
committer | Chuck Tuffli <chuck@FreeBSD.org> | 2022-02-22 03:22:35 +0000 |
commit | b7a2cf0d9102b338dd00f0f3a6a7c135c1569d7c (patch) | |
tree | d48fb7fd320e47e8000b2d49e578da82e0b2c1e4 | |
parent | b55a7f3422d76a6765716b2b6e78967bd75199c9 (diff) | |
download | src-b7a2cf0d9102.tar.gz src-b7a2cf0d9102.zip |
bhyve: fix NVMe MDTS comment
Removes an obsolete comment and adds parenthesis around the macro while
in the area. No functional change.
(cherry picked from commit a11ca79cd9d00b102c7bf8a0b683fd85079a6346)
-rw-r--r-- | usr.sbin/bhyve/pci_nvme.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.sbin/bhyve/pci_nvme.c b/usr.sbin/bhyve/pci_nvme.c index fdf4a46148c9..034c9409cea3 100644 --- a/usr.sbin/bhyve/pci_nvme.c +++ b/usr.sbin/bhyve/pci_nvme.c @@ -198,13 +198,11 @@ struct pci_nvme_blockstore { * Calculate the number of additional page descriptors for guest IO requests * based on the advertised Max Data Transfer (MDTS) and given the number of * default iovec's in a struct blockif_req. - * - * Note the + 1 allows for the initial descriptor to not be page aligned. */ #define MDTS_PAD_SIZE \ - NVME_MAX_IOVEC > BLOCKIF_IOV_MAX ? \ - NVME_MAX_IOVEC - BLOCKIF_IOV_MAX : \ - 0 + ( NVME_MAX_IOVEC > BLOCKIF_IOV_MAX ? \ + NVME_MAX_IOVEC - BLOCKIF_IOV_MAX : \ + 0 ) struct pci_nvme_ioreq { struct pci_nvme_softc *sc; |