Spdk/lib/nvmf
Daniel Verkamp efca92b85b nvme/rdma: partly remove CC.EN = 1 hack
The generic NVMe library controller initialization process already
handles enabling the controller; the RDMA transport should not need to
set EN itself.

For now, the discovery controller is cheating and not using the normal
initialization process, so move the EN = 1 hack to the discovery
controller bringup until it is overhauled to use the full
nvme_ctrlr_process_init() path.

The previous code where CC.EN was set to 1 before going through the
controller init process would cause an EN = 1 to EN = 0 transition,
which triggers a controller level reset.

This change stops us from causing a reset during the controller
startup sequence, which is defined by the NVMe over Fabrics spec as
terminating the host/controller association (breaking the connection).

Our NVMe over Fabrics target does not yet implement this correctly, but
we should still do the right thing in preparation for a full reset
implementation.

This patch also reverts the NVMe over Fabrics target reset
handling hack that was added as part of the NVMe over Fabrics host
commit to its previous state of just printing an error message.

Change-Id: I0aedd73dfd2dd1168e7b13b79575cc387737d4f0
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
2016-11-23 16:34:41 -07:00
..
direct.c nvmf: share Get/Set Features - Number of Queues 2016-11-23 09:46:31 -07:00
Makefile env: Make the environment library configurable. 2016-10-05 11:51:37 -07:00
nvmf_internal.h nvmf: Add a public API header 2016-10-14 15:26:31 -07:00
nvmf.c log: split internal TRACELOG macro into new header 2016-11-16 13:33:51 -07:00
rdma.c log: split internal TRACELOG macro into new header 2016-11-16 13:33:51 -07:00
request.c nvmf: split subsystem lookup from host check 2016-11-23 16:34:13 -07:00
request.h nvmf: Add a public API header 2016-10-14 15:26:31 -07:00
session.c nvme/rdma: partly remove CC.EN = 1 hack 2016-11-23 16:34:41 -07:00
session.h nvmf: share Get/Set Features - Number of Queues 2016-11-23 09:46:31 -07:00
subsystem.c nvmf: split subsystem lookup from host check 2016-11-23 16:34:13 -07:00
subsystem.h nvmf: Add a public API header 2016-10-14 15:26:31 -07:00
transport.c nvmf: Remove spdk_nvmf_transport from public API 2016-11-16 08:11:46 -07:00
transport.h nvmf: Remove spdk_nvmf_transport from public API 2016-11-16 08:11:46 -07:00
virtual.c nvmf: share Get/Set Features - Number of Queues 2016-11-23 09:46:31 -07:00