examples/ipsec-secgw: fix dependency on core 0
Checks
Commit Message
If core 0 is not included in coremask in event mode then
ipsec-secgw seg faults. This fix uses first core from
coremask in rx queue configuration instead of core 0
which was always previously used.
Signed-off-by: Lukasz Bartosik <lbartosik@marvell.com>
---
examples/ipsec-secgw/ipsec-secgw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
>
> If core 0 is not included in coremask in event mode then ipsec-secgw seg faults.
> This fix uses first core from coremask in rx queue configuration instead of core 0
> which was always previously used.
>
> Signed-off-by: Lukasz Bartosik <lbartosik@marvell.com>
> ---
> examples/ipsec-secgw/ipsec-secgw.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Acked-by: Anoob Joseph <anoobj@marvell.com>
> >
> > If core 0 is not included in coremask in event mode then ipsec-secgw seg faults.
> > This fix uses first core from coremask in rx queue configuration instead of core
> 0
> > which was always previously used.
> >
> > Signed-off-by: Lukasz Bartosik <lbartosik@marvell.com>
> > ---
> > examples/ipsec-secgw/ipsec-secgw.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
>
> Acked-by: Anoob Joseph <anoobj@marvell.com>
Applied to dpdk-next-crypto
Thanks.
> >
> > Acked-by: Anoob Joseph <anoobj@marvell.com>
>
> Applied to dpdk-next-crypto
>
> Thanks.
Squashed to the original patch which introduced the issue as it is not submitted to master branch yet.
@@ -2643,7 +2643,7 @@ check_event_mode_params(struct eh_conf *eh_conf)
params = &lcore_params[nb_lcore_params++];
params->port_id = portid;
params->queue_id = 0;
- params->lcore_id = 0;
+ params->lcore_id = rte_get_next_lcore(0, 0, 1);
}
return 0;