[v2] examples/l3fwd-power: add wakeup log

Message ID 20211117103531.152630-1-miao.li@intel.com (mailing list archive)
State Accepted, archived
Headers
Series [v2] examples/l3fwd-power: add wakeup log |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK
ci/intel-Testing success Testing PASS
ci/github-robot: build success github build: passed
ci/iol-broadcom-Performance success Performance Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-broadcom-Functional success Functional Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-aarch64-unit-testing success Testing PASS
ci/iol-aarch64-compile-testing success Testing PASS
ci/iol-x86_64-unit-testing success Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-x86_64-compile-testing success Testing PASS

Commit Message

Li, Miao Nov. 17, 2021, 10:35 a.m. UTC
  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 <miao.li@intel.com>
---
 examples/l3fwd-power/main.c | 3 +++
 1 file changed, 3 insertions(+)
  

Comments

Hunt, David Nov. 17, 2021, 8:57 a.m. UTC | #1
On 17/11/2021 10:35 AM, Miao Li wrote:
> 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 <miao.li@intel.com>
> ---
>   examples/l3fwd-power/main.c | 3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c
> index 6988a0ed34..547785dafb 100644
> --- a/examples/l3fwd-power/main.c
> +++ b/examples/l3fwd-power/main.c
> @@ -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;
>   


Acked-by: David Hunt <david.hunt@intel.com>
  
Thomas Monjalon Nov. 17, 2021, 9:53 a.m. UTC | #2
17/11/2021 09:57, David Hunt:
> 
> On 17/11/2021 10:35 AM, Miao Li wrote:
> > 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 <miao.li@intel.com>
> 
> Acked-by: David Hunt <david.hunt@intel.com>

Applied, thanks.
  

Patch

diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c
index 6988a0ed34..547785dafb 100644
--- a/examples/l3fwd-power/main.c
+++ b/examples/l3fwd-power/main.c
@@ -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;