ethdev: add IPsec SA expiry event subtypes
Patch adds new event subtypes for notifying expiry events upon reaching IPsec SA soft packet expiry and hard packet/byte expiry limits. Signed-off-by: Vamsi Attunuru <vattunuru@marvell.com> Signed-off-by: Akhil Goyal <gakhil@marvell.com> Acked-by: Thomas Monjalon <thomas@monjalon.net>
This commit is contained in:
parent
d34a0ad3fa
commit
d1ce79d14b
@ -3590,8 +3590,26 @@ enum rte_eth_event_ipsec_subtype {
|
||||
RTE_ETH_EVENT_IPSEC_ESN_OVERFLOW,
|
||||
/** Soft time expiry of SA */
|
||||
RTE_ETH_EVENT_IPSEC_SA_TIME_EXPIRY,
|
||||
/** Soft byte expiry of SA */
|
||||
/**
|
||||
* Soft byte expiry of SA determined by
|
||||
* @ref rte_security_ipsec_lifetime::bytes_soft_limit
|
||||
*/
|
||||
RTE_ETH_EVENT_IPSEC_SA_BYTE_EXPIRY,
|
||||
/**
|
||||
* Soft packet expiry of SA determined by
|
||||
* @ref rte_security_ipsec_lifetime::packets_soft_limit
|
||||
*/
|
||||
RTE_ETH_EVENT_IPSEC_SA_PKT_EXPIRY,
|
||||
/**
|
||||
* Hard byte expiry of SA determined by
|
||||
* @ref rte_security_ipsec_lifetime::bytes_hard_limit
|
||||
*/
|
||||
RTE_ETH_EVENT_IPSEC_SA_BYTE_HARD_EXPIRY,
|
||||
/**
|
||||
* Hard packet expiry of SA determined by
|
||||
* @ref rte_security_ipsec_lifetime::packets_hard_limit
|
||||
*/
|
||||
RTE_ETH_EVENT_IPSEC_SA_PKT_HARD_EXPIRY,
|
||||
/** Max value of this enum */
|
||||
RTE_ETH_EVENT_IPSEC_MAX
|
||||
};
|
||||
@ -3613,6 +3631,9 @@ struct rte_eth_event_ipsec_desc {
|
||||
* - @ref RTE_ETH_EVENT_IPSEC_ESN_OVERFLOW
|
||||
* - @ref RTE_ETH_EVENT_IPSEC_SA_TIME_EXPIRY
|
||||
* - @ref RTE_ETH_EVENT_IPSEC_SA_BYTE_EXPIRY
|
||||
* - @ref RTE_ETH_EVENT_IPSEC_SA_PKT_EXPIRY
|
||||
* - @ref RTE_ETH_EVENT_IPSEC_SA_BYTE_HARD_EXPIRY
|
||||
* - @ref RTE_ETH_EVENT_IPSEC_SA_PKT_HARD_EXPIRY
|
||||
*
|
||||
* @see struct rte_security_session_conf
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user