Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jul 2023 04:32:33 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 0732617ec174 - main - cam/nda: Remove impossible CAM codes
Message-ID:  <202307210432.36L4WXEx014778@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

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

commit 0732617ec174854c0875bb7171d850473c61569f
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2023-07-21 04:22:27 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-07-21 04:32:31 +0000

    cam/nda: Remove impossible CAM codes
    
    The NVME SIM does not generate these status values, so remove them.
    
    Sponsored by:           Netflix
    Reviewed by:            jhb
    Differential Revision:  https://reviews.freebsd.org/D41084
---
 sys/cam/nvme/nvme_da.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/sys/cam/nvme/nvme_da.c b/sys/cam/nvme/nvme_da.c
index 94915ec6a726..f2fb1b79f452 100644
--- a/sys/cam/nvme/nvme_da.c
+++ b/sys/cam/nvme/nvme_da.c
@@ -1284,12 +1284,7 @@ ndaerror(union ccb *ccb, u_int32_t cam_flags, u_int32_t sense_flags)
 		softc->timeouts++;
 #endif
 		break;
-	case CAM_REQ_ABORTED:
 	case CAM_REQ_CMP_ERR:
-	case CAM_REQ_TERMIO:
-	case CAM_UNREC_HBA_ERROR:
-	case CAM_DATA_RUN_ERR:
-	case CAM_ATA_STATUS_ERROR:
 #ifdef CAM_IO_STATS
 		softc->errors++;
 #endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307210432.36L4WXEx014778>