Skip to contentSkip to conversation

Fix a typo in app/pktgen.c

PATCH In review Rami Rosen 2 participants 2 messages Feb 7, 2018

lore
Share & tools
lore

Rami Rosen

author
#0 lore raw

PATCH 1/1 Fix a typo in app/pktgen.c

This patch fixes a typo in pktgen_main_rxtx_loop() method of app/pktgen.c.

---
 app/pktgen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
app/pktgen.c +1 -1
index 4904954..412585b 100644
@@ -1263,7 +1263,7 @@ pktgen_main_rxtx_loop(uint8_t lid)
 	if (txcnt == 0)
 		rte_panic("No ports found for %d lcore\n", lid);
 
-	printf("For TX found %d port(s) for lcore %d\n", rxcnt, lid);
+	printf("For TX found %d port(s) for lcore %d\n", txcnt, lid);
 	for(idx = 0; idx < txcnt; idx++) {
 		if (infos[idx] == NULL)
 			rte_panic("Invalid TX config: port at index %d not found for %d lcore\n", idx, lid);
Signature · 1 line
2.14.3
#1 lore raw
Quoted 17 lines · Rami

This patch fixes a typo in pktgen_main_rxtx_loop() method of app/pktgen.c.

---
app/pktgen.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
app/pktgen.c +0 -0
index 4904954..412585b 100644

app/pktgen.c pktgen_main_rxtx_loop(uint8_t lid) · line 1266

Quoted 5 lines
app/pktgen.c +1 -1
@@ -1263,7 +1263,7 @@ pktgen_main_rxtx_loop(uint8_t lid)
 	if (txcnt == 0)
 		rte_panic("No ports found for %d lcore\n", lid);
 
-	printf("For TX found %d port(s) for lcore %d\n", rxcnt, lid);
+	printf("For TX found %d port(s) for lcore %d\n", txcnt, lid);

Thanks I will apply it.

Quoted 6 lines
app/pktgen.c +0 -0
 	for(idx = 0; idx < txcnt; idx++) {
 		if (infos[idx] == NULL)
 			rte_panic("Invalid TX config: port at index %d not found for %d lcore\n", idx, lid);
Signature · 1 line
2.14.3

Regards,
Keith