> -----Original Message-----
> From: Nicolau, Radu <radu.nico...@intel.com>
> Sent: Friday, September 3, 2021 12:26 PM
> To: Akhil Goyal <gak...@marvell.com>; Doherty, Declan
> <declan.dohe...@intel.com>
> Cc: dev@dpdk.org; m...@ashroe.eu; Ananyev, Konstantin
> <konstantin.anan...@intel.com>; Medvedkin, Vladimir
> <vladimir.medved...@intel.com>; Richardson, Bruce
> <bruce.richard...@intel.com>; Zhang, Roy Fan <roy.fan.zh...@intel.com>;
> hemant.agra...@nxp.com; ano...@marvell.com; Sinha, Abhijit
> <abhijit.si...@intel.com>; Buckley, Daniel M <daniel.m.buck...@intel.com>;
> march...@marvell.com; ktejas...@marvell.com; ma...@nvidia.com;
> Nicolau, Radu <radu.nico...@intel.com>
> Subject: [PATCH v4 02/10] security: add UDP params for IPsec NAT-T
> 
> Add support for specifying UDP port params for UDP encapsulation option.
> 
> Signed-off-by: Declan Doherty <declan.dohe...@intel.com>
> Signed-off-by: Radu Nicolau <radu.nico...@intel.com>
> Signed-off-by: Abhijit Sinha <abhijit.si...@intel.com>
> Signed-off-by: Daniel Martin Buckley <daniel.m.buck...@intel.com>
> ---
>  lib/security/rte_security.h | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/lib/security/rte_security.h b/lib/security/rte_security.h
> index 45896a77d0..03572b10ab 100644
> --- a/lib/security/rte_security.h
> +++ b/lib/security/rte_security.h
> @@ -112,6 +112,12 @@ struct rte_security_ipsec_tunnel_param {
>       };
>  };
> 
> +struct rte_security_ipsec_udp_param {
> +
> +     uint16_t sport;
> +     uint16_t dport;
> +};
> +
>  /**
>   * IPsec Security Association option flags
>   */
> @@ -224,6 +230,8 @@ struct rte_security_ipsec_xform {
>       /**< IPsec SA Mode - transport/tunnel */
>       struct rte_security_ipsec_tunnel_param tunnel;
>       /**< Tunnel parameters, NULL for transport mode */
> +     struct rte_security_ipsec_udp_param udp;
> +     /**< UDP parameters, ignored when udp_encap option not
> specified */
>       uint64_t esn_soft_limit;
>       /**< ESN for which the overflow event need to be raised */
>       uint32_t replay_win_sz;
> --
> 2.25.1
Acked-by: Fan Zhang <roy.fan.zh...@intel.com>

Reply via email to