diff mbox series

[API-NEXT,3/3] api: ipsec: add max number of cos capability

Message ID 20170505123435.11019-3-petri.savolainen@linaro.org
State Superseded
Headers show
Series [API-NEXT,1/3] api: ipsec: refine packet order specification | expand

Commit Message

Petri Savolainen May 5, 2017, 12:34 p.m. UTC
Added capability for maximum number of different CoS in
CLS pipelining.

Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>

---
 include/odp/api/spec/ipsec.h | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

-- 
2.11.0

Comments

Bill Fischofer May 5, 2017, 3:15 p.m. UTC | #1
On Fri, May 5, 2017 at 7:34 AM, Petri Savolainen <
petri.savolainen@linaro.org> wrote:

> Added capability for maximum number of different CoS in

> CLS pipelining.

>

> Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>

> ---

>  include/odp/api/spec/ipsec.h | 8 +++++++-

>  1 file changed, 7 insertions(+), 1 deletion(-)

>

> diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h

> index 255fee50..6be8169a 100644

> --- a/include/odp/api/spec/ipsec.h

> +++ b/include/odp/api/spec/ipsec.h

> @@ -250,6 +250,11 @@ typedef struct odp_ipsec_capability_t {

>          */

>         odp_support_t pipeline_cls;

>

> +       /** Maximum number of different destination CoSes in classification

> +        *  pipelining. The same CoS may be used for many SAs.

> +        */

> +       uint32_t max_cls_cos;

>


Might be worth mentioning that max_cls_cos will be less than or equal to
the odp_cls_capability() max_cos value.


> +

>         /** Soft expiry limit in seconds support

>          *

>          *  0: Limit is not supported

> @@ -658,7 +663,8 @@ typedef struct odp_ipsec_sa_param_t {

>          *  classification through this CoS. Other result events are sent

> to

>          *  'dest_queue'. This field is considered only when 'pipeline' is

>          *  ODP_IPSEC_PIPELINE_CLS. The CoS must not be shared between any

> pktio

> -        *  interface default CoS.

> +        *  interface default CoS. The maximum number of different CoS

> supported

> +        *  is defined by IPsec capability max_cls_cos.

>          */

>         odp_cos_t dest_cos;

>

> --

> 2.11.0

>

>
diff mbox series

Patch

diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index 255fee50..6be8169a 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -250,6 +250,11 @@  typedef struct odp_ipsec_capability_t {
 	 */
 	odp_support_t pipeline_cls;
 
+	/** Maximum number of different destination CoSes in classification
+	 *  pipelining. The same CoS may be used for many SAs.
+	 */
+	uint32_t max_cls_cos;
+
 	/** Soft expiry limit in seconds support
 	 *
 	 *  0: Limit is not supported
@@ -658,7 +663,8 @@  typedef struct odp_ipsec_sa_param_t {
 	 *  classification through this CoS. Other result events are sent to
 	 *  'dest_queue'. This field is considered only when 'pipeline' is
 	 *  ODP_IPSEC_PIPELINE_CLS. The CoS must not be shared between any pktio
-	 *  interface default CoS.
+	 *  interface default CoS. The maximum number of different CoS supported
+	 *  is defined by IPsec capability max_cls_cos.
 	 */
 	odp_cos_t dest_cos;