From 87d82d01db04a9922fdef275b6b9fd7c2d80c746 Mon Sep 17 00:00:00 2001 From: Monendra Singh Kushwaha Date: Fri, 20 Dec 2024 23:26:43 +0530 Subject: octeon: fix compilation for octeon This patch adapts new changes introduced in crypto framework as part of 0cf4eef7. Type: fix fixes: 0cf4eef7 Change-Id: I41a17c9b340f54014c9d2ae21546ec39ccef3f43 Signed-off-by: Monendra Singh Kushwaha --- src/plugins/dev_octeon/crypto.c | 7 +++---- src/plugins/dev_octeon/crypto.h | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src') 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, -- cgit 1.2.3-korg