From 478c0fa8525434e63d27d5d99d133df8af973a68 Mon Sep 17 00:00:00 2001 From: John Levon Date: Thu, 24 Nov 2022 21:37:24 +0000 Subject: [PATCH] lib/nvmf: don't report invalid identify controller CNS At least recent Linux guest VMs send SPDK_NVME_IDENTIFY_CTRLR_IOCS as a matter of course. While this isn't supported in lib/nvmf, as this doesn't represent an error, reduce the log level of the error message so we don't spam the logs. Signed-off-by: John Levon Change-Id: I095de3e4331b3912cbc457da6d722b9883ec7884 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15646 Tested-by: SPDK CI Jenkins Reviewed-by: Changpeng Liu Reviewed-by: Shuhei Matsumoto Reviewed-by: Aleksey Marchuk Community-CI: Mellanox Build Bot --- lib/nvmf/ctrlr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nvmf/ctrlr.c b/lib/nvmf/ctrlr.c index e28354e99..4c3e2ca1c 100644 --- a/lib/nvmf/ctrlr.c +++ b/lib/nvmf/ctrlr.c @@ -2919,7 +2919,7 @@ nvmf_ctrlr_identify(struct spdk_nvmf_request *req) } invalid_cns: - SPDK_INFOLOG(nvmf, "Identify command with unsupported CNS 0x%02x\n", cns); + SPDK_DEBUGLOG(nvmf, "Identify command with unsupported CNS 0x%02x\n", cns); rsp->status.sct = SPDK_NVME_SCT_GENERIC; rsp->status.sc = SPDK_NVME_SC_INVALID_FIELD; return SPDK_NVMF_REQUEST_EXEC_STATUS_COMPLETE;