From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail04.ics.ntt-tx.co.jp (mail05.ics.ntt-tx.co.jp [210.232.35.69]) by dpdk.org (Postfix) with ESMTP id 585DD54AE for ; Fri, 21 Dec 2018 07:24:31 +0100 (CET) Received: from gwchk03.silk.ntt-tx.co.jp (gwchk03.silk.ntt-tx.co.jp [10.107.0.111]) by mail04.ics.ntt-tx.co.jp (unknown) with ESMTP id wBL6OTIe020821; Fri, 21 Dec 2018 15:24:29 +0900 Received: (from root@localhost) by gwchk03.silk.ntt-tx.co.jp (unknown) id wBL6OTgH031357; Fri, 21 Dec 2018 15:24:29 +0900 Received: from gwchk.silk.ntt-tx.co.jp [10.107.0.110] by gwchk03.silk.ntt-tx.co.jp with ESMTP id RAA30930; Fri, 21 Dec 2018 15:23:45 +0900 Received: from imss03.silk.ntt-tx.co.jp (localhost [127.0.0.1]) by imss03.silk.ntt-tx.co.jp (unknown) with ESMTP id wBL6NiTl008248; Fri, 21 Dec 2018 15:23:44 +0900 Received: from mgate01.silk.ntt-tx.co.jp (smtp02.silk.ntt-tx.co.jp [10.107.0.37]) by imss03.silk.ntt-tx.co.jp (unknown) with ESMTP id wBL6NiXF008245; Fri, 21 Dec 2018 15:23:44 +0900 Message-Id: <201812210623.wBL6NiXF008245@imss03.silk.ntt-tx.co.jp> Received: from localhost by mgate01.silk.ntt-tx.co.jp (unknown) id wBL6NiHZ021755 ; Fri, 21 Dec 2018 15:23:44 +0900 From: x-fn-spp@sl.ntt-tx.co.jp To: ferruh.yigit@intel.com, ogawa.yasufumi@lab.ntt.co.jp Cc: spp@dpdk.org Date: Fri, 21 Dec 2018 15:23:44 +0900 X-Mailer: git-send-email 2.18.0 X-TM-AS-MML: No Subject: [spp] [PATCH] spp_vf: change exit command to return response 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: Fri, 21 Dec 2018 06:24:31 -0000 From: Hideyuki Yamashita For secondary processes use common process_request(), it causes an error because spp-ctl expects a response but these processes do not return anything. This patch is to change it to return message. Signed-off-by: Hideyuki Yamashita Signed-off-by: Naoki Takada --- src/vf/common/command_proc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vf/common/command_proc.c b/src/vf/common/command_proc.c index cf35ce0..a612061 100644 --- a/src/vf/common/command_proc.c +++ b/src/vf/common/command_proc.c @@ -1600,8 +1600,10 @@ process_request(int *sock, const char *request_str, size_t request_str_len) if (request.is_requested_exit) { /* Terminated by process exit command. */ /* Other route is normal end because it responds to command. */ + set_command_results(&command_results[0], CRES_SUCCESS, ""); + send_command_result_response(sock, &request, command_results); RTE_LOG(INFO, SPP_COMMAND_PROC, - "No response with process exit command.\n"); + "Terminate process for exit.\n"); return SPP_RET_NG; } -- 2.17.1