* [spp] [PATCH] spp_vf: change exit command to return response
@ 2018-12-21 6:23 x-fn-spp
2018-12-25 7:46 ` Yasufumi Ogawa
0 siblings, 1 reply; 2+ messages in thread
From: x-fn-spp @ 2018-12-21 6:23 UTC (permalink / raw)
To: ferruh.yigit, ogawa.yasufumi; +Cc: spp
From: Hideyuki Yamashita <yamashita.hideyuki@po.ntt-tx.co.jp>
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 <yamashita.hideyuki@po.ntt-tx.co.jp>
Signed-off-by: Naoki Takada <takada.naoki@lab.ntt.co.jp>
---
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [spp] [PATCH] spp_vf: change exit command to return response
2018-12-21 6:23 [spp] [PATCH] spp_vf: change exit command to return response x-fn-spp
@ 2018-12-25 7:46 ` Yasufumi Ogawa
0 siblings, 0 replies; 2+ messages in thread
From: Yasufumi Ogawa @ 2018-12-25 7:46 UTC (permalink / raw)
To: x-fn-spp; +Cc: ferruh.yigit, spp
> From: Hideyuki Yamashita <yamashita.hideyuki@po.ntt-tx.co.jp>
>
> 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.
Applied, thanks.
>
> 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/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;
> }
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-12-25 7:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-21 6:23 [spp] [PATCH] spp_vf: change exit command to return response x-fn-spp
2018-12-25 7:46 ` Yasufumi Ogawa
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).