Skip to contentSkip to conversation

examples/ipsec-secgw: fix parsing of flow queue

PATCH Applied Anoob Joseph 2 participants 4 messages Sep 16, 2021 – Sep 24, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 examples/ipsec-secgw/flow.c | 2 ++
 1 file changed, 2 insertions(+)
examples/ipsec-secgw/flow.c +2 -0
index 69f8405..1a1ec78 100644
@@ -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;
Signature · 1 line
2.7.4
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines

Documentation specifies that flow port & queue is provided as,

<...> port 0 queue 0

But code is expecting the same as,

<...> port 0 0

Quoted 7 lines

Fix the above to match documentation.

Fixes 8e693616fcb2 ("examples/ipsec-secgw: enable flow based

distribution")

---

Applied
#2 lore raw
Quoted 8 lines
Quoted 8 lines

Documentation specifies that flow port & queue is provided as,

<...> port 0 queue 0

But code is expecting the same as,

<...> port 0 0

Quoted 8 lines
Quoted 7 lines

Fix the above to match documentation.

Fixes 8e693616fcb2 ("examples/ipsec-secgw: enable flow based

distribution")

---

Applied to dpdk-next-crypto

Thanks.

#3 lore raw
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

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.

Quoted 8 lines
Quoted 6 lines
Quoted 5 lines
Fixes 8e693616fcb2 ("examples/ipsec-secgw: enable flow based

distribution")

---

Applied to dpdk-next-crypto