aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMonendra Singh Kushwaha <kmonendra@marvell.com>2024-12-20 23:26:43 +0530
committerDamjan Marion <dmarion@0xa5.net>2025-01-08 16:42:00 +0000
commit87d82d01db04a9922fdef275b6b9fd7c2d80c746 (patch)
tree2db7884dbe8d6094223dcad4a29dced989cb6c18 /src
parent6c95e41b510e8174f0ecb96b68bc2104d64806c4 (diff)
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 <kmonendra@marvell.com>
Diffstat (limited to 'src')
-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,