aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorKingwel Xie <kingwel.xie@ericsson.com>2018-12-23 23:54:19 -0500
committerNeale Ranns <nranns@cisco.com>2018-12-24 15:45:10 +0000
commit4270808205d56f78dcd5a293b72a45840dbaf34b (patch)
tree29e56eca70552ebfbc5dacf25df39d31695184ce /src/plugins
parentd482336380e08e4edf08e64b94a7388315fc2d68 (diff)
crypto-input: bug fix check-op
fix a copy-paste bug, and a typo of function name Change-Id: Ib408522d2bb6fde7a7492de6f5d5369b461d77c9 Signed-off-by: Kingwel Xie <kingwel.xie@ericsson.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/dpdk/ipsec/crypto_node.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/dpdk/ipsec/crypto_node.c b/src/plugins/dpdk/ipsec/crypto_node.c
index a5f8d8e805e..966e86da288 100644
--- a/src/plugins/dpdk/ipsec/crypto_node.c
+++ b/src/plugins/dpdk/ipsec/crypto_node.c
@@ -90,7 +90,7 @@ format_dpdk_crypto_input_trace (u8 * s, va_list * args)
}
static_always_inline void
-dpdk_crypto_check_check_op (vlib_main_t * vm, vlib_node_runtime_t * node,
+dpdk_crypto_input_check_op (vlib_main_t * vm, vlib_node_runtime_t * node,
struct rte_crypto_op *op0, u16 * next)
{
if (PREDICT_FALSE (op0->status != RTE_CRYPTO_OP_STATUS_SUCCESS))
@@ -203,10 +203,10 @@ dpdk_crypto_dequeue (vlib_main_t * vm, vlib_node_runtime_t * node,
next[2] = crypto_op_get_priv (op2)->next;
next[3] = crypto_op_get_priv (op3)->next;
- dpdk_crypto_check_check_op (vm, node, op0, next + 0);
- dpdk_crypto_check_check_op (vm, node, op0, next + 1);
- dpdk_crypto_check_check_op (vm, node, op0, next + 2);
- dpdk_crypto_check_check_op (vm, node, op0, next + 3);
+ dpdk_crypto_input_check_op (vm, node, op0, next + 0);
+ dpdk_crypto_input_check_op (vm, node, op1, next + 1);
+ dpdk_crypto_input_check_op (vm, node, op2, next + 2);
+ dpdk_crypto_input_check_op (vm, node, op3, next + 3);
b0 = vlib_buffer_from_rte_mbuf (op0->sym[0].m_src);
b1 = vlib_buffer_from_rte_mbuf (op1->sym[0].m_src);
@@ -238,7 +238,7 @@ dpdk_crypto_dequeue (vlib_main_t * vm, vlib_node_runtime_t * node,
next[0] = crypto_op_get_priv (op0)->next;
- dpdk_crypto_check_check_op (vm, node, op0, next + 0);
+ dpdk_crypto_input_check_op (vm, node, op0, next + 0);
/* XXX store bi0 and next0 in op0 private? */
b0 = vlib_buffer_from_rte_mbuf (op0->sym[0].m_src);