bb810fd64d
Adding security capabilities supported by the eth PMD. Signed-off-by: Ankur Dwivedi <adwivedi@marvell.com> Signed-off-by: Anoob Joseph <anoobj@marvell.com> Signed-off-by: Archana Muniganti <marchana@marvell.com> Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com> Signed-off-by: Vamsi Attunuru <vattunuru@marvell.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
37 lines
793 B
C
37 lines
793 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright (C) 2020 Marvell International Ltd.
|
|
*/
|
|
|
|
#ifndef __OTX2_ETHDEV_SEC_H__
|
|
#define __OTX2_ETHDEV_SEC_H__
|
|
|
|
#include <rte_ethdev.h>
|
|
|
|
#include "otx2_ipsec_fp.h"
|
|
|
|
/*
|
|
* Security session for inline IPsec protocol offload. This is private data of
|
|
* inline capable PMD.
|
|
*/
|
|
struct otx2_sec_session_ipsec_ip {
|
|
int dummy;
|
|
};
|
|
|
|
struct otx2_sec_session_ipsec {
|
|
struct otx2_sec_session_ipsec_ip ip;
|
|
};
|
|
|
|
struct otx2_sec_session {
|
|
struct otx2_sec_session_ipsec ipsec;
|
|
} __rte_cache_aligned;
|
|
|
|
int otx2_eth_sec_ctx_create(struct rte_eth_dev *eth_dev);
|
|
|
|
void otx2_eth_sec_ctx_destroy(struct rte_eth_dev *eth_dev);
|
|
|
|
int otx2_eth_sec_init(struct rte_eth_dev *eth_dev);
|
|
|
|
void otx2_eth_sec_fini(struct rte_eth_dev *eth_dev);
|
|
|
|
#endif /* __OTX2_ETHDEV_SEC_H__ */
|