From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from tama500.ecl.ntt.co.jp (tama500.ecl.ntt.co.jp [129.60.39.148]) by dpdk.org (Postfix) with ESMTP id A7BBA493D for ; Tue, 15 Jan 2019 04:31:22 +0100 (CET) Received: from vc2.ecl.ntt.co.jp (vc2.ecl.ntt.co.jp [129.60.86.154]) by tama500.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id x0F3VLBo024459; Tue, 15 Jan 2019 12:31:21 +0900 Received: from vc2.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id 21ECA638A7F; Tue, 15 Jan 2019 12:31:21 +0900 (JST) Received: from localhost.localdomain (lobster.nslab.ecl.ntt.co.jp [129.60.13.95]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id 0A4CC63867B; Tue, 15 Jan 2019 12:31:21 +0900 (JST) From: ogawa.yasufumi@lab.ntt.co.jp To: ferruh.yigit@intel.com, spp@dpdk.org, ogawa.yasufumi@lab.ntt.co.jp Date: Tue, 15 Jan 2019 12:29:04 +0900 Message-Id: <1547522948-10285-1-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> X-Mailer: git-send-email 2.7.4 X-TM-AS-MML: disable Subject: [spp] [PATCH 0/4] Fix bug of fixing slow command reply X-BeenThere: spp@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Soft Patch Panel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2019 03:31:23 -0000 From: Yasufumi Ogawa 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