net/mlx5: change default flow engine to DV
authorDekel Peled <dekelp@mellanox.com>
Thu, 24 Oct 2019 12:52:53 +0000 (15:52 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 20 Nov 2019 16:36:06 +0000 (17:36 +0100)
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>
doc/guides/nics/mlx5.rst
drivers/net/mlx5/mlx5.c

index fd5a326..2296091 100644 (file)
@@ -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]
 
index b686129..9e4fd03 100644 (file)
@@ -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) {