DPDK patches and discussions
 help / color / mirror / Atom feed
* Re: [PATCH v1] examples/l3fwd-power: add wakeup log
  2021-11-16 13:00 [PATCH v1] examples/l3fwd-power: add wakeup log Miao Li
@ 2021-11-16  9:14 ` David Hunt
  2021-11-17 10:35 ` [PATCH v2] " Miao Li
  1 sibling, 0 replies; 8+ messages in thread
From: David Hunt @ 2021-11-16  9:14 UTC (permalink / raw)
  To: Miao Li, dev

[-- Attachment #1: Type: text/plain, Size: 913 bytes --]

Hi Li,

On 16/11/2021 1:00 PM, Miao Li wrote:
> 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 <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..b8c020fb91 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 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.


[-- Attachment #2: Type: text/html, Size: 1359 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v1] examples/l3fwd-power: add wakeup log
@ 2021-11-16 13:00 Miao Li
  2021-11-16  9:14 ` David Hunt
  2021-11-17 10:35 ` [PATCH v2] " Miao Li
  0 siblings, 2 replies; 8+ messages in thread
From: Miao Li @ 2021-11-16 13:00 UTC (permalink / raw)
  To: dev; +Cc: david.hunt

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 <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..b8c020fb91 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 is waked up on port %d queue %d\n",
+				rte_lcore_id(), portid, queueid);
 			if (unlikely(nb_rx == 0))
 				continue;
 
-- 
2.25.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2] examples/l3fwd-power: add wakeup log
  2021-11-17 10:35 ` [PATCH v2] " Miao Li
@ 2021-11-17  8:57   ` David Hunt
  2021-11-17  9:53     ` Thomas Monjalon
  2021-11-23 15:57   ` [PATCH] examples/power: revert "add wakeup log" David Hunt
  1 sibling, 1 reply; 8+ messages in thread
From: David Hunt @ 2021-11-17  8:57 UTC (permalink / raw)
  To: Miao Li, dev; +Cc: bruce.richardson


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>




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2] examples/l3fwd-power: add wakeup log
  2021-11-17  8:57   ` David Hunt
@ 2021-11-17  9:53     ` Thomas Monjalon
  0 siblings, 0 replies; 8+ messages in thread
From: Thomas Monjalon @ 2021-11-17  9:53 UTC (permalink / raw)
  To: Miao Li; +Cc: dev, bruce.richardson, David Hunt

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.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v2] examples/l3fwd-power: add wakeup log
  2021-11-16 13:00 [PATCH v1] examples/l3fwd-power: add wakeup log Miao Li
  2021-11-16  9:14 ` David Hunt
@ 2021-11-17 10:35 ` Miao Li
  2021-11-17  8:57   ` David Hunt
  2021-11-23 15:57   ` [PATCH] examples/power: revert "add wakeup log" David Hunt
  1 sibling, 2 replies; 8+ messages in thread
From: Miao Li @ 2021-11-17 10:35 UTC (permalink / raw)
  To: dev; +Cc: david.hunt, bruce.richardson

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;
 
-- 
2.25.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH] examples/power: revert "add wakeup log"
  2021-11-17 10:35 ` [PATCH v2] " Miao Li
  2021-11-17  8:57   ` David Hunt
@ 2021-11-23 15:57   ` David Hunt
  2021-11-24 12:17     ` Pattan, Reshma
  1 sibling, 1 reply; 8+ messages in thread
From: David Hunt @ 2021-11-23 15:57 UTC (permalink / raw)
  To: dev; +Cc: david.hunt, bruce.richardson, 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")

Signed-off-by: David Hunt <david.hunt@intel.com>
---
 examples/l3fwd-power/main.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c
index 5c5825166d..b8b3be2b8a 100644
--- a/examples/l3fwd-power/main.c
+++ b/examples/l3fwd-power/main.c
@@ -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;
 
-- 
2.17.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [PATCH] examples/power: revert "add wakeup log"
  2021-11-23 15:57   ` [PATCH] examples/power: revert "add wakeup log" David Hunt
@ 2021-11-24 12:17     ` Pattan, Reshma
  2021-11-24 13:02       ` Thomas Monjalon
  0 siblings, 1 reply; 8+ messages in thread
From: Pattan, Reshma @ 2021-11-24 12:17 UTC (permalink / raw)
  To: Hunt, David, dev; +Cc: Hunt, David, Richardson, Bruce, Li, Miao



> -----Original Message-----
> From: David Hunt <david.hunt@intel.com>
> 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")
> 
> Signed-off-by: David Hunt <david.hunt@intel.com>
Tested-by: Reshma Pattan <reshma.pattan@intel.com>
Acked-by: Reshma Pattan <reshma.pattan@intel.com>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] examples/power: revert "add wakeup log"
  2021-11-24 12:17     ` Pattan, Reshma
@ 2021-11-24 13:02       ` Thomas Monjalon
  0 siblings, 0 replies; 8+ messages in thread
From: Thomas Monjalon @ 2021-11-24 13:02 UTC (permalink / raw)
  To: Hunt, David
  Cc: dev, Richardson, Bruce, Li, Miao, Pattan, Reshma, david.marchand

24/11/2021 13:17, Pattan, Reshma:
> > From: David Hunt <david.hunt@intel.com>
> > 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.

> > This patch reverts that info message addition.
> > 
> > Fixes: 931e3a994597 ("examples/l3fwd-power: add wakeup log")
> > 
> > Signed-off-by: David Hunt <david.hunt@intel.com>
> Tested-by: Reshma Pattan <reshma.pattan@intel.com>
> Acked-by: Reshma Pattan <reshma.pattan@intel.com>

Applied



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-11-24 13:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-16 13:00 [PATCH v1] examples/l3fwd-power: add wakeup log Miao Li
2021-11-16  9:14 ` David Hunt
2021-11-17 10:35 ` [PATCH v2] " Miao Li
2021-11-17  8:57   ` David Hunt
2021-11-17  9:53     ` Thomas Monjalon
2021-11-23 15:57   ` [PATCH] examples/power: revert "add wakeup log" David Hunt
2021-11-24 12:17     ` Pattan, Reshma
2021-11-24 13:02       ` Thomas Monjalon

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ http://inbox.dpdk.org/dev \
		dev@dpdk.org
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git