git: a11ca79cd9d0 - main - bhyve: fix NVMe MDTS comment

Chuck Tuffli chuck at FreeBSD.org
Fri Jun 25 15:15:24 UTC 2021


The branch main has been updated by chuck:

URL: https://cgit.FreeBSD.org/src/commit/?id=a11ca79cd9d00b102c7bf8a0b683fd85079a6346

commit a11ca79cd9d00b102c7bf8a0b683fd85079a6346
Author:     Chuck Tuffli <chuck at FreeBSD.org>
AuthorDate: 2021-06-24 16:54:05 +0000
Commit:     Chuck Tuffli <chuck at FreeBSD.org>
CommitDate: 2021-06-25 15:02:28 +0000

    bhyve: fix NVMe MDTS comment
    
    Removes an obsolete comment and adds parenthesis around the macro while
    in the area. No functional change.
---
 usr.sbin/bhyve/pci_nvme.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/usr.sbin/bhyve/pci_nvme.c b/usr.sbin/bhyve/pci_nvme.c
index 7d472830a40e..414edabc2b7c 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;


More information about the dev-commits-src-main mailing list