Spdk/test/unit/lib/nvmf
Shuhei Matsumoto 2c9b0af271 nvmf/tcp: Get DIF context when handling capsule command header
When handling the capsule command header, call spdk_nvmf_request_get_dif_ctx
by passing the NVMf request and the reference to the DIF context, and set
the flag dif_insert_or_strip of the NVMf/TCP request to true.

spdk_nvmf_request_get_dif_ctx returns false immediately when the
corresponding NVMf controller disables DIF insert/strip.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I16f6b322f2692d5f9653d011a490e7929ec37365
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/458928
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
2019-07-11 05:30:28 +00:00
..
ctrlr_bdev.c nvmf: Add helper function to get DIF context from bdev and NVMe cmd 2019-07-10 00:43:02 +00:00
ctrlr_discovery.c nvmf: restore the loaded reservation information to NS 2019-07-08 08:21:03 +00:00
ctrlr.c nvmf: Hide DIF setting of the backend bdev if DIF insert/strip is enabled 2019-07-11 05:30:28 +00:00
rdma.c rdma:Fix gcc9 compile warning on Fedora30. 2019-07-04 00:23:35 +00:00
subsystem.c nvmf: enable ptpl feature with reservation register command 2019-07-02 00:06:59 +00:00
tcp.c nvmf/tcp: Get DIF context when handling capsule command header 2019-07-11 05:30:28 +00:00
Makefile nvmf: Collapse request.c into ctrlr.c 2019-02-04 18:11:33 +00:00