examples/l3fwd-power: add wakeup log
authorMiao Li <miao.li@intel.com>
Wed, 17 Nov 2021 10:35:31 +0000 (10:35 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 17 Nov 2021 09:52:27 +0000 (10:52 +0100)
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>
examples/l3fwd-power/main.c

index b8b3be2..5c58251 100644 (file)
@@ -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;