ipsec: change prediction
Type: improvement This patch changes the prediction of the comparison between SA owner thread index and the current thread index. Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Change-Id: I48de0bb2c57dbb09cfab63925bf8dc96613d8bcf
This commit is contained in:
@ -1117,7 +1117,7 @@ esp_decrypt_inline (vlib_main_t * vm,
|
|||||||
ipsec_sa_assign_thread (thread_index));
|
ipsec_sa_assign_thread (thread_index));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PREDICT_TRUE (thread_index != sa0->decrypt_thread_index))
|
if (PREDICT_FALSE (thread_index != sa0->decrypt_thread_index))
|
||||||
{
|
{
|
||||||
esp_set_next_index (is_async, from, nexts, from[b - bufs],
|
esp_set_next_index (is_async, from, nexts, from[b - bufs],
|
||||||
&n_async_drop, ESP_DECRYPT_NEXT_HANDOFF, next);
|
&n_async_drop, ESP_DECRYPT_NEXT_HANDOFF, next);
|
||||||
|
@ -669,7 +669,7 @@ esp_encrypt_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
|
|||||||
ipsec_sa_assign_thread (thread_index));
|
ipsec_sa_assign_thread (thread_index));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PREDICT_TRUE (thread_index != sa0->encrypt_thread_index))
|
if (PREDICT_FALSE (thread_index != sa0->encrypt_thread_index))
|
||||||
{
|
{
|
||||||
esp_set_next_index (is_async, from, nexts, from[b - bufs],
|
esp_set_next_index (is_async, from, nexts, from[b - bufs],
|
||||||
&n_async_drop,
|
&n_async_drop,
|
||||||
|
Reference in New Issue
Block a user