[dpdk-dev,v3,2/5] lib/security: add ESN soft limit in conf

Message ID 1521630685-5179-3-git-send-email-anoob.joseph@caviumnetworks.com (mailing list archive)
State Superseded, archived
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation fail Compilation issues

Commit Message

Anoob Joseph March 21, 2018, 11:11 a.m. UTC
  Adding ESN soft limit in conf. This will be used in case of protocol
offload. Per SA, application could specify for what ESN the security
device need to notify application. In case of eth dev(inline protocol),
rte_eth_event framework would raise an IPsec event.

Signed-off-by: Anoob Joseph <anoob.joseph@caviumnetworks.com>
---
v3:
* Minor change in the comment

v2:
* No change

 lib/librte_security/rte_security.h | 2 ++
 1 file changed, 2 insertions(+)
  

Comments

Anoob Joseph April 3, 2018, 2:27 p.m. UTC | #1
Adding maintainers of testpmd & lib/ethdev

Thanks,
Anoob
On 21/03/18 16:41, Anoob Joseph wrote:
> Adding ESN soft limit in conf. This will be used in case of protocol
> offload. Per SA, application could specify for what ESN the security
> device need to notify application. In case of eth dev(inline protocol),
> rte_eth_event framework would raise an IPsec event.
>
> Signed-off-by: Anoob Joseph <anoob.joseph@caviumnetworks.com>
> ---
> v3:
> * Minor change in the comment
>
> v2:
> * No change
>
>   lib/librte_security/rte_security.h | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/lib/librte_security/rte_security.h b/lib/librte_security/rte_security.h
> index c75c121..ca1e912 100644
> --- a/lib/librte_security/rte_security.h
> +++ b/lib/librte_security/rte_security.h
> @@ -222,6 +222,8 @@ struct rte_security_ipsec_xform {
>   	/**< IPsec SA Mode - transport/tunnel */
>   	struct rte_security_ipsec_tunnel_param tunnel;
>   	/**< Tunnel parameters, NULL for transport mode */
> +	uint64_t esn_soft_limit;
> +	/**< ESN for which the overflow event need to be raised */
>   };
>   
>   /**
  

Patch

diff --git a/lib/librte_security/rte_security.h b/lib/librte_security/rte_security.h
index c75c121..ca1e912 100644
--- a/lib/librte_security/rte_security.h
+++ b/lib/librte_security/rte_security.h
@@ -222,6 +222,8 @@  struct rte_security_ipsec_xform {
 	/**< IPsec SA Mode - transport/tunnel */
 	struct rte_security_ipsec_tunnel_param tunnel;
 	/**< Tunnel parameters, NULL for transport mode */
+	uint64_t esn_soft_limit;
+	/**< ESN for which the overflow event need to be raised */
 };
 
 /**