Soft Patch Panel
 help / color / mirror / Atom feed
* [spp] [PATCH 0/4] Fix bug of fixing slow command reply
@ 2019-01-15  3:29 ogawa.yasufumi
  2019-01-15  3:29 ` [spp] [PATCH 1/4] shared: define interval time to retry connection ogawa.yasufumi
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ogawa.yasufumi @ 2019-01-15  3:29 UTC (permalink / raw)
  To: ferruh.yigit, spp, ogawa.yasufumi

From: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>

This update is to fix incorrect fixing of slow command reply for spp_vf
and spp_mirror. It was applied as following updates, but not fixed the
problem.

* ab5183201c02 ("spp_vf: add sleep after disconnection detection")
* 5eea2dfa5420 ("fix slow response of command")

To reduce time for making command reply, replace sleep(1) to usleep(100)
for, and add another sleep(1) to avoid sending too much requests if sock
is closed and retry in previous patches. However, response is still slow
because the place of added sleep(1) is incorrect.

This series of update is to fix the problem. It also includes a
definition of interval time `CONN_RETRY_USEC` to be configured in micro
sec.

Yasufumi Ogawa (4):
  shared: define interval time to retry connection
  primary: change interval to retry connection
  spp_nfv: change interval to retry connection
  spp_vf: fix bug of fixing slow command reply

 src/nfv/main.c               | 2 +-
 src/primary/main.c           | 2 +-
 src/shared/common.h          | 3 +++
 src/vf/common/command_conn.c | 4 ++++
 src/vf/common/command_proc.c | 9 ++++-----
 src/vf/spp_vf.c              | 4 +---
 6 files changed, 14 insertions(+), 10 deletions(-)

-- 
2.17.1

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

end of thread, other threads:[~2019-01-15  3:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-15  3:29 [spp] [PATCH 0/4] Fix bug of fixing slow command reply ogawa.yasufumi
2019-01-15  3:29 ` [spp] [PATCH 1/4] shared: define interval time to retry connection ogawa.yasufumi
2019-01-15  3:29 ` [spp] [PATCH 2/4] primary: change interval " ogawa.yasufumi
2019-01-15  3:29 ` [spp] [PATCH 3/4] spp_nfv: " ogawa.yasufumi
2019-01-15  3:29 ` [spp] [PATCH 4/4] spp_vf: fix bug of fixing slow command reply ogawa.yasufumi

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).