net/octeontx2: move security session struct to crypto PMD
This patch moves otx2_sec_session structure to otx2_security.h to make it common for inline and lookaside protocol modes of rte_security Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com> Acked-by: Anoob Joseph <anoobj@marvell.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
This commit is contained in:
parent
0136dd3727
commit
858797bbcd
20
drivers/crypto/octeontx2/otx2_security.h
Normal file
20
drivers/crypto/octeontx2/otx2_security.h
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
/* SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
* Copyright (C) 2020 Marvell International Ltd.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __OTX2_SECURITY_H__
|
||||||
|
#define __OTX2_SECURITY_H__
|
||||||
|
|
||||||
|
#include "otx2_ethdev_sec.h"
|
||||||
|
|
||||||
|
union otx2_sec_session_ipsec {
|
||||||
|
struct otx2_sec_session_ipsec_ip ip;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct otx2_sec_session {
|
||||||
|
union otx2_sec_session_ipsec ipsec;
|
||||||
|
void *userdata;
|
||||||
|
/**< Userdata registered by the application */
|
||||||
|
} __rte_cache_aligned;
|
||||||
|
|
||||||
|
#endif /* __OTX2_SECURITY_H__ */
|
@ -19,6 +19,7 @@
|
|||||||
#include "otx2_ethdev_sec.h"
|
#include "otx2_ethdev_sec.h"
|
||||||
#include "otx2_ipsec_fp.h"
|
#include "otx2_ipsec_fp.h"
|
||||||
#include "otx2_sec_idev.h"
|
#include "otx2_sec_idev.h"
|
||||||
|
#include "otx2_security.h"
|
||||||
|
|
||||||
#define AH_HDR_LEN 12
|
#define AH_HDR_LEN 12
|
||||||
#define AES_GCM_IV_LEN 8
|
#define AES_GCM_IV_LEN 8
|
||||||
|
@ -116,16 +116,6 @@ struct otx2_sec_session_ipsec_ip {
|
|||||||
struct otx2_cpt_qp *qp;
|
struct otx2_cpt_qp *qp;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct otx2_sec_session_ipsec {
|
|
||||||
struct otx2_sec_session_ipsec_ip ip;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct otx2_sec_session {
|
|
||||||
struct otx2_sec_session_ipsec ipsec;
|
|
||||||
void *userdata;
|
|
||||||
/**< Userdata registered by the application */
|
|
||||||
} __rte_cache_aligned;
|
|
||||||
|
|
||||||
int otx2_eth_sec_ctx_create(struct rte_eth_dev *eth_dev);
|
int otx2_eth_sec_ctx_create(struct rte_eth_dev *eth_dev);
|
||||||
|
|
||||||
void otx2_eth_sec_ctx_destroy(struct rte_eth_dev *eth_dev);
|
void otx2_eth_sec_ctx_destroy(struct rte_eth_dev *eth_dev);
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
#include <rte_mbuf.h>
|
#include <rte_mbuf.h>
|
||||||
|
|
||||||
#include "otx2_ethdev_sec.h"
|
#include "otx2_ethdev_sec.h"
|
||||||
|
#include "otx2_security.h"
|
||||||
|
|
||||||
struct otx2_ipsec_fp_out_hdr {
|
struct otx2_ipsec_fp_out_hdr {
|
||||||
uint32_t ip_id;
|
uint32_t ip_id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user