1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright (C) 2020 Marvell International Ltd.
5 #ifndef __OTX2_ETHDEV_SEC_H__
6 #define __OTX2_ETHDEV_SEC_H__
8 #include <rte_ethdev.h>
10 #include "otx2_ipsec_fp.h"
13 * Security session for inline IPsec protocol offload. This is private data of
16 struct otx2_sec_session_ipsec_ip {
20 struct otx2_sec_session_ipsec {
21 struct otx2_sec_session_ipsec_ip ip;
24 struct otx2_sec_session {
25 struct otx2_sec_session_ipsec ipsec;
26 } __rte_cache_aligned;
28 int otx2_eth_sec_ctx_create(struct rte_eth_dev *eth_dev);
30 void otx2_eth_sec_ctx_destroy(struct rte_eth_dev *eth_dev);
32 int otx2_eth_sec_init(struct rte_eth_dev *eth_dev);
34 void otx2_eth_sec_fini(struct rte_eth_dev *eth_dev);
36 #endif /* __OTX2_ETHDEV_SEC_H__ */