Spdk/lib/bdev/nvme
Shuhei Matsumoto 260f9a77c3 bdev/nvme: Set per-controller PRCHK options by JSON RPC
Add prchk_reftag and prchk_guard to construct_nvme_bdev RPC.
In spdk_rpc_construct_nvme_bdev, create prchk_flags based on them
and pass it to spdk_bdev_nvme_create, and in spdk_bdev_nvme_create,
pass it to create_ctrlr.

A single option enable_prchk may be enough but add separate options
for reftag and guard to clarify that apptag is not supported yet.

The next patch will make per-controller PRCHK options configurable
by .INI config file.

Change-Id: I370ebbe984ee83d133b7f50bdc648ea746c8d42d
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/c/443833
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
2019-02-12 09:14:31 +00:00
..
bdev_nvme_rpc.c bdev/nvme: Set per-controller PRCHK options by JSON RPC 2019-02-12 09:14:31 +00:00
bdev_nvme.c bdev/nvme: Set per-controller PRCHK options by JSON RPC 2019-02-12 09:14:31 +00:00
bdev_nvme.h bdev/nvme: Set per-controller PRCHK options by JSON RPC 2019-02-12 09:14:31 +00:00
Makefile scripts/rpc.py: add method "send_nvme_cmd" 2018-10-22 22:01:14 +00:00
nvme_rpc.c scripts/rpc.py: add method "send_nvme_cmd" 2018-10-22 22:01:14 +00:00