From e30b9f603cf5ffd92b651bbba7611ca959143160 Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Thu, 14 Aug 2025 13:42:52 +0200 Subject: [PATCH] Move iavf_security_ctx_destroy() prototype into header file. g++ (Debian 14.2.0-19) 14.2.0 fails with error: implicit declaration of function 'iavf_security_ctx_destroy'. Move prototype to iavf.h header file. Signed-off-by: Alexander Bluhm --- src/dpdk/drivers/net/iavf/iavf.h | 6 ++++++ src/dpdk/drivers/net/iavf/iavf_ipsec_crypto.h | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/dpdk/drivers/net/iavf/iavf.h b/src/dpdk/drivers/net/iavf/iavf.h index 824ae4aa02..af74a00bf7 100644 --- a/src/dpdk/drivers/net/iavf/iavf.h +++ b/src/dpdk/drivers/net/iavf/iavf.h @@ -564,4 +564,10 @@ void iavf_dev_watchdog_enable(struct iavf_adapter *adapter); void iavf_dev_watchdog_disable(struct iavf_adapter *adapter); void iavf_handle_hw_reset(struct rte_eth_dev *dev); void iavf_set_no_poll(struct iavf_adapter *adapter, bool link_change); + +/** + * Destroy security context + */ +int iavf_security_ctx_destroy(struct iavf_adapter *adapterv); + #endif /* _IAVF_ETHDEV_H_ */ diff --git a/src/dpdk/drivers/net/iavf/iavf_ipsec_crypto.h b/src/dpdk/drivers/net/iavf/iavf_ipsec_crypto.h index 49f9202aca..5f050ce550 100644 --- a/src/dpdk/drivers/net/iavf/iavf_ipsec_crypto.h +++ b/src/dpdk/drivers/net/iavf/iavf_ipsec_crypto.h @@ -124,11 +124,6 @@ int iavf_ipsec_crypto_set_security_capabililites(struct iavf_security_ctx int iavf_security_get_pkt_md_offset(struct iavf_adapter *adapter); -/** - * Destroy security context - */ -int iavf_security_ctx_destroy(struct iavf_adapter *adapterv); - /** * Verify that the inline IPsec Crypto action is valid for this device */