crypto: make crypto-dispatch node working in adaptive mode
This patch can make crypto dispatch node adaptively switching between pooling and interrupt mode, and improve vpp overall performance. Type: improvement Signed-off-by: Xiaoming Jiang <jiangxiaoming@outlook.com> Change-Id: I845ed1d29ba9f3c507ea95a337f6dca7f8d6e24e
This commit is contained in:
committed by
Fan Zhang
parent
8340b24997
commit
9a9604b09f
@@ -516,8 +516,7 @@ cryptodev_raw_dequeue (vlib_main_t *vm, u32 *nb_elts_processed,
|
||||
}
|
||||
}
|
||||
|
||||
if (cm->dispatch_mode == VNET_CRYPTO_ASYNC_DISPATCH_INTERRUPT &&
|
||||
inflight > 0)
|
||||
if (inflight > 0)
|
||||
vlib_node_set_interrupt_pending (vlib_get_main_by_index (vm->thread_index),
|
||||
cm->crypto_node_index);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user