summaryrefslogtreecommitdiffstats
path: root/common/VIL/conntrack
diff options
context:
space:
mode:
authorDeepak S <deepak.s@linux.intel.com>2017-06-27 04:05:46 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-06-27 04:05:46 +0000
commite42dae3349360baec599f8b40849b1659243fa43 (patch)
tree2634138f81b617462fc59bd6b2e5b585094f6cac /common/VIL/conntrack
parentd38200c52fe80c5917b6c50fe6d1a35f62c18dcd (diff)
parentf49d646236d446f8b680f83594ec6e2e79c7e601 (diff)
Merge "conntrack: timer reset in reply traffic causes performance impact"
Diffstat (limited to 'common/VIL/conntrack')
-rw-r--r--common/VIL/conntrack/rte_ct_udp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/VIL/conntrack/rte_ct_udp.c b/common/VIL/conntrack/rte_ct_udp.c
index 6caa788f..9a50a592 100644
--- a/common/VIL/conntrack/rte_ct_udp.c
+++ b/common/VIL/conntrack/rte_ct_udp.c
@@ -43,7 +43,10 @@ enum rte_ct_packet_action rte_ct_udp_packet(struct rte_ct_cnxn_tracker *ct,
ustate = RTE_CT_UDP_REPLIED;
cd->connstatus = RTE_ASSURED_CONN;
}
- rte_ct_set_cnxn_timer_for_udp(ct, cd, ustate);
+ /* Avoid timer resetting if connection is setup */
+ if(cd->connstatus != RTE_INIT_CONN)
+ cd->state_used_for_timer = ustate;
+ rte_ct_set_cnxn_timer_for_udp(ct, cd, ustate);
return RTE_CT_FORWARD_PACKET;
}