summaryrefslogtreecommitdiff
path: root/drivers/net/softnic
diff options
context:
space:
mode:
authorFerruh Yigit <ferruh.yigit@intel.com>2018-10-28 23:57:38 +0000
committerThomas Monjalon <thomas@monjalon.net>2018-10-29 02:01:08 +0100
commitb74fd6b842b7e41e4ee6a037dd37735aeedd8095 (patch)
treee01d4326124f30290bb5859dc97f55b7a64399f3 /drivers/net/softnic
parent3f2ef27972a6f60e4e41aceba1f9b53a553ff065 (diff)
downloaddpdk-b74fd6b842b7e41e4ee6a037dd37735aeedd8095.zip
dpdk-b74fd6b842b7e41e4ee6a037dd37735aeedd8095.tar.gz
dpdk-b74fd6b842b7e41e4ee6a037dd37735aeedd8095.tar.xz
add missing static keyword to globals
Some global variables can indeed be static, add static keyword to them. Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com> Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
Diffstat (limited to 'drivers/net/softnic')
-rw-r--r--drivers/net/softnic/rte_eth_softnic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/softnic/rte_eth_softnic.c b/drivers/net/softnic/rte_eth_softnic.c
index 4ecfe95..743a7c5 100644
--- a/drivers/net/softnic/rte_eth_softnic.c
+++ b/drivers/net/softnic/rte_eth_softnic.c
@@ -28,7 +28,7 @@
#define PMD_PARAM_TM_QSIZE2 "tm_qsize2"
#define PMD_PARAM_TM_QSIZE3 "tm_qsize3"
-static const char *pmd_valid_args[] = {
+static const char * const pmd_valid_args[] = {
PMD_PARAM_FIRMWARE,
PMD_PARAM_CONN_PORT,
PMD_PARAM_CPU_ID,
@@ -47,7 +47,7 @@ static const char welcome[] =
static const char prompt[] = "softnic> ";
-struct softnic_conn_params conn_params_default = {
+static const struct softnic_conn_params conn_params_default = {
.welcome = welcome,
.prompt = prompt,
.addr = "0.0.0.0",