examples/ipsec-secgw: fix dependency on core 0
PATCH 1/1 examples/ipsec-secgw: fix dependency on core 0
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.
--- examples/ipsec-secgw/ipsec-secgw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
examples/ipsec-secgw/ipsec-secgw.c +1 -1
@@ -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 ;
Signature · 1 line
2.7.4
Quoted 11 lines
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 <[email protected]>--- examples/ipsec-secgw/ipsec-secgw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Akhil Goyal
AppliedQuoted 7 lines
Quoted 4 lines
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
Quoted 2 lines
which was always previously used.
Quoted 7 lines
Quoted 5 lines
Signed-off-by Lukasz Bartosik <[email protected]>--- examples/ipsec-secgw/ipsec-secgw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Acked-by Anoob Joseph <[email protected]>
Applied to dpdk-next-crypto
Thanks.
Quoted 6 lines
Quoted 2 lines
Acked-by Anoob Joseph <[email protected]>Applied to dpdk-next-crypto
Thanks.
Squashed to the original patch which introduced the issue as it is not submitted to master branch yet.