summaryrefslogtreecommitdiffstats
path: root/src/vcl/vcl_cfg.c
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2022-02-09 08:35:26 +0000
committerFlorin Coras <florin.coras@gmail.com>2022-02-09 21:04:47 +0000
commit794599bccae8bfb57c17b0c3c8b96630b0bf9bb9 (patch)
treeb153442668537393af35c3938c5f8297097ba974 /src/vcl/vcl_cfg.c
parent97866a3279b112bba64a65d073e94aa9635d03ad (diff)
vcl: make eventfd flag configurable from env
Type: feature Signed-off-by: Filip Tehlar <ftehlar@cisco.com> Change-Id: Id25e2188c9167b2e187923ebe10660e0bc9c3c0a
Diffstat (limited to 'src/vcl/vcl_cfg.c')
-rw-r--r--src/vcl/vcl_cfg.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vcl/vcl_cfg.c b/src/vcl/vcl_cfg.c
index 2ac9eddb6a8..4e0b583e2ec 100644
--- a/src/vcl/vcl_cfg.c
+++ b/src/vcl/vcl_cfg.c
@@ -591,6 +591,13 @@ vppcom_cfg (vppcom_cfg_t * vcl_cfg)
VCFG_DBG (0, "VCL<%d>: configured app-socket-api (%s)", getpid (),
vcl_cfg->vpp_app_socket_api);
}
+ env_var_str = getenv (VPPCOM_ENV_APP_USE_MQ_EVENTFD);
+ if (env_var_str)
+ {
+ vcm->cfg.use_mq_eventfd = 1;
+ VCFG_DBG (0, "VCL<%d>: configured " VPPCOM_ENV_APP_USE_MQ_EVENTFD,
+ getpid ());
+ }
}
/*