aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/dev_octeon/crypto.c7
-rw-r--r--src/plugins/dev_octeon/crypto.h2
2 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/dev_octeon/crypto.c b/src/plugins/dev_octeon/crypto.c
index 7d3790f3ec9..9c710aed7fd 100644
--- a/src/plugins/dev_octeon/crypto.c
+++ b/src/plugins/dev_octeon/crypto.c
@@ -172,17 +172,16 @@ oct_crypto_key_add_handler (vlib_main_t *vm, vnet_crypto_key_index_t key_index)
}
void
-oct_crypto_key_handler (vlib_main_t *vm, vnet_crypto_key_op_t kop,
- vnet_crypto_key_index_t idx)
+oct_crypto_key_handler (vnet_crypto_key_op_t kop, vnet_crypto_key_index_t idx)
{
oct_crypto_main_t *ocm = &oct_crypto_main;
if (kop == VNET_CRYPTO_KEY_OP_DEL)
{
- oct_crypto_key_del_handler (vm, idx);
+ oct_crypto_key_del_handler (vlib_get_main (), idx);
return;
}
- oct_crypto_key_add_handler (vm, idx);
+ oct_crypto_key_add_handler (vlib_get_main (), idx);
ocm->started = 1;
}
diff --git a/src/plugins/dev_octeon/crypto.h b/src/plugins/dev_octeon/crypto.h
index 27e1f600c68..0a3b796d3dd 100644
--- a/src/plugins/dev_octeon/crypto.h
+++ b/src/plugins/dev_octeon/crypto.h
@@ -157,7 +157,7 @@ void oct_crypto_key_del_handler (vlib_main_t *vm,
void oct_crypto_key_add_handler (vlib_main_t *vm,
vnet_crypto_key_index_t key_index);
-void oct_crypto_key_handler (vlib_main_t *vm, vnet_crypto_key_op_t kop,
+void oct_crypto_key_handler (vnet_crypto_key_op_t kop,
vnet_crypto_key_index_t idx);
int oct_crypto_enqueue_linked_alg_enc (vlib_main_t *vm,