Spdk/lib/nvmf
Konrad Sztyber ffd751fc0b nvmf/tcp: zero-copy support
This patch adds support for using zero-copy operations to execute IO
requests in the TCP transport.  Of course, they're only used if the
underlying bdev supports them.  Additionally, only requests with no
in-capsule-data can be executed using this mechanism.

Added several new states to accommodate for the difference in a way
zero-copy is handled.  Also, these flows very depending on the type of a
request (read or write).  It stems from zero-copy semantics: to perform
a write we need to wait for zcopy_end completion, while for reads
zcopy_end can only be submitted once we send all of the requested data
to the host.

Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Change-Id: Ie02b494c24bc1acc98557cb4b02e867abf9064e4
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10796
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
2022-06-30 13:32:30 -04:00
..
ctrlr_bdev.c nvmf: make zcopy_end void 2022-06-30 13:32:30 -04:00
ctrlr_discovery.c nvmf: add new 'id' to spdk_nvmf_subsystem_listener 2022-06-30 13:32:29 -04:00
ctrlr.c nvmf/tcp: initialize zcopy phase in nvmf_tcp_req_get 2022-06-30 13:32:30 -04:00
fc_ls.c spelling: lib 2022-06-30 13:32:28 -04:00
fc.c nvmf/fc: remove unused variable 2022-06-30 13:32:29 -04:00
Makefile nvmf/ctrlr: let transport can set VID SSVID and IEEE values 2022-06-30 13:32:28 -04:00
nvmf_fc.h spelling: lib 2022-06-30 13:32:28 -04:00
nvmf_internal.h nvmf: abort outstanding zcopy reqs in qpair disconnect 2022-06-30 13:32:30 -04:00
nvmf_rpc.c nvmf: zero-copy enable flag in transport opts 2022-06-30 13:32:30 -04:00
nvmf.c nvmf: abort outstanding zcopy reqs in qpair disconnect 2022-06-30 13:32:30 -04:00
rdma.c nvmf/rdma: Move definitions of rxe vendor IDs to common rdma.h 2022-06-30 13:32:29 -04:00
spdk_nvmf.map lib/nvmf : Added support for ZCOPY 2021-07-23 08:34:43 +00:00
subsystem.c nvmf: support static CNTLID 2022-06-30 13:32:30 -04:00
tcp.c nvmf/tcp: zero-copy support 2022-06-30 13:32:30 -04:00
transport.c nvmf: zero-copy enable flag in transport opts 2022-06-30 13:32:30 -04:00
transport.h nvmf: remove accept poller from generic layer 2022-06-30 13:32:29 -04:00
vfio_user.c nvmf/vfio-user: use static CNTLID 2022-06-30 13:32:30 -04:00