From 8131b7eb5041d481c74318bff3cafa8905ac3558 Mon Sep 17 00:00:00 2001 From: Anoob Joseph Date: Thu, 16 Sep 2021 11:37:51 +0530 Subject: [PATCH] examples/ipsec-secgw: fix parsing of flow queue Documentation specifies that flow port & queue is provided as, <...> port 0 queue 0 But code is expecting the same as, <...> port 0 0 Fix the above to match documentation. Fixes: 8e693616fcb2 ("examples/ipsec-secgw: enable flow based distribution") Cc: stable@dpdk.org Signed-off-by: Anoob Joseph Acked-by: Akhil Goyal --- examples/ipsec-secgw/flow.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/ipsec-secgw/flow.c b/examples/ipsec-secgw/flow.c index 69f8405d15..1a1ec7861c 100644 --- a/examples/ipsec-secgw/flow.c +++ b/examples/ipsec-secgw/flow.c @@ -188,7 +188,9 @@ parse_flow_tokens(char **tokens, uint32_t n_tokens, return; rule->port = atoi(tokens[ti]); + } + if (strcmp(tokens[ti], "queue") == 0) { INCREMENT_TOKEN_INDEX(ti, n_tokens, status); if (status->status < 0) return; -- 2.20.1