examples/ipsec-secgw: fix parsing of flow queue
Checks
Commit Message
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")
Signed-off-by: Anoob Joseph <anoobj@marvell.com>
---
examples/ipsec-secgw/flow.c | 2 ++
1 file changed, 2 insertions(+)
Comments
> 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")
>
> Signed-off-by: Anoob Joseph <anoobj@marvell.com>
> ---
Acked-by: Akhil Goyal <gakhil@marvell.com>
> > 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")
> >
> > Signed-off-by: Anoob Joseph <anoobj@marvell.com>
> > ---
> Acked-by: Akhil Goyal <gakhil@marvell.com>
Applied to dpdk-next-crypto
Thanks.
> > > 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")
> > >
> > > Signed-off-by: Anoob Joseph <anoobj@marvell.com>
> > > ---
> > Acked-by: Akhil Goyal <gakhil@marvell.com>
> Applied to dpdk-next-crypto
>
Cc: stable@dpdk.org
@@ -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;