Spdk/test/unit/lib/nvme
Changpeng Liu 68d3bb2de4 nvme: save separate metadata size to nvme request
Previously the SPDK NVMe driver always set PSDT to 01b for hardware SGLs
which is aligned to the Linux NVMe driver, for this case the metadata length
is not required when filling the NVMe command fields.  There is no alignment
nor granularity requirement for Data Blocks for PSDT 01b case.  And if the
drive reported that it needs dword alignment with SGL, for this case, when
using spearate metadata, it needs a length parameter to fill the SGL descriptor.

Change-Id: I56ffaada775fe66de7637dae15b509ee9556e80a
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1351
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
2020-04-02 07:02:38 +00:00
..
nvme_ctrlr_cmd.c test/unit: Add set_host_id_cmds to unittest. 2020-01-08 09:12:10 +00:00
nvme_ctrlr_ocssd_cmd.c ocssd: nvme driver public API extension for Open-Channel 2018-06-12 17:59:33 +00:00
nvme_ctrlr.c ut/nvme: Test Set Num Queues controller intialization step 2020-03-18 08:02:48 +00:00
nvme_ns_cmd.c nvme: save separate metadata size to nvme request 2020-04-02 07:02:38 +00:00
nvme_ns_ocssd_cmd.c lib/nvme: add spdk_nvme_transport_available_by_name 2020-01-16 09:10:38 +00:00
nvme_ns.c nvme: add helper to wait for internal commands 2018-05-28 01:43:55 +00:00
nvme_pcie.c nvme/pcie: pass dword aligned requirement based on controller flag 2020-03-25 07:54:40 +00:00
nvme_qpair.c nvme: call the callback for the queued requests when there is submission failure 2019-12-20 10:04:57 +00:00
nvme_quirks.c nvme: add debug logs for matched quirks 2018-02-23 10:07:39 -05:00
nvme_rdma.c lib/nvme: add function tables for all transports. 2020-01-16 09:10:38 +00:00
nvme_tcp.c Revert "nvme/tcp: Change hdr in nvme_tcp_pdu to pointer" 2020-03-17 08:23:07 +00:00
nvme_uevent.c test/unit: Add nvme_uevent_ut.c to unittest. 2020-01-07 12:20:01 +00:00
nvme.c nvme: save separate metadata size to nvme request 2020-04-02 07:02:38 +00:00
Makefile test/unit: Add nvme_uevent_ut.c to unittest. 2020-01-07 12:20:01 +00:00