From 55bce500e457b8933c9cf3213d764253e3610c47 Mon Sep 17 00:00:00 2001
From: Gopinath P
Date: Thu, 8 May 2025 18:34:13 +0530
Subject: [PATCH] plugin/ocp: Added the OCP Get Feature FID=C3h command API
Enabled Get Feature command (FID=C3h) API with sel, namespace-id,
no-uuid command line arguments. namespace-id added to the test the
command with active, inactive and invalid nsid values.
Reviewed-by: Karthik Balan
Reviewed-by: Arunpandian J
Signed-off-by: Gopinath P
[wagi: fixed build issues, reformated commit message]
Signed-off-by: Daniel Wagner
---
...-ocp-get-clear-pcie-correctable-errors.txt | 62 +++++++++++++++
completions/_nvme | 15 ++++
completions/bash-nvme-completion.sh | 7 +-
plugins/ocp/ocp-clear-features.c | 75 +++++++++++++++++++
plugins/ocp/ocp-clear-features.h | 3 +
plugins/ocp/ocp-nvme.c | 6 ++
plugins/ocp/ocp-nvme.h | 2 +
7 files changed, 169 insertions(+), 1 deletion(-)
create mode 100644 Documentation/nvme-ocp-get-clear-pcie-correctable-errors.txt
diff --git a/Documentation/nvme-ocp-get-clear-pcie-correctable-errors.txt b/Documentation/nvme-ocp-get-clear-pcie-correctable-errors.txt
new file mode 100644
index 0000000000..dce716bdd0
--- /dev/null
+++ b/Documentation/nvme-ocp-get-clear-pcie-correctable-errors.txt
@@ -0,0 +1,62 @@
+nvme-ocp-get-clear-pcie-correctable-errors(1)
+=========================================
+
+NAME
+----
+nvme-ocp-get-clear-pcie-correctable-errors - Define and print get-clear-pcie-correctable-errors value
+
+SYNOPSIS
+--------
+[verse]
+'nvme ocp get-clear-pcie-correctable-errors' [--sel=