Skip to contentSkip to conversation

examples/l3fwd-power: add wakeup log

PATCH Superseded Miao Li 4 participants 8 messages Nov 16, 2021 – Nov 24, 2021

lore
Share & tools
lore

Miao Li

author
#0 lore raw

PATCH 1/1 examples/l3fwd-power: add wakeup log

This patch adds a log in main telemetry loop to show the thread is waked up and begins to send and receive packets.

---
 examples/l3fwd-power/main.c | 3 +++
 1 file changed, 3 insertions(+)
examples/l3fwd-power/main.c +3 -0
index 6988a0ed34..b8c020fb91 100644
@@ -1156,6 +1156,9 @@ main_telemetry_loop(__rte_unused void *dummy)
 			ep_nep[nb_rx == 0]++;
 			fp_nfp[nb_rx == MAX_PKT_BURST]++;
 			poll_count++;
+			RTE_LOG(INFO, L3FWD_POWER,
+				"lcore %u is waked up on port %d queue %d\n",
+				rte_lcore_id(), portid, queueid);
 			if (unlikely(nb_rx == 0))
 				continue;
 
Signature · 1 line
2.25.1
#1 lore raw

Hi Li,

Quoted 13 lines · Miao Li

This patch adds a log in main telemetry loop to show the thread is waked up and begins to send and receive packets.

---
  examples/l3fwd-power/main.c | 3 +++
  1 file changed, 3 insertions(+)
examples/l3fwd-power/main.c +0 -0
index 6988a0ed34..b8c020fb91 100644

examples/l3fwd-power/main.c main_telemetry_loop(__rte_unused void *dummy) · line 1164

Quoted 9 lines
examples/l3fwd-power/main.c +3 -0
@@ -1156,6 +1156,9 @@ main_telemetry_loop(__rte_unused void *dummy)
  			ep_nep[nb_rx == 0]++;
  			fp_nfp[nb_rx == MAX_PKT_BURST]++;
  			poll_count++;
+			RTE_LOG(INFO, L3FWD_POWER,
+				"lcore %u is waked up on port %d queue %d\n",
+				rte_lcore_id(), portid, queueid);
  			if (unlikely(nb_rx == 0))
  				continue;
 

It's probably better to say "lcore %u is *reading *port %d queue %d".

Regards,
Dave.

author
#2 lore raw

PATCH v2 1/1 examples/l3fwd-power: add wakeup log

In reply to Miao Li

This patch adds a log in main telemetry loop to show the thread has woken up and begun to send and receive packets.

---
 examples/l3fwd-power/main.c | 3 +++
 1 file changed, 3 insertions(+)
examples/l3fwd-power/main.c +3 -0
index 6988a0ed34..547785dafb 100644
@@ -1156,6 +1156,9 @@ main_telemetry_loop(__rte_unused void *dummy)
 			ep_nep[nb_rx == 0]++;
 			fp_nfp[nb_rx == MAX_PKT_BURST]++;
 			poll_count++;
+			RTE_LOG(INFO, L3FWD_POWER,
+				"lcore %u has woken up on port %d queue %d\n",
+				rte_lcore_id(), portid, queueid);
 			if (unlikely(nb_rx == 0))
 				continue;
 
Signature · 1 line
2.25.1
Acked-by on v2 1/1
#3 lore raw
Quoted 13 lines · Miao Li

This patch adds a log in main telemetry loop to show the thread has woken up and begun to send and receive packets.

---
  examples/l3fwd-power/main.c | 3 +++
  1 file changed, 3 insertions(+)
examples/l3fwd-power/main.c +0 -0
index 6988a0ed34..547785dafb 100644

examples/l3fwd-power/main.c main_telemetry_loop(__rte_unused void *dummy) · line 1164

Quoted 9 lines
examples/l3fwd-power/main.c +3 -0
@@ -1156,6 +1156,9 @@ main_telemetry_loop(__rte_unused void *dummy)
  			ep_nep[nb_rx == 0]++;
  			fp_nfp[nb_rx == MAX_PKT_BURST]++;
  			poll_count++;
+			RTE_LOG(INFO, L3FWD_POWER,
+				"lcore %u has woken up on port %d queue %d\n",
+				rte_lcore_id(), portid, queueid);
  			if (unlikely(nb_rx == 0))
  				continue;
 
#5 lore raw

PATCH 1/1 examples/power: revert "add wakeup log"

In reply to Miao Li

This reverts commit 931e3a994597acb9ffa827376206e8aa324476b7.

Wakeup happens quite often (several hundred times a second) in l3fwd-power example app in PMD power management mode, so this message is appearing too often to be useful. This patch reverts that info message addition.

Fixes 931e3a994597 ("examples/l3fwd-power: add wakeup log")
---
 examples/l3fwd-power/main.c | 3 ---
 1 file changed, 3 deletions(-)
examples/l3fwd-power/main.c +0 -3
index 5c5825166d..b8b3be2b8a 100644
@@ -1156,9 +1156,6 @@ main_telemetry_loop(__rte_unused void *dummy)
 			ep_nep[nb_rx == 0]++;
 			fp_nfp[nb_rx == MAX_PKT_BURST]++;
 			poll_count++;
-			RTE_LOG(INFO, L3FWD_POWER,
-				"lcore %u has woken up on port %d queue %d\n",
-				rte_lcore_id(), portid, queueid);
 			if (unlikely(nb_rx == 0))
 				continue;
 
Signature · 1 line
2.17.1
Tested-by Acked-by on v1 1/1
#6 lore raw

RE: [PATCH] examples/power: revert "add wakeup log"

Quoted 6 lines

-----Original Message-----
From: David Hunt <[email protected]>
This reverts commit 931e3a994597acb9ffa827376206e8aa324476b7.

Quoted 7 lines

Wakeup happens quite often (several hundred times a second) in l3fwd-power example app in PMD power management mode, so this message is appearing too often to be useful. This patch reverts that info message addition.

Fixes 931e3a994597 ("examples/l3fwd-power: add wakeup log")
#7 lore raw

Re: [PATCH] examples/power: revert "add wakeup log"

24/11/2021 13:17, Pattan, Reshma:

Quoted 6 lines
Quoted 6 lines

From: David Hunt <[email protected]>
This reverts commit 931e3a994597acb9ffa827376206e8aa324476b7.

Wakeup happens quite often (several hundred times a second) in l3fwd-power example app in PMD power management mode, so this message is appearing too often to be useful.

It was my initial thought but I merged it anyway because you acked.

Quoted 7 lines
Quoted 5 lines

This patch reverts that info message addition.

Fixes 931e3a994597 ("examples/l3fwd-power: add wakeup log")

Applied