From: x-fn-spp@sl.ntt-tx.co.jp
To: ferruh.yigit@intel.com, ogawa.yasufumi@lab.ntt.co.jp
Cc: spp@dpdk.org
Subject: [spp] [PATCH 2/3] spp_vf: improve command response time
Date: Fri, 11 Jan 2019 13:27:42 +0900 [thread overview]
Message-ID: <201901110427.x0B4RhJZ023488@imss03.silk.ntt-tx.co.jp> (raw)
In-Reply-To: <20190111042743.22673-1-x-fn-spp@sl.ntt-tx.co.jp>
From: Hideyuki Yamashita <yamashita.hideyuki@po.ntt-tx.co.jp>
This patch improves command response time of spp_vf.
Signed-off-by: Hideyuki Yamashita <yamashita.hideyuki@po.ntt-tx.co.jp>
Signed-off-by: Naoki Takada <takada.naoki@lab.ntt.co.jp>
---
src/vf/spp_vf.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/vf/spp_vf.c b/src/vf/spp_vf.c
index 4e4a8e1..b81ad11 100644
--- a/src/vf/spp_vf.c
+++ b/src/vf/spp_vf.c
@@ -349,7 +349,12 @@ main(int argc, char *argv[])
if (unlikely(ret_do != SPP_RET_OK))
break;
- sleep(1);
+ /*
+ * To avoid making CPU busy, this thread waits
+ * here for 100 ms.
+ */
+
+ usleep(100);
#ifdef SPP_RINGLATENCYSTATS_ENABLE
print_ring_latency_stats();
--
2.17.1
next prev parent reply other threads:[~2019-01-11 4:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20190111042743.22673-1-x-fn-spp@sl.ntt-tx.co.jp>
2019-01-11 4:27 ` [spp] [PATCH 1/3] spp_vf: add sleep after disconnect detection x-fn-spp
2019-01-11 4:27 ` x-fn-spp [this message]
2019-01-11 4:27 ` [spp] [PATCH 3/3] spp_mirror: improve command response time x-fn-spp
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=201901110427.x0B4RhJZ023488@imss03.silk.ntt-tx.co.jp \
--to=x-fn-spp@sl.ntt-tx.co.jp \
--cc=ferruh.yigit@intel.com \
--cc=ogawa.yasufumi@lab.ntt.co.jp \
--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).