DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH v1] usertools/telemetry: fix unused parameter
@ 2023-05-18 13:47 Samina Arshad
  2023-05-22  9:29 ` Burakov, Anatoly
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Samina Arshad @ 2023-05-18 13:47 UTC (permalink / raw)
  To: Ciara Power; +Cc: dev, tadhg.kearney, stable, Samina Arshad, lihuisong

This bug fix ensures that the runtime socket path is generated
correctly, based on the user-specified file_prefix value,
resolving the issue that occurred in the previous implementation.

Fixes: a15fc792cfb6 ("usertools/telemetry: add file prefix argument")
Cc: lihuisong@huawei.com
Cc: stable@dpdk.org

Signed-off-by: Samina Arshad <samina.arshad@intel.com>
---
 usertools/dpdk-telemetry-client.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usertools/dpdk-telemetry-client.py b/usertools/dpdk-telemetry-client.py
index d6718ca5b0..3441b6b02e 100755
--- a/usertools/dpdk-telemetry-client.py
+++ b/usertools/dpdk-telemetry-client.py
@@ -55,7 +55,7 @@ def getFilepath(self, file_path):
         # Gets arguments from Command-Line and assigns to instance of client
         self.file_path = file_path
 
-    def setRunpath(self, file_path):
+    def setRunpath(self, file_prefix):
         self.run_path = os.path.join(get_dpdk_runtime_dir(args.file_prefix),
                                      RUNTIME_SOCKET_NAME)
 
-- 
2.25.1


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

* Re: [PATCH v1] usertools/telemetry: fix unused parameter
  2023-05-18 13:47 [PATCH v1] usertools/telemetry: fix unused parameter Samina Arshad
@ 2023-05-22  9:29 ` Burakov, Anatoly
  2023-05-23 14:38 ` [PATCH v2] " Samina Arshad
  2023-05-25 15:50 ` [PATCH v3] " Samina Arshad
  2 siblings, 0 replies; 9+ messages in thread
From: Burakov, Anatoly @ 2023-05-22  9:29 UTC (permalink / raw)
  To: dev

On 5/18/2023 2:47 PM, Samina Arshad wrote:
> This bug fix ensures that the runtime socket path is generated
> correctly, based on the user-specified file_prefix value,
> resolving the issue that occurred in the previous implementation.
> 
> Fixes: a15fc792cfb6 ("usertools/telemetry: add file prefix argument")
> Cc: lihuisong@huawei.com
> Cc: stable@dpdk.org
> 
> Signed-off-by: Samina Arshad <samina.arshad@intel.com>
> ---
>   usertools/dpdk-telemetry-client.py | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/usertools/dpdk-telemetry-client.py b/usertools/dpdk-telemetry-client.py
> index d6718ca5b0..3441b6b02e 100755
> --- a/usertools/dpdk-telemetry-client.py
> +++ b/usertools/dpdk-telemetry-client.py
> @@ -55,7 +55,7 @@ def getFilepath(self, file_path):
>           # Gets arguments from Command-Line and assigns to instance of client
>           self.file_path = file_path
>   
> -    def setRunpath(self, file_path):
> +    def setRunpath(self, file_prefix):
>           self.run_path = os.path.join(get_dpdk_runtime_dir(args.file_prefix),
>                                        RUNTIME_SOCKET_NAME)
>   

Does this fix anything? The path is generated from args.file_prefix 
anyway, so this change will have no effect, I think?

-- 
Thanks,
Anatoly


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

* [PATCH v2] usertools/telemetry: fix unused parameter
  2023-05-18 13:47 [PATCH v1] usertools/telemetry: fix unused parameter Samina Arshad
  2023-05-22  9:29 ` Burakov, Anatoly
@ 2023-05-23 14:38 ` Samina Arshad
  2023-05-25 13:34   ` Power, Ciara
  2023-05-25 15:50 ` [PATCH v3] " Samina Arshad
  2 siblings, 1 reply; 9+ messages in thread
From: Samina Arshad @ 2023-05-23 14:38 UTC (permalink / raw)
  To: y; +Cc: ciara.power, dev, tadhg.kearney, stable, Samina Arshad, lihuisong

This bug fix ensures that the runtime socket path is generated
correctly, based on the user-specified file_prefix value,
resolving the issue that occurred in the previous implementation.

Fixes: a15fc792cfb6 ("usertools/telemetry: add file prefix argument")
Cc: lihuisong@huawei.com
Cc: stable@dpdk.org

Signed-off-by: Samina Arshad <samina.arshad@intel.com>
---
v2:
Made changes for previous commit to be efficient. Removed
"args" from "args.file_prefix".
---
---
 usertools/dpdk-telemetry-client.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/usertools/dpdk-telemetry-client.py b/usertools/dpdk-telemetry-client.py
index d6718ca5b0..e3bb1c9ee0 100755
--- a/usertools/dpdk-telemetry-client.py
+++ b/usertools/dpdk-telemetry-client.py
@@ -55,8 +55,8 @@ def getFilepath(self, file_path):
         # Gets arguments from Command-Line and assigns to instance of client
         self.file_path = file_path
 
-    def setRunpath(self, file_path):
-        self.run_path = os.path.join(get_dpdk_runtime_dir(args.file_prefix),
+    def setRunpath(self, file_prefix):
+        self.run_path = os.path.join(get_dpdk_runtime_dir(file_prefix),
                                      RUNTIME_SOCKET_NAME)
 
     def register(self):
-- 
2.25.1


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

* RE: [PATCH v2] usertools/telemetry: fix unused parameter
  2023-05-23 14:38 ` [PATCH v2] " Samina Arshad
@ 2023-05-25 13:34   ` Power, Ciara
  2023-06-01 14:42     ` Thomas Monjalon
  0 siblings, 1 reply; 9+ messages in thread
From: Power, Ciara @ 2023-05-25 13:34 UTC (permalink / raw)
  To: Arshad, Samina; +Cc: dev, Kearney, Tadhg, stable, lihuisong, Dooley, Brian

Hi Samina,

> -----Original Message-----
> From: Arshad, Samina <samina.arshad@intel.com>
> Sent: Tuesday 23 May 2023 15:39
> To: y
> Cc: Power, Ciara <ciara.power@intel.com>; dev@dpdk.org; Kearney, Tadhg
> <tadhg.kearney@intel.com>; stable@dpdk.org; Arshad, Samina
> <samina.arshad@intel.com>; lihuisong@huawei.com
> Subject: [PATCH v2] usertools/telemetry: fix unused parameter
> 
> This bug fix ensures that the runtime socket path is generated correctly, based
> on the user-specified file_prefix value, resolving the issue that occurred in the
> previous implementation.
> 
> Fixes: a15fc792cfb6 ("usertools/telemetry: add file prefix argument")
> Cc: lihuisong@huawei.com
> Cc: stable@dpdk.org

No need for cc stable here because the bad commit was only introduced in 23.03 release.
That means we don't need the fix to be backported to 21.11 or 22.11, as the bug didn't exist in those releases.

+1 for code changes though,

Acked-by: Ciara Power <ciara.power@intel.com>

> 
> Signed-off-by: Samina Arshad <samina.arshad@intel.com>
> ---
> v2:
> Made changes for previous commit to be efficient. Removed "args" from
> "args.file_prefix".
<snip>

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

* [PATCH v3] usertools/telemetry: fix unused parameter
  2023-05-18 13:47 [PATCH v1] usertools/telemetry: fix unused parameter Samina Arshad
  2023-05-22  9:29 ` Burakov, Anatoly
  2023-05-23 14:38 ` [PATCH v2] " Samina Arshad
@ 2023-05-25 15:50 ` Samina Arshad
  2023-05-26  3:41   ` lihuisong (C)
  2 siblings, 1 reply; 9+ messages in thread
From: Samina Arshad @ 2023-05-25 15:50 UTC (permalink / raw)
  To: dev; +Cc: ciara.power, tadhg.kearney, Samina Arshad, lihuisong

This bug fix ensures that the runtime socket path is generated
correctly, based on the user-specified file_prefix value,
resolving the issue that occurred in the previous implementation.

Fixes: a15fc792cfb6 ("usertools/telemetry: add file prefix argument")
Cc: lihuisong@huawei.com

Signed-off-by: Samina Arshad <samina.arshad@intel.com>
Acked-by: Ciara Power <ciara.power@intel.com>
---
v2:
Made changes for previous commit to be efficient. Removed
"args" from "args.file_prefix".
---
v3:
Edit commit body by removing stable@dpdk.org from cc as
the fix is not needed to be backported to 21.11 or 22.11.
---
---
 usertools/dpdk-telemetry-client.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/usertools/dpdk-telemetry-client.py b/usertools/dpdk-telemetry-client.py
index d6718ca5b0..e3bb1c9ee0 100755
--- a/usertools/dpdk-telemetry-client.py
+++ b/usertools/dpdk-telemetry-client.py
@@ -55,8 +55,8 @@ def getFilepath(self, file_path):
         # Gets arguments from Command-Line and assigns to instance of client
         self.file_path = file_path
 
-    def setRunpath(self, file_path):
-        self.run_path = os.path.join(get_dpdk_runtime_dir(args.file_prefix),
+    def setRunpath(self, file_prefix):
+        self.run_path = os.path.join(get_dpdk_runtime_dir(file_prefix),
                                      RUNTIME_SOCKET_NAME)
 
     def register(self):
-- 
2.25.1


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

* Re: [PATCH v3] usertools/telemetry: fix unused parameter
  2023-05-25 15:50 ` [PATCH v3] " Samina Arshad
@ 2023-05-26  3:41   ` lihuisong (C)
  2023-06-01 14:56     ` Thomas Monjalon
  0 siblings, 1 reply; 9+ messages in thread
From: lihuisong (C) @ 2023-05-26  3:41 UTC (permalink / raw)
  To: Samina Arshad, dev; +Cc: ciara.power, tadhg.kearney


在 2023/5/25 23:50, Samina Arshad 写道:
> This bug fix ensures that the runtime socket path is generated
> correctly, based on the user-specified file_prefix value,
> resolving the issue that occurred in the previous implementation.
>
> Fixes: a15fc792cfb6 ("usertools/telemetry: add file prefix argument")
> Cc: lihuisong@huawei.com
>
> Signed-off-by: Samina Arshad <samina.arshad@intel.com>
> Acked-by: Ciara Power <ciara.power@intel.com>
> ---
> v2:
> Made changes for previous commit to be efficient. Removed
> "args" from "args.file_prefix".
> ---
> v3:
> Edit commit body by removing stable@dpdk.org from cc as
> the fix is not needed to be backported to 21.11 or 22.11.
> ---
> ---
>   usertools/dpdk-telemetry-client.py | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/usertools/dpdk-telemetry-client.py b/usertools/dpdk-telemetry-client.py
> index d6718ca5b0..e3bb1c9ee0 100755
> --- a/usertools/dpdk-telemetry-client.py
> +++ b/usertools/dpdk-telemetry-client.py
> @@ -55,8 +55,8 @@ def getFilepath(self, file_path):
>           # Gets arguments from Command-Line and assigns to instance of client
>           self.file_path = file_path
>   
> -    def setRunpath(self, file_path):
> -        self.run_path = os.path.join(get_dpdk_runtime_dir(args.file_prefix),
> +    def setRunpath(self, file_prefix):
> +        self.run_path = os.path.join(get_dpdk_runtime_dir(file_prefix),
>                                        RUNTIME_SOCKET_NAME)

Apologise for the mistake.

Acked-by: lihuisong@huawei.com

>   
>       def register(self):

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

* Re: [PATCH v2] usertools/telemetry: fix unused parameter
  2023-05-25 13:34   ` Power, Ciara
@ 2023-06-01 14:42     ` Thomas Monjalon
  2023-06-01 14:52       ` Power, Ciara
  0 siblings, 1 reply; 9+ messages in thread
From: Thomas Monjalon @ 2023-06-01 14:42 UTC (permalink / raw)
  To: Arshad, Samina, Power, Ciara
  Cc: dev, Kearney, Tadhg, stable, lihuisong, Dooley, Brian

25/05/2023 15:34, Power, Ciara:
> From: Arshad, Samina <samina.arshad@intel.com>
> > Fixes: a15fc792cfb6 ("usertools/telemetry: add file prefix argument")
> > Cc: lihuisong@huawei.com
> > Cc: stable@dpdk.org
> 
> No need for cc stable here because the bad commit was only introduced in 23.03 release.
> That means we don't need the fix to be backported to 21.11 or 22.11, as the bug didn't exist in those releases.

We need to Cc: stable as long as the bug is in a different release.
It will not trigger a backport for upstream releases,
but it could help someone maintaining 23.03 for a specific purpose.




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

* RE: [PATCH v2] usertools/telemetry: fix unused parameter
  2023-06-01 14:42     ` Thomas Monjalon
@ 2023-06-01 14:52       ` Power, Ciara
  0 siblings, 0 replies; 9+ messages in thread
From: Power, Ciara @ 2023-06-01 14:52 UTC (permalink / raw)
  To: Thomas Monjalon, Arshad, Samina
  Cc: dev, Kearney, Tadhg, stable, lihuisong, Dooley, Brian



> -----Original Message-----
> From: Thomas Monjalon <thomas@monjalon.net>
> Sent: Thursday 1 June 2023 15:42
> To: Arshad, Samina <samina.arshad@intel.com>; Power, Ciara
> <ciara.power@intel.com>
> Cc: dev@dpdk.org; Kearney, Tadhg <tadhg.kearney@intel.com>;
> stable@dpdk.org; lihuisong@huawei.com; Dooley, Brian
> <brian.dooley@intel.com>
> Subject: Re: [PATCH v2] usertools/telemetry: fix unused parameter
> 
> 25/05/2023 15:34, Power, Ciara:
> > From: Arshad, Samina <samina.arshad@intel.com>
> > > Fixes: a15fc792cfb6 ("usertools/telemetry: add file prefix
> > > argument")
> > > Cc: lihuisong@huawei.com
> > > Cc: stable@dpdk.org
> >
> > No need for cc stable here because the bad commit was only introduced in
> 23.03 release.
> > That means we don't need the fix to be backported to 21.11 or 22.11, as the
> bug didn't exist in those releases.
> 
> We need to Cc: stable as long as the bug is in a different release.
> It will not trigger a backport for upstream releases, but it could help someone
> maintaining 23.03 for a specific purpose.
> 

Ah - didn't realise that. Noted, thanks Thomas!




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

* Re: [PATCH v3] usertools/telemetry: fix unused parameter
  2023-05-26  3:41   ` lihuisong (C)
@ 2023-06-01 14:56     ` Thomas Monjalon
  0 siblings, 0 replies; 9+ messages in thread
From: Thomas Monjalon @ 2023-06-01 14:56 UTC (permalink / raw)
  To: Samina Arshad; +Cc: dev, ciara.power, tadhg.kearney, lihuisong (C)

26/05/2023 05:41, lihuisong (C):
> 在 2023/5/25 23:50, Samina Arshad 写道:
> > This bug fix ensures that the runtime socket path is generated
> > correctly, based on the user-specified file_prefix value,
> > resolving the issue that occurred in the previous implementation.

In general we require to describe the issue,
but I'll accept this one as it is simple enough.

> >
> > Fixes: a15fc792cfb6 ("usertools/telemetry: add file prefix argument")
> > Cc: lihuisong@huawei.com
> >
> > Signed-off-by: Samina Arshad <samina.arshad@intel.com>
> > Acked-by: Ciara Power <ciara.power@intel.com>
> Acked-by: lihuisong@huawei.com

Applied, thanks.



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

end of thread, other threads:[~2023-06-01 14:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-18 13:47 [PATCH v1] usertools/telemetry: fix unused parameter Samina Arshad
2023-05-22  9:29 ` Burakov, Anatoly
2023-05-23 14:38 ` [PATCH v2] " Samina Arshad
2023-05-25 13:34   ` Power, Ciara
2023-06-01 14:42     ` Thomas Monjalon
2023-06-01 14:52       ` Power, Ciara
2023-05-25 15:50 ` [PATCH v3] " Samina Arshad
2023-05-26  3:41   ` lihuisong (C)
2023-06-01 14:56     ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).