Spdk/lib/nvmf
Shuhei Matsumoto 91da9aaafe nvmf: Add a flag dif_insert_or_strip to struct spdk_nvmf_ctrlr
Add a flag dif_insert_or_strip to struct spdk_nvmf_ctrlr that indicates
whether DIF insert/strip is done.

Copy the DIF insert/strip setting of the corresponding transport options
to the flag at NVMf controller creation.

The purpose of this patch is to make DIF insert/strip not per-transport
option but per-controller option because we may want to be able to
control DIF insert/strip per controller at some point. Besides this patch
will clean the implementation.

Besides align indent around the change.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I57f65960b430e55f4021ed514aacd85581ff9993
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/461313
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: Only present subsystem if it is ready 2019-01-07 06:02:26 +00:00
ctrlr.c nvmf: Add a flag dif_insert_or_strip to struct spdk_nvmf_ctrlr 2019-07-11 05:30:28 +00:00
Makefile nvmf: Collapse request.c into ctrlr.c 2019-02-04 18:11:33 +00:00
nvmf_fc.h lib/nvmf: fix a typo error 2018-10-12 17:40:16 +00:00
nvmf_internal.h nvmf: Add a flag dif_insert_or_strip to struct spdk_nvmf_ctrlr 2019-07-11 05:30:28 +00:00
nvmf.c nvmf: add spdk_nvmf_get_optimal_poll_group 2019-07-10 02:30:41 +00:00
rdma.c rdma: assert ibv_send_wr is not NULL 2019-06-25 13:37:15 +00:00
subsystem.c nvmf: add parameter check when loading reservation information from a JSON file 2019-07-10 01:40:26 +00:00
tcp.c nvmf: add spdk_nvmf_transport_get_optimal_poll_group 2019-07-10 02:30:41 +00:00
transport.c nvmf: add spdk_nvmf_transport_get_optimal_poll_group 2019-07-10 02:30:41 +00:00
transport.h nvmf: add spdk_nvmf_transport_get_optimal_poll_group 2019-07-10 02:30:41 +00:00