summaryrefslogtreecommitdiffstats
path: root/src/plugins/rdma/unformat.c
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2021-03-17 14:41:33 +0100
committerDamjan Marion <dmarion@me.com>2021-05-04 07:23:03 +0000
commitf5a45680ee1c9c586ab2b037e3d71354789e4403 (patch)
tree81cc137d27befc7802efccd91aa6728c627f9064 /src/plugins/rdma/unformat.c
parentee60ac638c9abcd0763c57fce0e3e646723ea0e0 (diff)
rdma: add support for RSS configuration
Type: feature Change-Id: I911ee94b624ef5edf46b34666597eff93df1d1ed Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/plugins/rdma/unformat.c')
-rw-r--r--src/plugins/rdma/unformat.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/plugins/rdma/unformat.c b/src/plugins/rdma/unformat.c
index 26c184793bd..c529958b585 100644
--- a/src/plugins/rdma/unformat.c
+++ b/src/plugins/rdma/unformat.c
@@ -54,6 +54,18 @@ unformat_rdma_create_if_args (unformat_input_t * input, va_list * vargs)
args->no_multi_seg = 1;
else if (unformat (line_input, "max-pktlen %u", &tmp))
args->max_pktlen = tmp;
+ else if (unformat (line_input, "rss ipv4-udp"))
+ args->rss4 = RDMA_RSS4_IP_UDP;
+ else if (unformat (line_input, "rss ipv4-tcp"))
+ args->rss4 = RDMA_RSS4_IP_TCP;
+ else if (unformat (line_input, "rss ipv4"))
+ args->rss4 = RDMA_RSS4_IP;
+ else if (unformat (line_input, "rss ipv6-udp"))
+ args->rss6 = RDMA_RSS6_IP_UDP;
+ else if (unformat (line_input, "rss ipv6-tcp"))
+ args->rss6 = RDMA_RSS6_IP_TCP;
+ else if (unformat (line_input, "rss ipv6"))
+ args->rss6 = RDMA_RSS6_IP;
else
{
/* return failure on unknown input */