DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/mlx5: change default flow engine to DV
@ 2019-10-24 11:55 Dekel Peled
  2019-10-24 12:52 ` [dpdk-dev] [PATCH v2] " Dekel Peled
  0 siblings, 1 reply; 4+ messages in thread
From: Dekel Peled @ 2019-10-24 11:55 UTC (permalink / raw)
  To: matan, viacheslavo, shahafs; +Cc: orika, dev

The default flow engine is Verbs flow engine, for legacy reasons.
This patch changes the default to DV flow engine (dv_flow_en = 1).
Documentation is updated accordingly.

Signed-off-by: Dekel Peled <dekelp@mellanox.com>
---
 doc/guides/nics/mlx5.rst | 6 +++---
 drivers/net/mlx5/mlx5.c  | 1 +
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst
index fc7de52..bf01ea1 100644
--- a/doc/guides/nics/mlx5.rst
+++ b/doc/guides/nics/mlx5.rst
@@ -203,9 +203,9 @@ Limitations
 
 - LRO:
 
-  - Requires DevX to be enabled.
+  - Requires DevX and DV flow to be enabled.
   - KEEP_CRC offload cannot be supported with LRO.
-  - The first mbuf length, without head-room,  must be big enough to include the
+  - The first mbuf length, without head-room, must be big enough to include the
     TCP header (122B).
 
 Statistics
@@ -583,7 +583,7 @@ Run-time configuration
   A nonzero value enables the DV flow steering assuming it is supported
   by the driver.
 
-  Disabled by default.
+  Enabled by default if supported.
 
 - ``dv_esw_en`` parameter [int]
 
diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c
index 571e766..ad3288d 100644
--- a/drivers/net/mlx5/mlx5.c
+++ b/drivers/net/mlx5/mlx5.c
@@ -2723,6 +2723,7 @@ struct mlx5_dev_spawn_data {
 			.min_rxqs_num = MLX5_MPRQ_MIN_RXQS,
 		},
 		.dv_esw_en = 1,
+		.dv_flow_en = 1,
 	};
 	/* Device specific configuration. */
 	switch (pci_dev->id.device_id) {
-- 
1.8.3.1


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

* [dpdk-dev] [PATCH v2] net/mlx5: change default flow engine to DV
  2019-10-24 11:55 [dpdk-dev] [PATCH] net/mlx5: change default flow engine to DV Dekel Peled
@ 2019-10-24 12:52 ` Dekel Peled
  2019-11-18  9:18   ` Slava Ovsiienko
  2019-11-18 12:30   ` Raslan Darawsheh
  0 siblings, 2 replies; 4+ messages in thread
From: Dekel Peled @ 2019-10-24 12:52 UTC (permalink / raw)
  To: matan, viacheslavo, shahafs; +Cc: orika, dev

The default flow engine is Verbs flow engine, for legacy reasons.
This patch changes the default to DV flow engine (dv_flow_en = 1).
Documentation is updated accordingly.

Signed-off-by: Dekel Peled <dekelp@mellanox.com>
---
 doc/guides/nics/mlx5.rst | 2 +-
 drivers/net/mlx5/mlx5.c  | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst
index fc7de52..600cea7 100644
--- a/doc/guides/nics/mlx5.rst
+++ b/doc/guides/nics/mlx5.rst
@@ -583,7 +583,7 @@ Run-time configuration
   A nonzero value enables the DV flow steering assuming it is supported
   by the driver.
 
-  Disabled by default.
+  Enabled by default if supported.
 
 - ``dv_esw_en`` parameter [int]
 
diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c
index fac5105..b99c5a9 100644
--- a/drivers/net/mlx5/mlx5.c
+++ b/drivers/net/mlx5/mlx5.c
@@ -2721,6 +2721,7 @@ struct mlx5_dev_spawn_data {
 			.min_rxqs_num = MLX5_MPRQ_MIN_RXQS,
 		},
 		.dv_esw_en = 1,
+		.dv_flow_en = 1,
 	};
 	/* Device specific configuration. */
 	switch (pci_dev->id.device_id) {
-- 
1.8.3.1


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

* Re: [dpdk-dev] [PATCH v2] net/mlx5: change default flow engine to DV
  2019-10-24 12:52 ` [dpdk-dev] [PATCH v2] " Dekel Peled
@ 2019-11-18  9:18   ` Slava Ovsiienko
  2019-11-18 12:30   ` Raslan Darawsheh
  1 sibling, 0 replies; 4+ messages in thread
From: Slava Ovsiienko @ 2019-11-18  9:18 UTC (permalink / raw)
  To: Dekel Peled, Matan Azrad, Shahaf Shuler; +Cc: Ori Kam, dev

> -----Original Message-----
> From: Dekel Peled <dekelp@mellanox.com>
> Sent: Thursday, October 24, 2019 15:53
> To: Matan Azrad <matan@mellanox.com>; Slava Ovsiienko
> <viacheslavo@mellanox.com>; Shahaf Shuler <shahafs@mellanox.com>
> Cc: Ori Kam <orika@mellanox.com>; dev@dpdk.org
> Subject: [PATCH v2] net/mlx5: change default flow engine to DV
> 
> The default flow engine is Verbs flow engine, for legacy reasons.
> This patch changes the default to DV flow engine (dv_flow_en = 1).
> Documentation is updated accordingly.
> 
> Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>


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

* Re: [dpdk-dev] [PATCH v2] net/mlx5: change default flow engine to DV
  2019-10-24 12:52 ` [dpdk-dev] [PATCH v2] " Dekel Peled
  2019-11-18  9:18   ` Slava Ovsiienko
@ 2019-11-18 12:30   ` Raslan Darawsheh
  1 sibling, 0 replies; 4+ messages in thread
From: Raslan Darawsheh @ 2019-11-18 12:30 UTC (permalink / raw)
  To: Dekel Peled, Matan Azrad, Slava Ovsiienko, Shahaf Shuler; +Cc: Ori Kam, dev

Hi,
> -----Original Message-----
> From: dev <dev-bounces@dpdk.org> On Behalf Of Dekel Peled
> Sent: Thursday, October 24, 2019 3:53 PM
> To: Matan Azrad <matan@mellanox.com>; Slava Ovsiienko
> <viacheslavo@mellanox.com>; Shahaf Shuler <shahafs@mellanox.com>
> Cc: Ori Kam <orika@mellanox.com>; dev@dpdk.org
> Subject: [dpdk-dev] [PATCH v2] net/mlx5: change default flow engine to DV
> 
> The default flow engine is Verbs flow engine, for legacy reasons.
> This patch changes the default to DV flow engine (dv_flow_en = 1).
> Documentation is updated accordingly.
> 
> Signed-off-by: Dekel Peled <dekelp@mellanox.com>
> ---
>  doc/guides/nics/mlx5.rst | 2 +-
>  drivers/net/mlx5/mlx5.c  | 1 +
>  2 files changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index
> fc7de52..600cea7 100644
> --- a/doc/guides/nics/mlx5.rst
> +++ b/doc/guides/nics/mlx5.rst
> @@ -583,7 +583,7 @@ Run-time configuration
>    A nonzero value enables the DV flow steering assuming it is supported
>    by the driver.
> 
> -  Disabled by default.
> +  Enabled by default if supported.
> 
>  - ``dv_esw_en`` parameter [int]
> 
> diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index
> fac5105..b99c5a9 100644
> --- a/drivers/net/mlx5/mlx5.c
> +++ b/drivers/net/mlx5/mlx5.c
> @@ -2721,6 +2721,7 @@ struct mlx5_dev_spawn_data {
>  			.min_rxqs_num = MLX5_MPRQ_MIN_RXQS,
>  		},
>  		.dv_esw_en = 1,
> +		.dv_flow_en = 1,
>  	};
>  	/* Device specific configuration. */
>  	switch (pci_dev->id.device_id) {
> --
> 1.8.3.1


Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh


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

end of thread, other threads:[~2019-11-18 12:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-24 11:55 [dpdk-dev] [PATCH] net/mlx5: change default flow engine to DV Dekel Peled
2019-10-24 12:52 ` [dpdk-dev] [PATCH v2] " Dekel Peled
2019-11-18  9:18   ` Slava Ovsiienko
2019-11-18 12:30   ` Raslan Darawsheh

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).