CT: Perf optimization through prefetch and condition checks in CT 33/34433/3
authorAnand B Jyoti <anand.b.jyoti@intel.com>
Mon, 8 May 2017 05:34:07 +0000 (11:04 +0530)
committerDeepak S <deepak.s@linux.intel.com>
Thu, 1 Jun 2017 11:56:00 +0000 (11:56 +0000)
commitcd7ce8f25a81fb390ed0cc66992fda8ab1b021cb
tree2213d3f98ebd409e01d443fac783f132bbbd21dd
parentb04a6e5dacc458f81097c9b8a172dcbf16d8fd50
CT: Perf optimization through prefetch and condition checks in CT

JIRA: SAMPLEVNF-10

LLC miss is possible when the connection data structure is accessed
after retrieved from hash table entries for TCP/UDP connection.
CPI for rte_ct_udp_packet() is not good due to if/else condition checks.
This patch provide a prefetch instructions to pre-fetch the cnxn data entry
structure to avoid the LLC miss and also optimize the if/else condition check
to improve the CPI for rte_ct_udp_packet() function.

Change-Id: Ieaf70815c919ddbe1ff34921222eac030fb41756
Signed-off-by: Anand B Jyoti <anand.b.jyoti@intel.com>
common/VIL/conntrack/rte_cnxn_tracking.c
common/VIL/conntrack/rte_ct_udp.c