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 C784C1B3B7 for ; Thu, 31 Jan 2019 04:07:57 +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 x0V37uPG019809; Thu, 31 Jan 2019 12:07:56 +0900 Received: from vc2.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id 54734638A2E; Thu, 31 Jan 2019 12:07:56 +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 4638763893E; Thu, 31 Jan 2019 12:07:56 +0900 (JST) From: ogawa.yasufumi@lab.ntt.co.jp To: ferruh.yigit@intel.com, spp@dpdk.org, ogawa.yasufumi@lab.ntt.co.jp Date: Thu, 31 Jan 2019 12:05:48 +0900 Message-Id: <1548903948-17500-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] spp_primary: revise comments 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: Thu, 31 Jan 2019 03:07:58 -0000 From: Yasufumi Ogawa This update is to revise comments for global variables. Signed-off-by: Yasufumi Ogawa --- src/primary/init.c | 4 +++- src/primary/main.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/primary/init.c b/src/primary/init.c index 85b54a3..28ad0a7 100644 --- a/src/primary/init.c +++ b/src/primary/init.c @@ -23,6 +23,7 @@ static struct rte_mempool *pktmbuf_pool; /* the port details */ struct port_info *ports; +/* global var - extern in header */ uint8_t lcore_id_used[RTE_MAX_LCORE] = {}; /** @@ -109,7 +110,7 @@ init(int argc, char *argv[]) int lcore_id; const struct rte_memzone *mz; uint16_t count, total_ports; - char log_msg[1024] = { '\0' }; + char log_msg[1024] = { '\0' }; /* temporary log message */ /* init EAL, parsing EAL args */ retval = rte_eal_init(argc, argv); @@ -163,6 +164,7 @@ init(int argc, char *argv[]) /* Initialise the ring_port. */ init_shm_rings(); + /* Inspect lcores in use */ RTE_LCORE_FOREACH(lcore_id) { lcore_id_used[lcore_id] = 1; } diff --git a/src/primary/main.c b/src/primary/main.c index c86e9ef..8d12bf6 100644 --- a/src/primary/main.c +++ b/src/primary/main.c @@ -44,7 +44,7 @@ static enum cmd_type cmd = STOP; static struct pollfd pfd; -/* global var for number of rings - extern in header */ +/* global var - extern in header */ uint8_t lcore_id_used[RTE_MAX_LCORE]; static void -- 2.7.4