nvmf/vfio-user: add transport opts to RPC
Signed-off-by: John Levon <john.levon@nutanix.com> Change-Id: Ifa8e80e0a25af7757181f480ab0405ec902a61ff Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9596 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
75775a4720
commit
180d2c1d9d
@ -6023,6 +6023,7 @@ acceptor_backlog | Optional | number | The number of pending connect
|
||||
abort_timeout_sec | Optional | number | Abort execution timeout value, in seconds
|
||||
no_wr_batching | Optional | boolean | Disable work requests batching (RDMA only)
|
||||
control_msg_num | Optional | number | The number of control messages per poll group (TCP only)
|
||||
disable_mappable_bar0 | Optional | boolean | disable client mmap() of BAR0 (VFIO-USER only)
|
||||
|
||||
#### Example
|
||||
|
||||
|
@ -543,7 +543,7 @@ nvmf_vfio_user_destroy(struct spdk_nvmf_transport *transport,
|
||||
|
||||
static const struct spdk_json_object_decoder vfio_user_transport_opts_decoder[] = {
|
||||
{
|
||||
"disable-mappable-bar0",
|
||||
"disable_mappable_bar0",
|
||||
offsetof(struct nvmf_vfio_user_transport, transport_opts.disable_mappable_bar0),
|
||||
spdk_json_decode_bool, true
|
||||
},
|
||||
|
@ -1937,6 +1937,8 @@ Format: 'user:u1 secret:s1 muser:mu1 msecret:ms1,user:u2 secret:s2 muser:mu2 mse
|
||||
p.add_argument('-w', '--no-wr-batching', action='store_true', help='Disable work requests batching. Relevant only for RDMA transport')
|
||||
p.add_argument('-e', '--control-msg-num', help="""The number of control messages per poll group.
|
||||
Relevant only for TCP transport""", type=int)
|
||||
p.add_argument('-M', '--disable-mappable-bar0', action='store_true', help="""Disable mmap() of BAR0.
|
||||
Relevant only for VFIO-USER transport""")
|
||||
p.set_defaults(func=nvmf_create_transport)
|
||||
|
||||
def nvmf_get_transports(args):
|
||||
|
@ -118,6 +118,7 @@ def nvmf_create_transport(client, **params):
|
||||
abort_timeout_sec: Abort execution timeout value, in seconds (optional)
|
||||
no_wr_batching: Boolean flag to disable work requests batching - RDMA specific (optional)
|
||||
control_msg_num: The number of control messages per poll group - TCP specific (optional)
|
||||
disable_mappable_bar0: disable client mmap() of BAR0 - VFIO-USER specific (optional)
|
||||
Returns:
|
||||
True or False
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user