DPDK patches and discussions
 help / color / mirror / Atom feed
* [RFC] ethdev: add async flow connection tracking configuration
@ 2022-08-09 13:25 Suanming Mou
  2022-08-15 12:00 ` Ori Kam
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Suanming Mou @ 2022-08-09 13:25 UTC (permalink / raw)
  To: dev
  Cc: Ori Kam, Xiaoyun Li, Aman Singh, Yuying Zhang, Thomas Monjalon,
	Ferruh Yigit, Andrew Rybchenko

In queue based async flow engine, in order to optimize the flow
insertion rate, PMD can use the hints from application to have
resources pre-allocate during initialization phase for actions
such as count/meter/aging.

This commit adds the connection tracking action hints.

Signed-off-by: Suanming Mou <suanmingm@nvidia.com>
---
 app/test-pmd/cmdline_flow.c            | 10 ++++++++++
 doc/guides/rel_notes/release_22_11.rst |  6 ++++++
 lib/ethdev/rte_flow.h                  | 10 ++++++++++
 3 files changed, 26 insertions(+)

diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c
index 7f50028eb7..c9cbf381c4 100644
--- a/app/test-pmd/cmdline_flow.c
+++ b/app/test-pmd/cmdline_flow.c
@@ -219,6 +219,7 @@ enum index {
 	CONFIG_COUNTERS_NUMBER,
 	CONFIG_AGING_OBJECTS_NUMBER,
 	CONFIG_METERS_NUMBER,
+	CONFIG_CONN_TRACK_NUMBER,
 
 	/* Indirect action arguments */
 	INDIRECT_ACTION_CREATE,
@@ -1081,6 +1082,7 @@ static const enum index next_config_attr[] = {
 	CONFIG_COUNTERS_NUMBER,
 	CONFIG_AGING_OBJECTS_NUMBER,
 	CONFIG_METERS_NUMBER,
+	CONFIG_CONN_TRACK_NUMBER,
 	END,
 	ZERO,
 };
@@ -2667,6 +2669,14 @@ static const struct token token_list[] = {
 		.args = ARGS(ARGS_ENTRY(struct buffer,
 					args.configure.port_attr.nb_meters)),
 	},
+	[CONFIG_CONN_TRACK_NUMBER] = {
+		.name = "conn_tracks_number",
+		.help = "number of connection trackings",
+		.next = NEXT(next_config_attr,
+			     NEXT_ENTRY(COMMON_UNSIGNED)),
+		.args = ARGS(ARGS_ENTRY(struct buffer,
+					args.configure.port_attr.nb_conn_tracks)),
+	},
 	/* Top-level command. */
 	[PATTERN_TEMPLATE] = {
 		.name = "pattern_template",
diff --git a/doc/guides/rel_notes/release_22_11.rst b/doc/guides/rel_notes/release_22_11.rst
index 8c021cf050..c396bfca5f 100644
--- a/doc/guides/rel_notes/release_22_11.rst
+++ b/doc/guides/rel_notes/release_22_11.rst
@@ -55,6 +55,12 @@ New Features
      Also, make sure to start the actual text at the margin.
      =======================================================
 
+* **Added configuration for asynchronous flow connection tracking.**
+
+  Added connection tracking action number hint to ``rte_flow_configure``
+  and ``rte_flow_info_get``.
+  PMD can prepare the connection tracking resources accroding to the hint.
+
 
 Removed Items
 -------------
diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h
index a79f1e7ef0..c2747abc55 100644
--- a/lib/ethdev/rte_flow.h
+++ b/lib/ethdev/rte_flow.h
@@ -4902,6 +4902,11 @@ struct rte_flow_port_info {
 	 * @see RTE_FLOW_ACTION_TYPE_METER
 	 */
 	uint32_t max_nb_meters;
+	/**
+	 * Maximum number connection trackings.
+	 * @see RTE_FLOW_ACTION_TYPE_CONNTRACK
+	 */
+	uint32_t max_nb_conn_tracks;
 };
 
 /**
@@ -4971,6 +4976,11 @@ struct rte_flow_port_attr {
 	 * @see RTE_FLOW_ACTION_TYPE_METER
 	 */
 	uint32_t nb_meters;
+	/**
+	 * Number of connection trackings to configure.
+	 * @see RTE_FLOW_ACTION_TYPE_CONNTRACK
+	 */
+	uint32_t nb_conn_tracks;
 };
 
 /**
-- 
2.25.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [RFC] ethdev: add async flow connection tracking configuration
  2022-08-09 13:25 [RFC] ethdev: add async flow connection tracking configuration Suanming Mou
@ 2022-08-15 12:00 ` Ori Kam
  2022-09-13  7:21 ` Suanming Mou
  2022-09-20  7:10 ` [PATCH v1] " Suanming Mou
  2 siblings, 0 replies; 6+ messages in thread
From: Ori Kam @ 2022-08-15 12:00 UTC (permalink / raw)
  To: Suanming Mou, dev
  Cc: Xiaoyun Li, Aman Singh, Yuying Zhang,
	NBU-Contact-Thomas Monjalon (EXTERNAL),
	Ferruh Yigit, Andrew Rybchenko



> -----Original Message-----
> From: Suanming Mou <suanmingm@nvidia.com>
> Sent: Tuesday, 9 August 2022 16:26
> Subject: [RFC] ethdev: add async flow connection tracking configuration
> 
> In queue based async flow engine, in order to optimize the flow
> insertion rate, PMD can use the hints from application to have
> resources pre-allocate during initialization phase for actions
> such as count/meter/aging.
> 
> This commit adds the connection tracking action hints.
> 
> Signed-off-by: Suanming Mou <suanmingm@nvidia.com>
> ---
>  app/test-pmd/cmdline_flow.c            | 10 ++++++++++
>  doc/guides/rel_notes/release_22_11.rst |  6 ++++++
>  lib/ethdev/rte_flow.h                  | 10 ++++++++++
>  3 files changed, 26 insertions(+)
> 
> diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c
> index 7f50028eb7..c9cbf381c4 100644
> --- a/app/test-pmd/cmdline_flow.c
> +++ b/app/test-pmd/cmdline_flow.c
> @@ -219,6 +219,7 @@ enum index {
>  	CONFIG_COUNTERS_NUMBER,
>  	CONFIG_AGING_OBJECTS_NUMBER,
>  	CONFIG_METERS_NUMBER,
> +	CONFIG_CONN_TRACK_NUMBER,
> 
>  	/* Indirect action arguments */
>  	INDIRECT_ACTION_CREATE,
> @@ -1081,6 +1082,7 @@ static const enum index next_config_attr[] = {
>  	CONFIG_COUNTERS_NUMBER,
>  	CONFIG_AGING_OBJECTS_NUMBER,
>  	CONFIG_METERS_NUMBER,
> +	CONFIG_CONN_TRACK_NUMBER,
>  	END,
>  	ZERO,
>  };
> @@ -2667,6 +2669,14 @@ static const struct token token_list[] = {
>  		.args = ARGS(ARGS_ENTRY(struct buffer,
> 
> 	args.configure.port_attr.nb_meters)),
>  	},
> +	[CONFIG_CONN_TRACK_NUMBER] = {
> +		.name = "conn_tracks_number",
> +		.help = "number of connection trackings",
> +		.next = NEXT(next_config_attr,
> +			     NEXT_ENTRY(COMMON_UNSIGNED)),
> +		.args = ARGS(ARGS_ENTRY(struct buffer,
> +
> 	args.configure.port_attr.nb_conn_tracks)),
> +	},
>  	/* Top-level command. */
>  	[PATTERN_TEMPLATE] = {
>  		.name = "pattern_template",
> diff --git a/doc/guides/rel_notes/release_22_11.rst
> b/doc/guides/rel_notes/release_22_11.rst
> index 8c021cf050..c396bfca5f 100644
> --- a/doc/guides/rel_notes/release_22_11.rst
> +++ b/doc/guides/rel_notes/release_22_11.rst
> @@ -55,6 +55,12 @@ New Features
>       Also, make sure to start the actual text at the margin.
>       =======================================================
> 
> +* **Added configuration for asynchronous flow connection tracking.**
> +
> +  Added connection tracking action number hint to ``rte_flow_configure``
> +  and ``rte_flow_info_get``.
> +  PMD can prepare the connection tracking resources accroding to the hint.
> +
> 
>  Removed Items
>  -------------
> diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h
> index a79f1e7ef0..c2747abc55 100644
> --- a/lib/ethdev/rte_flow.h
> +++ b/lib/ethdev/rte_flow.h
> @@ -4902,6 +4902,11 @@ struct rte_flow_port_info {
>  	 * @see RTE_FLOW_ACTION_TYPE_METER
>  	 */
>  	uint32_t max_nb_meters;
> +	/**
> +	 * Maximum number connection trackings.
> +	 * @see RTE_FLOW_ACTION_TYPE_CONNTRACK
> +	 */
> +	uint32_t max_nb_conn_tracks;
>  };
> 
>  /**
> @@ -4971,6 +4976,11 @@ struct rte_flow_port_attr {
>  	 * @see RTE_FLOW_ACTION_TYPE_METER
>  	 */
>  	uint32_t nb_meters;
> +	/**
> +	 * Number of connection trackings to configure.
> +	 * @see RTE_FLOW_ACTION_TYPE_CONNTRACK
> +	 */
> +	uint32_t nb_conn_tracks;
>  };
> 
>  /**
> --
> 2.25.1

Acked-by: Ori Kam <orika@nvidia.com>
Best,
Ori


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [RFC] ethdev: add async flow connection tracking configuration
  2022-08-09 13:25 [RFC] ethdev: add async flow connection tracking configuration Suanming Mou
  2022-08-15 12:00 ` Ori Kam
@ 2022-09-13  7:21 ` Suanming Mou
  2022-09-13  7:33   ` Ori Kam
  2022-09-20  7:10 ` [PATCH v1] " Suanming Mou
  2 siblings, 1 reply; 6+ messages in thread
From: Suanming Mou @ 2022-09-13  7:21 UTC (permalink / raw)
  To: Xiaoyun Li, Aman Singh, Yuying Zhang,
	NBU-Contact-Thomas Monjalon (EXTERNAL),
	Ferruh Yigit, Andrew Rybchenko
  Cc: dev, Ori Kam

Ping...

> -----Original Message-----
> From: Suanming Mou <suanmingm@nvidia.com>
> Sent: Tuesday, August 9, 2022 9:26 PM
> To: dev@dpdk.org
> Cc: Ori Kam <orika@nvidia.com>; Xiaoyun Li <xiaoyun.li@intel.com>; Aman
> Singh <aman.deep.singh@intel.com>; Yuying Zhang <yuying.zhang@intel.com>;
> NBU-Contact-Thomas Monjalon (EXTERNAL) <thomas@monjalon.net>; Ferruh
> Yigit <ferruh.yigit@xilinx.com>; Andrew Rybchenko
> <andrew.rybchenko@oktetlabs.ru>
> Subject: [RFC] ethdev: add async flow connection tracking configuration
> 
> In queue based async flow engine, in order to optimize the flow insertion rate,
> PMD can use the hints from application to have resources pre-allocate during
> initialization phase for actions such as count/meter/aging.
> 
> This commit adds the connection tracking action hints.
> 
> Signed-off-by: Suanming Mou <suanmingm@nvidia.com>
> ---
>  app/test-pmd/cmdline_flow.c            | 10 ++++++++++
>  doc/guides/rel_notes/release_22_11.rst |  6 ++++++
>  lib/ethdev/rte_flow.h                  | 10 ++++++++++
>  3 files changed, 26 insertions(+)
> 
> diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index
> 7f50028eb7..c9cbf381c4 100644
> --- a/app/test-pmd/cmdline_flow.c
> +++ b/app/test-pmd/cmdline_flow.c
> @@ -219,6 +219,7 @@ enum index {
>  	CONFIG_COUNTERS_NUMBER,
>  	CONFIG_AGING_OBJECTS_NUMBER,
>  	CONFIG_METERS_NUMBER,
> +	CONFIG_CONN_TRACK_NUMBER,
> 
>  	/* Indirect action arguments */
>  	INDIRECT_ACTION_CREATE,
> @@ -1081,6 +1082,7 @@ static const enum index next_config_attr[] = {
>  	CONFIG_COUNTERS_NUMBER,
>  	CONFIG_AGING_OBJECTS_NUMBER,
>  	CONFIG_METERS_NUMBER,
> +	CONFIG_CONN_TRACK_NUMBER,
>  	END,
>  	ZERO,
>  };
> @@ -2667,6 +2669,14 @@ static const struct token token_list[] = {
>  		.args = ARGS(ARGS_ENTRY(struct buffer,
>  					args.configure.port_attr.nb_meters)),
>  	},
> +	[CONFIG_CONN_TRACK_NUMBER] = {
> +		.name = "conn_tracks_number",
> +		.help = "number of connection trackings",
> +		.next = NEXT(next_config_attr,
> +			     NEXT_ENTRY(COMMON_UNSIGNED)),
> +		.args = ARGS(ARGS_ENTRY(struct buffer,
> +
> 	args.configure.port_attr.nb_conn_tracks)),
> +	},
>  	/* Top-level command. */
>  	[PATTERN_TEMPLATE] = {
>  		.name = "pattern_template",
> diff --git a/doc/guides/rel_notes/release_22_11.rst
> b/doc/guides/rel_notes/release_22_11.rst
> index 8c021cf050..c396bfca5f 100644
> --- a/doc/guides/rel_notes/release_22_11.rst
> +++ b/doc/guides/rel_notes/release_22_11.rst
> @@ -55,6 +55,12 @@ New Features
>       Also, make sure to start the actual text at the margin.
>       =======================================================
> 
> +* **Added configuration for asynchronous flow connection tracking.**
> +
> +  Added connection tracking action number hint to
> + ``rte_flow_configure``  and ``rte_flow_info_get``.
> +  PMD can prepare the connection tracking resources accroding to the hint.
> +
> 
>  Removed Items
>  -------------
> diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h index
> a79f1e7ef0..c2747abc55 100644
> --- a/lib/ethdev/rte_flow.h
> +++ b/lib/ethdev/rte_flow.h
> @@ -4902,6 +4902,11 @@ struct rte_flow_port_info {
>  	 * @see RTE_FLOW_ACTION_TYPE_METER
>  	 */
>  	uint32_t max_nb_meters;
> +	/**
> +	 * Maximum number connection trackings.
> +	 * @see RTE_FLOW_ACTION_TYPE_CONNTRACK
> +	 */
> +	uint32_t max_nb_conn_tracks;
>  };
> 
>  /**
> @@ -4971,6 +4976,11 @@ struct rte_flow_port_attr {
>  	 * @see RTE_FLOW_ACTION_TYPE_METER
>  	 */
>  	uint32_t nb_meters;
> +	/**
> +	 * Number of connection trackings to configure.
> +	 * @see RTE_FLOW_ACTION_TYPE_CONNTRACK
> +	 */
> +	uint32_t nb_conn_tracks;
>  };
> 
>  /**
> --
> 2.25.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [RFC] ethdev: add async flow connection tracking configuration
  2022-09-13  7:21 ` Suanming Mou
@ 2022-09-13  7:33   ` Ori Kam
  0 siblings, 0 replies; 6+ messages in thread
From: Ori Kam @ 2022-09-13  7:33 UTC (permalink / raw)
  To: Suanming Mou, Xiaoyun Li, Aman Singh, Yuying Zhang,
	NBU-Contact-Thomas Monjalon (EXTERNAL),
	Ferruh Yigit, Andrew Rybchenko
  Cc: dev

Hi Suanming

> -----Original Message-----
> From: Suanming Mou <suanmingm@nvidia.com>
> Cc: dev@dpdk.org; Ori Kam <orika@nvidia.com>
> Subject: RE: [RFC] ethdev: add async flow connection tracking configuration
> 
> Ping...
> 
> > -----Original Message-----
> > From: Suanming Mou <suanmingm@nvidia.com>
> > Sent: Tuesday, August 9, 2022 9:26 PM
> > To: dev@dpdk.org
> > Cc: Ori Kam <orika@nvidia.com>; Xiaoyun Li <xiaoyun.li@intel.com>; Aman
> > Singh <aman.deep.singh@intel.com>; Yuying Zhang
> <yuying.zhang@intel.com>;
> > NBU-Contact-Thomas Monjalon (EXTERNAL) <thomas@monjalon.net>;
> Ferruh
> > Yigit <ferruh.yigit@xilinx.com>; Andrew Rybchenko
> > <andrew.rybchenko@oktetlabs.ru>
> > Subject: [RFC] ethdev: add async flow connection tracking configuration
> >
> > In queue based async flow engine, in order to optimize the flow insertion
> rate,
> > PMD can use the hints from application to have resources pre-allocate
> during
> > initialization phase for actions such as count/meter/aging.
> >
> > This commit adds the connection tracking action hints.
> >
> > Signed-off-by: Suanming Mou <suanmingm@nvidia.com>
> > ---
> >  app/test-pmd/cmdline_flow.c            | 10 ++++++++++
> >  doc/guides/rel_notes/release_22_11.rst |  6 ++++++
> >  lib/ethdev/rte_flow.h                  | 10 ++++++++++
> >  3 files changed, 26 insertions(+)
> >
> > diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c
> index
> > 7f50028eb7..c9cbf381c4 100644
> > --- a/app/test-pmd/cmdline_flow.c
> > +++ b/app/test-pmd/cmdline_flow.c
> > @@ -219,6 +219,7 @@ enum index {
> >  	CONFIG_COUNTERS_NUMBER,
> >  	CONFIG_AGING_OBJECTS_NUMBER,
> >  	CONFIG_METERS_NUMBER,
> > +	CONFIG_CONN_TRACK_NUMBER,
> >
> >  	/* Indirect action arguments */
> >  	INDIRECT_ACTION_CREATE,
> > @@ -1081,6 +1082,7 @@ static const enum index next_config_attr[] = {
> >  	CONFIG_COUNTERS_NUMBER,
> >  	CONFIG_AGING_OBJECTS_NUMBER,
> >  	CONFIG_METERS_NUMBER,
> > +	CONFIG_CONN_TRACK_NUMBER,
> >  	END,
> >  	ZERO,
> >  };
> > @@ -2667,6 +2669,14 @@ static const struct token token_list[] = {
> >  		.args = ARGS(ARGS_ENTRY(struct buffer,
> >  					args.configure.port_attr.nb_meters)),
> >  	},
> > +	[CONFIG_CONN_TRACK_NUMBER] = {
> > +		.name = "conn_tracks_number",
> > +		.help = "number of connection trackings",
> > +		.next = NEXT(next_config_attr,
> > +			     NEXT_ENTRY(COMMON_UNSIGNED)),
> > +		.args = ARGS(ARGS_ENTRY(struct buffer,
> > +
> > 	args.configure.port_attr.nb_conn_tracks)),
> > +	},
> >  	/* Top-level command. */
> >  	[PATTERN_TEMPLATE] = {
> >  		.name = "pattern_template",
> > diff --git a/doc/guides/rel_notes/release_22_11.rst
> > b/doc/guides/rel_notes/release_22_11.rst
> > index 8c021cf050..c396bfca5f 100644
> > --- a/doc/guides/rel_notes/release_22_11.rst
> > +++ b/doc/guides/rel_notes/release_22_11.rst
> > @@ -55,6 +55,12 @@ New Features
> >       Also, make sure to start the actual text at the margin.
> >       =======================================================
> >
> > +* **Added configuration for asynchronous flow connection tracking.**
> > +
> > +  Added connection tracking action number hint to
> > + ``rte_flow_configure``  and ``rte_flow_info_get``.
> > +  PMD can prepare the connection tracking resources accroding to the
> hint.
> > +
> >
> >  Removed Items
> >  -------------
> > diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h index
> > a79f1e7ef0..c2747abc55 100644
> > --- a/lib/ethdev/rte_flow.h
> > +++ b/lib/ethdev/rte_flow.h
> > @@ -4902,6 +4902,11 @@ struct rte_flow_port_info {
> >  	 * @see RTE_FLOW_ACTION_TYPE_METER
> >  	 */
> >  	uint32_t max_nb_meters;
> > +	/**
> > +	 * Maximum number connection trackings.
> > +	 * @see RTE_FLOW_ACTION_TYPE_CONNTRACK
> > +	 */
> > +	uint32_t max_nb_conn_tracks;
> >  };
> >
> >  /**
> > @@ -4971,6 +4976,11 @@ struct rte_flow_port_attr {
> >  	 * @see RTE_FLOW_ACTION_TYPE_METER
> >  	 */
> >  	uint32_t nb_meters;
> > +	/**
> > +	 * Number of connection trackings to configure.
> > +	 * @see RTE_FLOW_ACTION_TYPE_CONNTRACK
> > +	 */
> > +	uint32_t nb_conn_tracks;
> >  };
> >
> >  /**
> > --
> > 2.25.1

Acked-by: Ori Kam <orika@nvidia.com>
Thanks,
Ori


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH v1] ethdev: add async flow connection tracking configuration
  2022-08-09 13:25 [RFC] ethdev: add async flow connection tracking configuration Suanming Mou
  2022-08-15 12:00 ` Ori Kam
  2022-09-13  7:21 ` Suanming Mou
@ 2022-09-20  7:10 ` Suanming Mou
  2022-09-28  8:34   ` Andrew Rybchenko
  2 siblings, 1 reply; 6+ messages in thread
From: Suanming Mou @ 2022-09-20  7:10 UTC (permalink / raw)
  To: Ori Kam, Aman Singh, Yuying Zhang, Thomas Monjalon, Ferruh Yigit,
	Andrew Rybchenko
  Cc: dev

In queue based async flow engine, in order to optimize the flow
insertion rate, PMD can use the hints from application to have
resources pre-allocate during initialization phase for actions
such as count/meter/aging.

This commit adds the connection tracking action hints.

Signed-off-by: Suanming Mou <suanmingm@nvidia.com>
Acked-by: Ori Kam <orika@nvidia.com>
---
 app/test-pmd/cmdline_flow.c            | 10 ++++++++++
 doc/guides/rel_notes/release_22_11.rst |  6 ++++++
 lib/ethdev/rte_flow.h                  | 10 ++++++++++
 3 files changed, 26 insertions(+)

diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c
index 7f50028eb7..c9cbf381c4 100644
--- a/app/test-pmd/cmdline_flow.c
+++ b/app/test-pmd/cmdline_flow.c
@@ -219,6 +219,7 @@ enum index {
 	CONFIG_COUNTERS_NUMBER,
 	CONFIG_AGING_OBJECTS_NUMBER,
 	CONFIG_METERS_NUMBER,
+	CONFIG_CONN_TRACK_NUMBER,
 
 	/* Indirect action arguments */
 	INDIRECT_ACTION_CREATE,
@@ -1081,6 +1082,7 @@ static const enum index next_config_attr[] = {
 	CONFIG_COUNTERS_NUMBER,
 	CONFIG_AGING_OBJECTS_NUMBER,
 	CONFIG_METERS_NUMBER,
+	CONFIG_CONN_TRACK_NUMBER,
 	END,
 	ZERO,
 };
@@ -2667,6 +2669,14 @@ static const struct token token_list[] = {
 		.args = ARGS(ARGS_ENTRY(struct buffer,
 					args.configure.port_attr.nb_meters)),
 	},
+	[CONFIG_CONN_TRACK_NUMBER] = {
+		.name = "conn_tracks_number",
+		.help = "number of connection trackings",
+		.next = NEXT(next_config_attr,
+			     NEXT_ENTRY(COMMON_UNSIGNED)),
+		.args = ARGS(ARGS_ENTRY(struct buffer,
+					args.configure.port_attr.nb_conn_tracks)),
+	},
 	/* Top-level command. */
 	[PATTERN_TEMPLATE] = {
 		.name = "pattern_template",
diff --git a/doc/guides/rel_notes/release_22_11.rst b/doc/guides/rel_notes/release_22_11.rst
index 8c021cf050..d5e64ff9a1 100644
--- a/doc/guides/rel_notes/release_22_11.rst
+++ b/doc/guides/rel_notes/release_22_11.rst
@@ -55,6 +55,12 @@ New Features
      Also, make sure to start the actual text at the margin.
      =======================================================
 
+* **Added configuration for asynchronous flow connection tracking.**
+
+  Added connection tracking action number hint to ``rte_flow_configure``
+  and ``rte_flow_info_get``.
+  PMD can prepare the connection tracking resources according to the hint.
+
 
 Removed Items
 -------------
diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h
index a79f1e7ef0..c2747abc55 100644
--- a/lib/ethdev/rte_flow.h
+++ b/lib/ethdev/rte_flow.h
@@ -4902,6 +4902,11 @@ struct rte_flow_port_info {
 	 * @see RTE_FLOW_ACTION_TYPE_METER
 	 */
 	uint32_t max_nb_meters;
+	/**
+	 * Maximum number connection trackings.
+	 * @see RTE_FLOW_ACTION_TYPE_CONNTRACK
+	 */
+	uint32_t max_nb_conn_tracks;
 };
 
 /**
@@ -4971,6 +4976,11 @@ struct rte_flow_port_attr {
 	 * @see RTE_FLOW_ACTION_TYPE_METER
 	 */
 	uint32_t nb_meters;
+	/**
+	 * Number of connection trackings to configure.
+	 * @see RTE_FLOW_ACTION_TYPE_CONNTRACK
+	 */
+	uint32_t nb_conn_tracks;
 };
 
 /**
-- 
2.25.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v1] ethdev: add async flow connection tracking configuration
  2022-09-20  7:10 ` [PATCH v1] " Suanming Mou
@ 2022-09-28  8:34   ` Andrew Rybchenko
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew Rybchenko @ 2022-09-28  8:34 UTC (permalink / raw)
  To: Suanming Mou, Ori Kam, Aman Singh, Yuying Zhang, Thomas Monjalon,
	Ferruh Yigit
  Cc: dev

On 9/20/22 10:10, Suanming Mou wrote:
> In queue based async flow engine, in order to optimize the flow
> insertion rate, PMD can use the hints from application to have
> resources pre-allocate during initialization phase for actions
> such as count/meter/aging.
> 
> This commit adds the connection tracking action hints.
> 
> Signed-off-by: Suanming Mou <suanmingm@nvidia.com>
> Acked-by: Ori Kam <orika@nvidia.com>

Applied to dpdk-next-net/main, thanks.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-09-28  8:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-09 13:25 [RFC] ethdev: add async flow connection tracking configuration Suanming Mou
2022-08-15 12:00 ` Ori Kam
2022-09-13  7:21 ` Suanming Mou
2022-09-13  7:33   ` Ori Kam
2022-09-20  7:10 ` [PATCH v1] " Suanming Mou
2022-09-28  8:34   ` Andrew Rybchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).