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 <c_ivanb@mellanox.com>
Signed-off-by: Evgeniy Kochetov <evgeniik@mellanox.com>
Signed-off-by: Alexey Marchuk <alexeymar@mellanox.com>
Signed-off-by: Sasha Kotchubievsky <sashakot@mellanox.com>
  • Loading branch information
Ivan Betsis committed Feb 17, 2020
1 parent 54322e7 commit 6c9a3d0
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 6c9a3d0

Please sign in to comment.