From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A9613A32A2 for ; Thu, 24 Oct 2019 14:55:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1A44F1EA4D; Thu, 24 Oct 2019 14:55:52 +0200 (CEST) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 0865E1EA4A for ; Thu, 24 Oct 2019 14:55:50 +0200 (CEST) Received: from Internal Mail-Server by MTLPINE1 (envelope-from dekelp@mellanox.com) with ESMTPS (AES256-SHA encrypted); 24 Oct 2019 14:55:46 +0200 Received: from mtl-vdi-280.wap.labs.mlnx. (mtl-vdi-280.wap.labs.mlnx [10.128.130.87]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x9OCtjPd008955; Thu, 24 Oct 2019 15:55:45 +0300 From: Dekel Peled To: matan@mellanox.com, viacheslavo@mellanox.com, shahafs@mellanox.com Cc: orika@mellanox.com, dev@dpdk.org Date: Thu, 24 Oct 2019 15:52:53 +0300 Message-Id: X-Mailer: git-send-email 1.7.1 In-Reply-To: <3305860b2bb3e310fe614644ee6fc44d11b00a7c.1571918258.git.dekelp@mellanox.com> References: <3305860b2bb3e310fe614644ee6fc44d11b00a7c.1571918258.git.dekelp@mellanox.com> Subject: [dpdk-dev] [PATCH v2] net/mlx5: change default flow engine to DV X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "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 --- 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