net/octeontx2: add security capabilities
[dpdk.git] / drivers / net / octeontx2 / otx2_ethdev_sec.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (C) 2020 Marvell International Ltd.
3  */
4
5 #ifndef __OTX2_ETHDEV_SEC_H__
6 #define __OTX2_ETHDEV_SEC_H__
7
8 #include <rte_ethdev.h>
9
10 #include "otx2_ipsec_fp.h"
11
12 /*
13  * Security session for inline IPsec protocol offload. This is private data of
14  * inline capable PMD.
15  */
16 struct otx2_sec_session_ipsec_ip {
17         int dummy;
18 };
19
20 struct otx2_sec_session_ipsec {
21         struct otx2_sec_session_ipsec_ip ip;
22 };
23
24 struct otx2_sec_session {
25         struct otx2_sec_session_ipsec ipsec;
26 } __rte_cache_aligned;
27
28 int otx2_eth_sec_ctx_create(struct rte_eth_dev *eth_dev);
29
30 void otx2_eth_sec_ctx_destroy(struct rte_eth_dev *eth_dev);
31
32 int otx2_eth_sec_init(struct rte_eth_dev *eth_dev);
33
34 void otx2_eth_sec_fini(struct rte_eth_dev *eth_dev);
35
36 #endif /* __OTX2_ETHDEV_SEC_H__ */