Spdk/lib/nvmf
Wenhua Liu e7f6ff2db6 Fix incorrect implementation of HPDA/CPDA in NVMe/TCP target code.
The current implementation treats HPDA/CPDA as the absolute offset
to the beginning of the PDU where the payload data starts. This is
incorrect. The HPDA/CPDA actually specify where the payload data
should start such that the starting location is a multiple of HPDA
(for C2H PDU) or CPDA (for H2C PDU or CapsuleCmd PDU).

The other issue fixed is that the current implementation calculates
padding only when header digest is enabled. This is also incorrect.

Signed-off-by: Wenhua Liu <liuw@vmware.com>
Change-Id: If7a3896a4c1d73f6d062bd3dbe6a912d31771180
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6256
Community-CI: Broadcom CI
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
2021-02-16 08:40:14 +00:00
..
ctrlr_bdev.c log: remove internal log.h header 2020-10-15 08:23:39 +00:00
ctrlr_discovery.c nvmf: Async event support for discovery log change 2020-11-11 00:53:57 +00:00
ctrlr.c include/nvme_spec.h: improve portability 2021-02-10 08:44:10 +00:00
fc_ls.c nvmf/fc: Handle out of order fused commands. 2021-01-14 16:18:25 +00:00
fc.c nvmf: Subsystem pauses only pause admin queues 2021-01-26 17:38:54 +00:00
Makefile so_ver: increase all major versions 2021-02-05 14:43:47 +00:00
nvmf_fc.h nvmf/fc: Add flag to differentiate LS queue and non LS queue. 2021-01-14 16:18:25 +00:00
nvmf_internal.h nvmf: Subsystem pauses only pause admin queues 2021-01-26 17:38:54 +00:00
nvmf_rpc.c nvmf: Subsystem pauses only pause admin queues 2021-01-26 17:38:54 +00:00
nvmf.c nvmf: Subsystem pauses only pause admin queues 2021-01-26 17:38:54 +00:00
rdma.c nvmf/rdma: Handle CQ resize for iWARP transport 2021-01-29 15:14:59 +00:00
spdk_nvmf.map nvmf: revert 'commit ae207216fb ("nvmf: remove request exec backdoor")' 2021-01-11 23:18:07 +00:00
subsystem.c nvmf: Subsystem pauses only pause admin queues 2021-01-26 17:38:54 +00:00
tcp.c Fix incorrect implementation of HPDA/CPDA in NVMe/TCP target code. 2021-02-16 08:40:14 +00:00
transport.c nvmf: introduce listener opts 2020-12-28 13:37:07 +00:00
transport.h nvmf: Allow nvmf_transport_qpair_fini to complete asynchronously. 2020-11-18 11:28:02 +00:00
vfio_user.c nvmf/vfio-user: use transport cdata_init callback for custom IDENTIFY 2021-02-10 08:27:56 +00:00