Skip to content

Commit

Permalink
nvmf/rdma: Add batch param to config file
Browse files Browse the repository at this point in the history
Add param WRBatching to config target file (only RDMA).

Signed-off-by: Ivan Betsis <[email protected]>
Signed-off-by: Evgeniy Kochetov <[email protected]>
Signed-off-by: Alexey Marchuk <[email protected]>
Signed-off-by: Sasha Kotchubievsky <[email protected]>
  • Loading branch information
Ivan Betsis committed Feb 16, 2020
1 parent fa0adf5 commit 0ea5be1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Add optional 'no_wr_batching' parameter to 'nvmf_create_transport' RPC method.

Add 'no_wr_batching' parameter in 'spdk_nvmf_transport_opts' for the ability disable WR batching RDMA.

Add NoWRBatching option in [Transport] section, this can be used for disable RDMA WR batching.

### vmd
A new function, `spdk_vmd_fini`, has been added. It releases all resources acquired by the VMD
library through the `spdk_vmd_init` call.
Expand Down
3 changes: 3 additions & 0 deletions etc/spdk/nvmf.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@
# Set the maximum number outstanding I/O per shared receive queue. Relevant only for RDMA transport
#MaxSRQDepth 4096

# Disable batching for RDMA requests
#NoWRBatching False

[Transport]
# Set TCP transport type.
Type TCP
Expand Down
2 changes: 2 additions & 0 deletions module/event/subsystems/nvmf/conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,8 @@ spdk_nvmf_parse_transport(struct spdk_nvmf_parse_transport_ctx *ctx)
}
bval = spdk_conf_section_get_boolval(ctx->sp, "NoSRQ", false);
opts.no_srq = bval;
bval = spdk_conf_section_get_boolval(ctx->sp, "NoWRBatching", false);
opts.no_wr_batching = bval;
}

if (trtype == SPDK_NVME_TRANSPORT_TCP) {
Expand Down

0 comments on commit 0ea5be1

Please sign in to comment.