numam-spdk/lib/nvme
Changpeng Liu a7f526ba1a nvme/opal: check Security Protocol 00h before sending TCG SP
A Security Receive command with the Security Protocol field cleared to
00h shall return information about the security protocols supported by
the controller, so we can check the TCG security protocol is supported
or not before sending it.

Fix issue #1961.

Change-Id: Id061defe45db981b276e2794fd0b59f8db70b7f4
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8083
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Niklas Cassel <niklas.cassel@wdc.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2021-06-04 19:57:36 +00:00
..
Makefile lib/nvme: Add support for Simple Copy Command 2021-05-14 09:59:54 +00:00
nvme_ctrlr_cmd.c nvme/ctrlr: Always access namespaces via getter function 2021-05-20 15:17:41 +00:00
nvme_ctrlr_ocssd_cmd.c nvme: Move nsdata to namespace structure 2021-03-02 08:06:15 +00:00
nvme_ctrlr.c nvme: Initialize ANA state to optimized if ANA reporting is not supported 2021-06-02 11:37:58 +00:00
nvme_cuse.c nvme/cuse: add subsystem reset IOCTL support 2021-05-28 07:20:23 +00:00
nvme_cuse.h lib/nvme: add RPC for interacting with CUSE devices 2019-10-24 23:43:59 +00:00
nvme_fabric.c nvme: init discovery ctrlr using nvme_ctrlr_process_init 2021-05-28 08:14:06 +00:00
nvme_internal.h nvme: add NVME_CTRLR_STATE_CONNECT_ADMINQ 2021-06-01 07:43:12 +00:00
nvme_io_msg.c nvme: only process io_msg in primary process 2021-04-22 01:06:02 +00:00
nvme_io_msg.h lib/nvme: update io msg producers on ns manage 2020-06-05 09:01:44 +00:00
nvme_ns_cmd.c lib/nvme: Add support for Simple Copy Command 2021-05-14 09:59:54 +00:00
nvme_ns_ocssd_cmd.c nvme: save separate metadata size to nvme request 2020-04-02 07:02:38 +00:00
nvme_ns.c nvme/quirk: add MDTS excludes interleaved metadata quirk 2021-03-29 07:38:37 +00:00
nvme_opal_internal.h nvme/opal: deprecate spdk_opal_supported() 2020-05-20 14:16:44 +00:00
nvme_opal.c nvme/opal: check Security Protocol 00h before sending TCG SP 2021-06-04 19:57:36 +00:00
nvme_pcie_common.c nvme/pcie: Add statistics per poll group 2021-04-13 21:30:52 +00:00
nvme_pcie_internal.h nvme/pcie: Add support for Persistent Memory Region (PMR) 2021-04-22 20:10:21 +00:00
nvme_pcie.c nvme: add NVME_CTRLR_STATE_READ_CAP 2021-05-28 08:14:06 +00:00
nvme_poll_group.c nvme: Add functions to get/free poll group statistics 2021-04-13 21:30:52 +00:00
nvme_qpair.c nvme: add spdk_nvme_qpair_get_id 2021-02-17 10:17:43 +00:00
nvme_quirks.c nvme: remove IDENTIFY_CNS quirk from normal QEMU SSDs 2021-04-29 07:09:43 +00:00
nvme_rdma.c nvme: add NVME_CTRLR_STATE_CONNECT_ADMINQ 2021-06-01 07:43:12 +00:00
nvme_tcp.c nvme: add NVME_CTRLR_STATE_CONNECT_ADMINQ 2021-06-01 07:43:12 +00:00
nvme_transport.c nvme/pcie: Add support for Persistent Memory Region (PMR) 2021-04-22 20:10:21 +00:00
nvme_vfio_user.c nvme: add NVME_CTRLR_STATE_READ_CAP 2021-05-28 08:14:06 +00:00
nvme_zns.c nvme: Move nsdata_zns to namespace structure 2021-03-02 08:06:15 +00:00
nvme.c lib: add a hotplug lib for device 2021-04-12 09:48:21 +00:00
spdk_nvme.map nvme: add spdk_nvme_ctrlr_is_fabrics() 2021-06-01 07:43:12 +00:00