Spdk/lib/nvmf
Seth Howell a52fc70d51 nvmf: Discover commands use the nvmf_req->iov struct
Discover commands previously blindly used the nvmf_req->data structure.
This only works if the entire command fits in a single contiguous
buffer. commit 1d9be84bfd changed the default buffer size such that
this would become a problem for as few as 8 subsystems.

Fixes github issue 525

This change may also help prevent data corruption as we were copying up
to nvmf_req->length data into the buffer. For requests with multiple
data buffers this can cause us to copy off the end of that buffer.

Change-Id: I788259da988b2458f57ee2795e1c5d3ced8803dd
Signed-off-by: Seth Howell <seth.howell@intel.com>
Reviewed-on: https://review.gerrithub.io/435544
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
2018-12-10 22:59:22 +00:00
..
ctrlr_bdev.c ctrlr_bdev: change spdk_nvmf_bdev_ctrlr_identify_ns to return void 2018-10-15 17:29:30 +00:00
ctrlr_discovery.c nvmf: Discover commands use the nvmf_req->iov struct 2018-12-10 22:59:22 +00:00
ctrlr.c nvmf: Discover commands use the nvmf_req->iov struct 2018-12-10 22:59:22 +00:00
Makefile nvme: Add the NVMe over fabrics TCP/IP transport support 2018-11-19 20:36:05 +00:00
nvmf_fc.h lib/nvmf: fix a typo error 2018-10-12 17:40:16 +00:00
nvmf_internal.h nvmf: Discover commands use the nvmf_req->iov struct 2018-12-10 22:59:22 +00:00
nvmf.c nvmf: remove tgt_opts from nvmf_tgt 2018-11-08 23:08:26 +00:00
rdma.c nvmf: fix the error path for shared data buffer free. 2018-12-05 05:57:09 +00:00
request.c nvmf: add free_req function pointer. 2018-07-27 20:50:36 +00:00
subsystem.c log: remove "trace" from internal API 2018-12-03 19:50:15 +00:00
tcp.c nvmf/tcp: Fix the recv state switch if no shared buffer available 2018-12-10 20:21:41 +00:00
transport.c nvme: Add the NVMe over fabrics TCP/IP transport support 2018-11-19 20:36:05 +00:00
transport.h nvme: Add the NVMe over fabrics TCP/IP transport support 2018-11-19 20:36:05 +00:00