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 <[email protected]> --- 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

