From: ogawa.yasufumi@lab.ntt.co.jp
To: spp@dpdk.org, ferruh.yigit@intel.com, ogawa.yasufumi@lab.ntt.co.jp
Subject: [spp] [PATCH 1/2] spp_nfv: add master lcore in status msg
Date: Wed, 8 May 2019 10:59:28 +0900 [thread overview]
Message-ID: <1557280769-7569-2-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> (raw)
In-Reply-To: <1557280769-7569-1-git-send-email-ogawa.yasufumi@lab.ntt.co.jp>
From: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
To know which one is master lcore is required for considering core
assignment if master is shared among mulit processes. This update is to
add master lcore ID in response of status command.
Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
---
src/nfv/nfv_status.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/nfv/nfv_status.c b/src/nfv/nfv_status.c
index d29e083..7e3dbd4 100644
--- a/src/nfv/nfv_status.c
+++ b/src/nfv/nfv_status.c
@@ -55,6 +55,8 @@ append_lcore_info_json(char *str,
uint8_t lcore_id_used[RTE_MAX_LCORE])
{
int i;
+ sprintf(str + strlen(str), "\"master-lcore\":%d,",
+ rte_get_master_lcore());
sprintf(str + strlen(str), "\"lcores\":[");
for (i = 0; i < RTE_MAX_LCORE; i++) {
if (lcore_id_used[i] == 1)
--
2.17.1
next prev parent reply other threads:[~2019-05-08 2:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-08 1:59 [spp] [PATCH 0/2] Get spp_nfv's master lcore ID in status ogawa.yasufumi
2019-05-08 1:59 ` ogawa.yasufumi [this message]
2019-05-08 1:59 ` [spp] [PATCH 2/2] controller: update paring lcores for master ogawa.yasufumi
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=1557280769-7569-2-git-send-email-ogawa.yasufumi@lab.ntt.co.jp \
--to=ogawa.yasufumi@lab.ntt.co.jp \
--cc=ferruh.yigit@intel.com \
--cc=spp@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).