[spp] [PATCH] spp_primary: revise comments

ogawa.yasufumi at lab.ntt.co.jp ogawa.yasufumi at lab.ntt.co.jp
Thu Jan 31 04:05:48 CET 2019


From: Yasufumi Ogawa <ogawa.yasufumi at lab.ntt.co.jp>

This update is to revise comments for global variables.

Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi at lab.ntt.co.jp>
---
 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



More information about the spp mailing list