usertools/telemetry: fix unused parameter
PATCH 1/1 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.
--- usertools/dpdk-telemetry-client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
usertools/dpdk-telemetry-client.py +1 -1
@@ -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)
Signature · 1 line
2.25.1
Quoted 18 lines · Samina Arshad
This bug fix ensures that the runtime socket path is generated correctly, based on the user-specified
file_prefixvalue, resolving the issue that occurred in the previous implementation.Fixes a15fc792cfb6 ("usertools/telemetry: add file prefix argument")Signed-off-by Samina Arshad <[email protected]>--- usertools/dpdk-telemetry-client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)usertools/dpdk-telemetry-client.py +0
-0
usertools/dpdk-telemetry-client.py def getFilepath(self, file_path): · line 61
Quoted 8 lines
usertools/dpdk-telemetry-client.py +1
-1@@ -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?
Signature · 2 lines
Thanks, Anatoly
PATCH v2 1/1 usertools/telemetry: fix unused parameter
In reply to Samina ArshadThis 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.
---
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(-)
usertools/dpdk-telemetry-client.py +2 -2
@@ -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):
Signature · 1 line
2.25.1
Hi Samina,
Quoted 9 lines
-----Original Message-----
From: Arshad, Samina <[email protected]>
Sent: Tuesday 23 May 2023 15:39
To: y
Cc: Power, Ciara <[email protected]>; [email protected]; Kearney, Tadhg <[email protected]>; [email protected]; Arshad, Samina <[email protected]>; [email protected]
Subject: [PATCH v2] usertools/telemetry: fix unused parameter
Quoted 7 lines
This bug fix ensures that the runtime socket path is generated correctly, based on the user-specified
file_prefixvalue, resolving the issue that occurred in the previous implementation.Fixes a15fc792cfb6 ("usertools/telemetry: add file prefix argument")
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,
Quoted 6 lines
Signed-off-by Samina Arshad <[email protected]>---
v2:
Made changes for previous commit to be efficient. Removed "args" from "args.file_prefix".
<snip>
25/05/2023 15:34, Power, Ciara:
Quoted 7 lines
From: Arshad, Samina <[email protected]>
Quoted 3 lines
Fixes a15fc792cfb6 ("usertools/telemetry: add file prefix argument")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.
Quoted 19 lines
-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Thursday 1 June 2023 15:42
To: Arshad, Samina <[email protected]>; Power, Ciara <[email protected]>
Cc: [email protected]; Kearney, Tadhg <[email protected]>; [email protected]; [email protected]; Dooley, Brian <[email protected]>
Subject: Re: [PATCH v2] usertools/telemetry: fix unused parameter25/05/2023 15:34, Power, Ciara:
Quoted 6 lines
From: Arshad, Samina <[email protected]>
Quoted 4 lines
Fixes a15fc792cfb6 ("usertools/telemetry: add file prefixargument")
Cc: [email protected]
Cc: [email protected]
Quoted 9 lines
Quoted 1 line
No need for cc stable here because the bad commit was only introduced in
23.03 release.
Quoted 1 line
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!
PATCH v3 1/1 usertools/telemetry: fix unused parameter
In reply to Samina ArshadThis 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.
---
v2:
Made changes for previous commit to be efficient. Removed "args" from "args.file_prefix".
---
v3:
Edit commit body by removing [email protected] 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(-)
usertools/dpdk-telemetry-client.py +2 -2
@@ -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):
Signature · 1 line
2.25.1
Quoted 27 lines · Samina Arshad
This bug fix ensures that the runtime socket path is generated correctly, based on the user-specified
file_prefixvalue, resolving the issue that occurred in the previous implementation.Fixes a15fc792cfb6 ("usertools/telemetry: add file prefix argument")Signed-off-by Samina Arshad <[email protected]>Acked-by Ciara Power <[email protected]>---
v2:
Made changes for previous commit to be efficient. Removed "args" from "args.file_prefix".
---
v3:
Edit commit body by removing [email protected] 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(-)usertools/dpdk-telemetry-client.py +0
-0
usertools/dpdk-telemetry-client.py def getFilepath(self, file_path): · line 60
Quoted 8 lines
usertools/dpdk-telemetry-client.py +2
-2@@ -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.
Quoted 2 lines
usertools/dpdk-telemetry-client.py +0
-0def register(self):
Thomas Monjalon
Applied26/05/2023 05:41, lihuisong (C):
Quoted 4 lines · Samina Arshad
Quoted 3 lines
This bug fix ensures that the runtime socket path is generated correctly, based on the user-specified
file_prefixvalue, 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.
Quoted 7 lines
Quoted 6 lines
Fixes a15fc792cfb6 ("usertools/telemetry: add file prefix argument")Signed-off-by Samina Arshad <[email protected]>Acked-by Ciara Power <[email protected]>Acked-by [email protected]
Applied, thanks.