summaryrefslogtreecommitdiffstats
path: root/common/vnf_common/thread.c
diff options
context:
space:
mode:
authorVishwesh M Rudramuni <vishwesh.m.rudramuni@intel.com>2017-10-05 03:37:35 +0530
committerDeepak S <deepak.s@linux.intel.com>2017-10-06 17:41:18 -0700
commit2280f91c9c4a2261f44e19dadb4f450ef6c92e77 (patch)
treea71278588d30257e00660fe9ee05708c392ac70e /common/vnf_common/thread.c
parentcd3527b101c97a66d02069a0d60c4e53b4a7d863 (diff)
common code: KW fixes for common code
This patch fixes KW issues seen with the common code. Change-Id: I4f90369152345ea2ea9316b04ac946c0c69fd7d1 Signed-off-by: Vishwesh M Rudramuni <vishwesh.m.rudramuni@intel.com>
Diffstat (limited to 'common/vnf_common/thread.c')
-rw-r--r--common/vnf_common/thread.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/vnf_common/thread.c b/common/vnf_common/thread.c
index dcf272ff..f6f1105f 100644
--- a/common/vnf_common/thread.c
+++ b/common/vnf_common/thread.c
@@ -59,6 +59,8 @@ do { \
#endif
+uint32_t exit_app_thread = 0;
+
static inline void *
thread_msg_recv(struct rte_ring *r)
{
@@ -226,6 +228,9 @@ app_thread(void *arg)
uint32_t n_regular = RTE_MIN(t->n_regular, RTE_DIM(t->regular));
uint32_t n_custom = RTE_MIN(t->n_custom, RTE_DIM(t->custom));
+ if (exit_app_thread)
+ break;
+
/* Run regular pipelines */
for (j = 0; j < n_regular; j++) {
struct app_thread_pipeline_data *data = &t->regular[j];