patches for DPDK stable branches
 help / color / mirror / Atom feed
From: Samina Arshad <samina.arshad@intel.com>
To: y@dpdk.org
Cc: ciara.power@intel.com, dev@dpdk.org, tadhg.kearney@intel.com,
	stable@dpdk.org, Samina Arshad <samina.arshad@intel.com>,
	lihuisong@huawei.com
Subject: [PATCH v2] usertools/telemetry: fix unused parameter
Date: Tue, 23 May 2023 14:38:55 +0000	[thread overview]
Message-ID: <20230523143855.218984-1-samina.arshad@intel.com> (raw)
In-Reply-To: <20230518134730.68538-1-samina.arshad@intel.com>

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


  reply	other threads:[~2023-05-30 15:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-18 13:47 [PATCH v1] " Samina Arshad
2023-05-23 14:38 ` Samina Arshad [this message]
2023-05-25 13:34   ` [PATCH v2] " Power, Ciara
2023-06-01 14:42     ` Thomas Monjalon
2023-06-01 14:52       ` Power, Ciara

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230523143855.218984-1-samina.arshad@intel.com \
    --to=samina.arshad@intel.com \
    --cc=ciara.power@intel.com \
    --cc=dev@dpdk.org \
    --cc=lihuisong@huawei.com \
    --cc=stable@dpdk.org \
    --cc=tadhg.kearney@intel.com \
    --cc=y@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).