DPDK
24.07.0
|
Go to the source code of this file.
Data Structures | |
union | rte_pmd_cnxk_ipsec_outer_ip_hdr |
struct | rte_pmd_cnxk_ipsec_inb_ctx_update_reg |
union | rte_pmd_cnxk_ipsec_outb_iv |
struct | rte_pmd_cnxk_ipsec_outb_ctx_update_reg |
struct | rte_pmd_cnxk_ipsec_inb_sa |
struct | rte_pmd_cnxk_ipsec_outb_sa |
union | rte_pmd_cnxk_ipsec_hw_sa |
union | rte_pmd_cnxk_cpt_res_s |
struct | rte_pmd_cnxk_cpt_res_s::rte_pmd_cpt_cn10k_res_s |
struct | rte_pmd_cnxk_cpt_res_s::rte_pmd_cpt_cn9k_res_s |
Macros | |
#define | RTE_PMD_CNXK_AR_WIN_SIZE_MIN 64 |
#define | RTE_PMD_CNXK_AR_WINBITS_SZ (RTE_ALIGN_CEIL(RTE_PMD_CNXK_AR_WIN_SIZE_MAX, 64) / 64) |
Enumerations | |
enum | rte_pmd_cnxk_sec_action_alg { RTE_PMD_CNXK_SEC_ACTION_ALG0, RTE_PMD_CNXK_SEC_ACTION_ALG1, RTE_PMD_CNXK_SEC_ACTION_ALG2, RTE_PMD_CNXK_SEC_ACTION_ALG3, RTE_PMD_CNXK_SEC_ACTION_ALG4 } |
Functions | |
__rte_experimental int | rte_pmd_cnxk_hw_sa_read (void *device, struct rte_security_session *sess, union rte_pmd_cnxk_ipsec_hw_sa *data, uint32_t len) |
__rte_experimental int | rte_pmd_cnxk_hw_sa_write (void *device, struct rte_security_session *sess, union rte_pmd_cnxk_ipsec_hw_sa *data, uint32_t len) |
__rte_experimental union rte_pmd_cnxk_cpt_res_s * | rte_pmd_cnxk_inl_ipsec_res (struct rte_mbuf *mbuf) |
CNXK PMD specific functions.
Definition in file rte_pmd_cnxk.h.
#define RTE_PMD_CNXK_AR_WIN_SIZE_MIN 64 |
Anti reply window size supported
Definition at line 67 of file rte_pmd_cnxk.h.
#define RTE_PMD_CNXK_AR_WINBITS_SZ (RTE_ALIGN_CEIL(RTE_PMD_CNXK_AR_WIN_SIZE_MAX, 64) / 64) |
u64 array size to fit anti replay window bits
Definition at line 72 of file rte_pmd_cnxk.h.
Algorithm type to be used with security action to calculate SA_index
Definition at line 22 of file rte_pmd_cnxk.h.
__rte_experimental int rte_pmd_cnxk_hw_sa_read | ( | void * | device, |
struct rte_security_session * | sess, | ||
union rte_pmd_cnxk_ipsec_hw_sa * | data, | ||
uint32_t | len | ||
) |
Read HW SA context from session.
device | Port identifier of Ethernet device. | |
sess | Handle of the security session. | |
[out] | data | Destination pointer to copy SA context for application. |
len | Length of SA context to copy into data parameter. |
__rte_experimental int rte_pmd_cnxk_hw_sa_write | ( | void * | device, |
struct rte_security_session * | sess, | ||
union rte_pmd_cnxk_ipsec_hw_sa * | data, | ||
uint32_t | len | ||
) |
Write HW SA context to session.
device | Port identifier of Ethernet device. | |
sess | Handle of the security session. | |
[in] | data | Source data pointer from application to copy SA context into session. |
len | Length of SA context to copy from data parameter. |
__rte_experimental union rte_pmd_cnxk_cpt_res_s* rte_pmd_cnxk_inl_ipsec_res | ( | struct rte_mbuf * | mbuf | ) |
Get pointer to CPT result info for inline inbound processed pkt.
It is recommended to use this API only when mbuf indicates packet was processed with inline IPsec and there was a failure with the same i.e mbuf->ol_flags indicates (RTE_MBUF_F_RX_SEC_OFFLOAD | RTE_MBUF_F_RX_SEC_OFFLOAD_FAILED).
mbuf | Pointer to packet that was just received and was processed with Inline IPsec. |
union rte_pmd_cnxk_cpt_res_s
is stored on success.