From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 276B7A05D3 for ; Tue, 21 May 2019 04:34:33 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 14E075589; Tue, 21 May 2019 04:34:33 +0200 (CEST) Received: from tama50.ecl.ntt.co.jp (tama50.ecl.ntt.co.jp [129.60.39.147]) by dpdk.org (Postfix) with ESMTP id 4188D4C88 for ; Tue, 21 May 2019 04:34:31 +0200 (CEST) Received: from vc1.ecl.ntt.co.jp (vc1.ecl.ntt.co.jp [129.60.86.153]) by tama50.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id x4L2YUN8003206; Tue, 21 May 2019 11:34:30 +0900 Received: from vc1.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id 1B847EA783F; Tue, 21 May 2019 11:34:30 +0900 (JST) Received: from localhost.localdomain (lobster.nslab.ecl.ntt.co.jp [129.60.13.95]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id 0A98BEA79C3; Tue, 21 May 2019 11:34:30 +0900 (JST) From: ogawa.yasufumi@lab.ntt.co.jp To: spp@dpdk.org, ferruh.yigit@intel.com, ogawa.yasufumi@lab.ntt.co.jp Date: Tue, 21 May 2019 11:32:02 +0900 Message-Id: <1558405924-8303-5-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1558405924-8303-1-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> References: <1558405924-8303-1-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> X-TM-AS-MML: disable Subject: [spp] [PATCH 4/6] shared/sec: rename func for parsing lcore ID 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: , Errors-To: spp-bounces@dpdk.org Sender: "spp" From: Yasufumi Ogawa This update is to rename function for parsing lcore ID `decode_component_core_value()` in which the lcore vaule is not understandable to `parse_comp_lcore_id()`. Signed-off-by: Yasufumi Ogawa --- src/shared/secondary/spp_worker_th/cmd_parser.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/shared/secondary/spp_worker_th/cmd_parser.c b/src/shared/secondary/spp_worker_th/cmd_parser.c index cf6c4a1..b03f9b8 100644 --- a/src/shared/secondary/spp_worker_th/cmd_parser.c +++ b/src/shared/secondary/spp_worker_th/cmd_parser.c @@ -350,14 +350,14 @@ parse_comp_name(void *output, const char *arg_val, return SPP_RET_OK; } -/* decoding procedure of core id for component command */ +/* Parse given lcore ID of `arg_val` of component. */ static int -decode_component_core_value(void *output, const char *arg_val, +parse_comp_lcore_id(void *output, const char *arg_val, int allow_override __attribute__ ((unused))) { struct sppwk_cmd_comp *component = output; - /* "stop" has no core ID parameter. */ + /* Parsing lcore is required only for action `start`. */ if (component->wk_action != SPPWK_ACT_START) return SPP_RET_OK; @@ -808,7 +808,7 @@ cmd_ops_list[][SPPWK_MAX_PARAMS] = { { .name = "core", .offset = offsetof(struct spp_command, spec.comp), - .func = decode_component_core_value + .func = parse_comp_lcore_id }, { .name = "component type", -- 2.17.1