Spdk/test/unit/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 trace: inline tpoint_mask checking 2018-09-04 17:09:25 +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
rdma.c test/unit: add rdma unittest file. 2018-12-04 17:13:29 +00:00
request.c trace: inline tpoint_mask checking 2018-09-04 17:09:25 +00:00
subsystem.c nvmf: check block size is 512 aligned for each Namespace 2018-11-28 22:56:50 +00:00
Makefile test/unit: add rdma unittest file. 2018-12-04 17:13:29 +00:00