diff mbox series

[for-6.0,2/7] hw/block/nvme: fix missing string representation for ns attachment

Message ID 20210324200907.408996-3-its@irrelevant.dk (mailing list archive)
State New, archived
Headers show
Series hw/block/nvme: misc fixes | expand

Commit Message

Klaus Jensen March 24, 2021, 8:09 p.m. UTC
From: Klaus Jensen <k.jensen@samsung.com>

Add the missing nvme_adm_opc_str entry for the Namespace Attachment
command.

Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
---
 hw/block/nvme.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Gollu Appalanaidu March 29, 2021, 2:44 p.m. UTC | #1
On Wed, Mar 24, 2021 at 09:09:02PM +0100, Klaus Jensen wrote:
>From: Klaus Jensen <k.jensen@samsung.com>
>
>Add the missing nvme_adm_opc_str entry for the Namespace Attachment
>command.
>
>Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
>---
> hw/block/nvme.h | 1 +
> 1 file changed, 1 insertion(+)
>
>diff --git a/hw/block/nvme.h b/hw/block/nvme.h
>index 5b0031b11db2..9edc86d79e98 100644
>--- a/hw/block/nvme.h
>+++ b/hw/block/nvme.h
>@@ -86,6 +86,7 @@ static inline const char *nvme_adm_opc_str(uint8_t opc)
>     case NVME_ADM_CMD_SET_FEATURES:     return "NVME_ADM_CMD_SET_FEATURES";
>     case NVME_ADM_CMD_GET_FEATURES:     return "NVME_ADM_CMD_GET_FEATURES";
>     case NVME_ADM_CMD_ASYNC_EV_REQ:     return "NVME_ADM_CMD_ASYNC_EV_REQ";
>+    case NVME_ADM_CMD_NS_ATTACHMENT:    return "NVME_ADM_CMD_NS_ATTACHMENT";
>     case NVME_ADM_CMD_FORMAT_NVM:       return "NVME_ADM_CMD_FORMAT_NVM";
>     default:                            return "NVME_ADM_CMD_UNKNOWN";
>     }
>--
Reviewed-by: Gollu Appalanaidu <anaidu.gollu@samsung.com>
>2.31.0
>
>
diff mbox series

Patch

diff --git a/hw/block/nvme.h b/hw/block/nvme.h
index 5b0031b11db2..9edc86d79e98 100644
--- a/hw/block/nvme.h
+++ b/hw/block/nvme.h
@@ -86,6 +86,7 @@  static inline const char *nvme_adm_opc_str(uint8_t opc)
     case NVME_ADM_CMD_SET_FEATURES:     return "NVME_ADM_CMD_SET_FEATURES";
     case NVME_ADM_CMD_GET_FEATURES:     return "NVME_ADM_CMD_GET_FEATURES";
     case NVME_ADM_CMD_ASYNC_EV_REQ:     return "NVME_ADM_CMD_ASYNC_EV_REQ";
+    case NVME_ADM_CMD_NS_ATTACHMENT:    return "NVME_ADM_CMD_NS_ATTACHMENT";
     case NVME_ADM_CMD_FORMAT_NVM:       return "NVME_ADM_CMD_FORMAT_NVM";
     default:                            return "NVME_ADM_CMD_UNKNOWN";
     }