Spdk/test/unit/lib/nvmf/tcp.c
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
..
.gitignore test/nvmf: Add unit tests for NVMe-oF TCP transport 2018-12-13 02:42:12 +00:00
Makefile test/nvmf: Add unit tests for NVMe-oF TCP transport 2018-12-13 02:42:12 +00:00
tcp_ut.c nvmf/tcp: Get DIF context when handling capsule command header 2019-07-11 05:30:28 +00:00