From: Vigneshwaran Saravanan/SSD TS Dev /SSIR/Engineer/Samsung Electronics Date: Mon, 6 Nov 2023 11:47:48 +0000 (+0530) Subject: plugins/ocp:Added the ocp C6h feature api X-Git-Tag: v2.7~101 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=70b4959da637797f3cc6b51647d61499a7c4e5f6;p=users%2Fsagi%2Fnvme-cli.git plugins/ocp:Added the ocp C6h feature api Reviewed-by: Karthik Balan karthik.b82@samsung.com, Arunpandian J arun.j@samsung.com Signed-off-by: Vigneshwaran Saravanan/SSD TS Dev /SSIR/Engineer/Samsung Electronics --- diff --git a/Documentation/nvme-ocp-set-plp-health-check-interval.txt b/Documentation/nvme-ocp-set-plp-health-check-interval.txt index df02f4fc..ac3acb32 100644 --- a/Documentation/nvme-ocp-set-plp-health-check-interval.txt +++ b/Documentation/nvme-ocp-set-plp-health-check-interval.txt @@ -8,7 +8,7 @@ nvme-ocp-set-plp-health-check-interval - Define and set PLP health check interva SYNOPSIS -------- [verse] -'nvme ocp set-plp-health-check-interval' [--plp_health_interval= | -p ] [--save | -s] [--no-uuid | -n] +'nvme ocp set-plp-health-check-interval' [--plp_health_interval= | -p ] [--save | -s] [--no-uuid | -n] DESCRIPTION diff --git a/plugins/ocp/ocp-nvme.c b/plugins/ocp/ocp-nvme.c index c62329fc..34c395e3 100644 --- a/plugins/ocp/ocp-nvme.c +++ b/plugins/ocp/ocp-nvme.c @@ -1967,9 +1967,10 @@ static int set_dssd_power_state_feature(int argc, char **argv, struct command *c /// plp_health_check_interval static int set_plp_health_check_interval(int argc, char **argv, struct command *cmd, - struct plugin *plugin) + struct plugin *plugin) { - const char *desc = "Define Issue Set Feature command (FID : 0xC2) PLP Health Check Interval"; + + const char *desc = "Define Issue Set Feature command (FID : 0xC6) PLP Health Check Interval"; const char *plp_health_interval = "[31:16]:PLP Health Check Interval"; const char *save = "Specifies that the controller shall save the attribute"; const __u32 nsid = 0; @@ -2043,9 +2044,10 @@ static int set_plp_health_check_interval(int argc, char **argv, struct command * } static int get_plp_health_check_interval(int argc, char **argv, struct command *cmd, - struct plugin *plugin) + struct plugin *plugin) { - const char *desc = "Define Issue Get Feature command (FID : 0xC2) PLP Health Check Interval"; + + const char *desc = "Define Issue Get Feature command (FID : 0xC6) PLP Health Check Interval"; const char *sel = "[0-3,8]: current/default/saved/supported/changed"; const __u32 nsid = 0; const __u8 fid = 0xc6;