From: Dekel Peled Date: Thu, 24 Oct 2019 12:52:53 +0000 (+0300) Subject: net/mlx5: change default flow engine to DV X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=cd4569d2bf3c4405f2e06ca88e926fa788bad948;p=dpdk.git 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 Acked-by: Viacheslav Ovsiienko --- diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index fd5a3264be..229609114d 100644 --- a/doc/guides/nics/mlx5.rst +++ b/doc/guides/nics/mlx5.rst @@ -661,7 +661,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 b68612966e..9e4fd03b82 100644 --- a/drivers/net/mlx5/mlx5.c +++ b/drivers/net/mlx5/mlx5.c @@ -3262,6 +3262,7 @@ mlx5_pci_probe(struct rte_pci_driver *pci_drv __rte_unused, .min_rxqs_num = MLX5_MPRQ_MIN_RXQS, }, .dv_esw_en = 1, + .dv_flow_en = 1, }; /* Device specific configuration. */ switch (pci_dev->id.device_id) {