examples/l3fwd-power: add wakeup log
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
@@ -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
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.
Signed-off-by Miao Li <[email protected]>--- examples/l3fwd-power/main.c | 3 +++ 1 file changed, 3 insertions(+)examples/l3fwd-power/main.c +0
-0
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.
PATCH v2 1/1 examples/l3fwd-power: add wakeup log
In reply to Miao LiThis 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
@@ -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
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.
Signed-off-by Miao Li <[email protected]>--- examples/l3fwd-power/main.c | 3 +++ 1 file changed, 3 insertions(+)examples/l3fwd-power/main.c +0
-0
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 ;
Thomas Monjalon
Applied17/11/2021 09:57, David Hunt:
Quoted 8 lines · Miao Li
Quoted 4 lines
This patch adds a log in main telemetry loop to show the thread has woken up and begun to send and receive packets.
Signed-off-by Miao Li <[email protected]>Acked-by David Hunt <[email protected]>
Applied, thanks.
PATCH 1/1 examples/power: revert "add wakeup log"
In reply to Miao LiThis 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.
--- examples/l3fwd-power/main.c | 3 --- 1 file changed, 3 deletions(-)
examples/l3fwd-power/main.c +0 -3
@@ -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
RE: [PATCH] examples/power: revert "add wakeup log"
Quoted 6 lines
-----Original Message-----
From: David Hunt <[email protected]>
This reverts commit931e3a994597acb9ffa827376206e8aa324476b7.
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")Signed-off-by David Hunt <[email protected]>
Thomas Monjalon
AppliedRe: [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 commit931e3a994597acb9ffa827376206e8aa324476b7.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")Signed-off-by David Hunt <[email protected]>Tested-by Reshma Pattan <[email protected]>Acked-by Reshma Pattan <[email protected]>
Applied