|
DPDK 25.11.0
|
Go to the source code of this file.
Data Structures | |
| struct | rte_pmd_cnxk_cpt_q_stats |
| 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 |
| struct | rte_pmd_cnxk_ipsec_inb_cfg |
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) |
Functions | |
| __rte_experimental int | rte_pmd_cnxk_hw_sa_read (uint16_t portid, void *sess, union rte_pmd_cnxk_ipsec_hw_sa *data, uint32_t len, bool inb) |
| __rte_experimental int | rte_pmd_cnxk_hw_sa_write (uint16_t portid, void *sess, union rte_pmd_cnxk_ipsec_hw_sa *data, uint32_t len, bool inb) |
| __rte_experimental union rte_pmd_cnxk_cpt_res_s * | rte_pmd_cnxk_inl_ipsec_res (struct rte_mbuf *mbuf) |
| __rte_experimental union rte_pmd_cnxk_ipsec_hw_sa * | rte_pmd_cnxk_hw_session_base_get (uint16_t portid, bool inb) |
| __rte_experimental int | rte_pmd_cnxk_sa_flush (uint16_t portid, union rte_pmd_cnxk_ipsec_hw_sa *sess, bool inb) |
| __rte_experimental struct rte_pmd_cnxk_inl_dev_q * | rte_pmd_cnxk_inl_dev_qptr_get (void) |
| __rte_experimental uint16_t | rte_pmd_cnxk_inl_dev_submit (struct rte_pmd_cnxk_inl_dev_q *qptr, void *inst, uint16_t nb_inst) |
| __rte_experimental int | rte_pmd_cnxk_cpt_q_stats_get (uint16_t portid, enum rte_pmd_cnxk_cpt_q_stats_type type, struct rte_pmd_cnxk_cpt_q_stats *stats, uint16_t idx) |
| __rte_experimental void | rte_pmd_cnxk_hw_inline_inb_cfg_set (uint16_t portid, struct rte_pmd_cnxk_ipsec_inb_cfg *cfg) |
| __rte_experimental const char * | rte_pmd_cnxk_model_str_get (void) |
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 91 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 96 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.
CPT queue type for obtaining queue hardware statistics.
Definition at line 51 of file rte_pmd_cnxk.h.
| __rte_experimental int rte_pmd_cnxk_hw_sa_read | ( | uint16_t | portid, |
| void * | sess, | ||
| union rte_pmd_cnxk_ipsec_hw_sa * | data, | ||
| uint32_t | len, | ||
| bool | inb ) |
Read HW SA context from session.
| portid | Port identifier of Ethernet device. | |
| sess | Handle of the security session as void *. | |
| [out] | data | Destination pointer to copy SA context for application. |
| len | Length of SA context to copy into data parameter. | |
| inb | Determines the type of specified SA. |
| __rte_experimental int rte_pmd_cnxk_hw_sa_write | ( | uint16_t | portid, |
| void * | sess, | ||
| union rte_pmd_cnxk_ipsec_hw_sa * | data, | ||
| uint32_t | len, | ||
| bool | inb ) |
Write HW SA context to session.
| portid | Port identifier of Ethernet device. | |
| sess | Handle of the security session as void *. | |
| [in] | data | Source data pointer from application to copy SA context into session. |
| len | Length of SA context to copy from data parameter. | |
| inb | Determines the type of specified SA. |
| __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. |
| __rte_experimental union rte_pmd_cnxk_ipsec_hw_sa * rte_pmd_cnxk_hw_session_base_get | ( | uint16_t | portid, |
| bool | inb ) |
Get pointer to the Inline Inbound or Outbound SA table base.
| portid | Port identifier of Ethernet device. |
| inb | Determines the type of SA base to be returned. When inb is true, the method returns the Inbound SA base. When inb is false, the method returns the Outbound SA base. |
| __rte_experimental int rte_pmd_cnxk_sa_flush | ( | uint16_t | portid, |
| union rte_pmd_cnxk_ipsec_hw_sa * | sess, | ||
| bool | inb ) |
Executes a CPT flush on the specified session.
| portid | Port identifier of Ethernet device. |
| sess | Handle of the session on which the CPT flush will be executed. |
| inb | Determines the type of SA to be flushed, Inbound or Outbound. |
| __rte_experimental struct rte_pmd_cnxk_inl_dev_q * rte_pmd_cnxk_inl_dev_qptr_get | ( | void | ) |
Get queue pointer of Inline Device.
| __rte_experimental uint16_t rte_pmd_cnxk_inl_dev_submit | ( | struct rte_pmd_cnxk_inl_dev_q * | qptr, |
| void * | inst, | ||
| uint16_t | nb_inst ) |
Submit CPT instruction(s) (cpt_inst_s) to Inline Device.
| qptr | Pointer obtained with rte_pmd_cnxk_inl_dev_qptr_get. |
| inst | Pointer to an array of cpt_inst_s prapared by application. |
| nb_inst | Number of instructions to be processed. |
| __rte_experimental int rte_pmd_cnxk_cpt_q_stats_get | ( | uint16_t | portid, |
| enum rte_pmd_cnxk_cpt_q_stats_type | type, | ||
| struct rte_pmd_cnxk_cpt_q_stats * | stats, | ||
| uint16_t | idx ) |
Retrieves the hardware statistics of a given port and stats type.
| portid | Port identifier of Ethernet device. |
| type | The type of hardware statistics to retrieve, as defined in the enum rte_pmd_cnxk_cpt_q_stats_type. |
| stats | Pointer where the retrieved statistics will be stored. |
| idx | The index of the queue of a given type. |
| __rte_experimental void rte_pmd_cnxk_hw_inline_inb_cfg_set | ( | uint16_t | portid, |
| struct rte_pmd_cnxk_ipsec_inb_cfg * | cfg ) |
Set the configuration for hardware inline inbound IPsec processing. This API must be called before calling the rte_eth_dev_configure API.
| portid | Port identifier of Ethernet device. |
| cfg | Pointer to the IPsec inbound configuration structure. |
| __rte_experimental const char * rte_pmd_cnxk_model_str_get | ( | void | ) |
Retrieves model name on which it is running as a string.