Skip to contentSkip to conversation

examples/ipsec-secgw: fix dependency on core 0

PATCH Applied Lukasz Bartosik 3 participants 4 messages Mar 30, 2020 – Apr 5, 2020

lore
Share & tools
lore
#0 lore raw

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
index ce36e6d..5fde4f7 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
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.

---
 examples/ipsec-secgw/ipsec-secgw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Applied
#2 lore raw
Quoted 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
---
 examples/ipsec-secgw/ipsec-secgw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to dpdk-next-crypto

Thanks.