summaryrefslogtreecommitdiffstats
path: root/src/plugins/rdma/unformat.c
diff options
context:
space:
mode:
authorMohammed Hawari <mohammed@hawari.fr>2020-10-27 17:42:32 +0100
committerBeno�t Ganne <bganne@cisco.com>2020-11-13 16:58:18 +0000
commit798267aaa218b99daab4860fd630b9d4bb744c0d (patch)
treeb7a628146d4858b9ae4a232ecd9f501085eed976 /src/plugins/rdma/unformat.c
parentb8e129314aaf43a40e9bf15947578181cc53d675 (diff)
rdma: implement multiseg rx without striding rq
Change-Id: I623617ad3c80610805dd3cf2a5f371e6677f4844 Signed-off-by: Mohammed Hawari <mohammed@hawari.fr> Type: improvement
Diffstat (limited to 'src/plugins/rdma/unformat.c')
-rw-r--r--src/plugins/rdma/unformat.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/rdma/unformat.c b/src/plugins/rdma/unformat.c
index 2bbb266f1bf..26c184793bd 100644
--- a/src/plugins/rdma/unformat.c
+++ b/src/plugins/rdma/unformat.c
@@ -24,7 +24,7 @@ unformat_rdma_create_if_args (unformat_input_t * input, va_list * vargs)
rdma_create_if_args_t *args = va_arg (*vargs, rdma_create_if_args_t *);
unformat_input_t _line_input, *line_input = &_line_input;
uword ret = 1;
-
+ u32 tmp;
if (!unformat_user (input, unformat_line_input, line_input))
return 0;
@@ -48,6 +48,12 @@ unformat_rdma_create_if_args (unformat_input_t * input, va_list * vargs)
args->mode = RDMA_MODE_IBV;
else if (unformat (line_input, "mode dv"))
args->mode = RDMA_MODE_DV;
+ else if (unformat (line_input, "no-striding"))
+ args->disable_striding_rq = 1;
+ else if (unformat (line_input, "no-multi-seg"))
+ args->no_multi_seg = 1;
+ else if (unformat (line_input, "max-pktlen %u", &tmp))
+ args->max_pktlen = tmp;
else
{
/* return failure on unknown input */