diff options
author | Deepak S <deepak.s@linux.intel.com> | 2017-06-27 04:05:46 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-06-27 04:05:46 +0000 |
commit | e42dae3349360baec599f8b40849b1659243fa43 (patch) | |
tree | 2634138f81b617462fc59bd6b2e5b585094f6cac /common | |
parent | d38200c52fe80c5917b6c50fe6d1a35f62c18dcd (diff) | |
parent | f49d646236d446f8b680f83594ec6e2e79c7e601 (diff) |
Merge "conntrack: timer reset in reply traffic causes performance impact"
Diffstat (limited to 'common')
-rw-r--r-- | common/VIL/conntrack/rte_ct_udp.c | 5 |
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; } |