summaryrefslogtreecommitdiffstats
path: root/VNFs/DPPD-PROX
diff options
context:
space:
mode:
authorDeepak S <deepak.s@linux.intel.com>2018-01-16 12:51:17 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-01-16 12:51:18 +0000
commit95a6421555054f0fd3f78a5e2e21f461eee84886 (patch)
tree4e7032df54f45be2f1bcc73acca6ebfd23a9db5e /VNFs/DPPD-PROX
parentdd77bd89e11d84d378167468db85fb4ef35a0c7a (diff)
parent42d63f046135643a2a9a95d818ee472b68c273e7 (diff)
Merge "Fix potential crash when issuing "tx distr stop" command."
Diffstat (limited to 'VNFs/DPPD-PROX')
-rw-r--r--VNFs/DPPD-PROX/lconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/VNFs/DPPD-PROX/lconf.c b/VNFs/DPPD-PROX/lconf.c
index 399c8a7d..682c106f 100644
--- a/VNFs/DPPD-PROX/lconf.c
+++ b/VNFs/DPPD-PROX/lconf.c
@@ -307,10 +307,10 @@ int lconf_do_flags(struct lcore_cfg *lconf)
t = lconf->tasks_all[task_id];
if (t->aux->tx_pkt_orig) {
if (t->tx_pkt == tx_pkt_l3) {
- t->tx_pkt = t->aux->tx_pkt_orig;
+ t->aux->tx_pkt_l2 = t->aux->tx_pkt_orig;
t->aux->tx_pkt_orig = NULL;
} else {
- t->aux->tx_pkt_l2 = t->aux->tx_pkt_orig;
+ t->tx_pkt = t->aux->tx_pkt_orig;
t->aux->tx_pkt_orig = NULL;
}
lconf->flags &= ~LCONF_FLAG_TX_DISTR_ACTIVE;