From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 01EC2A0524; Thu, 4 Feb 2021 17:07:37 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 81ACD24068D; Thu, 4 Feb 2021 17:07:37 +0100 (CET) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by mails.dpdk.org (Postfix) with ESMTP id D4CD6240682 for ; Thu, 4 Feb 2021 17:07:35 +0100 (CET) Received: from Internal Mail-Server by MTLPINE1 (envelope-from akozyrev@nvidia.com) with SMTP; 4 Feb 2021 18:07:31 +0200 Received: from nvidia.com (pegasus02.mtr.labs.mlnx [10.210.16.122]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 114G7UKZ025873; Thu, 4 Feb 2021 18:07:30 +0200 From: Alexander Kozyrev To: dev@dpdk.org Cc: rasland@nvidia.com, ferruh.yigit@intel.com, viacheslavo@nvidia.com Date: Thu, 4 Feb 2021 16:07:28 +0000 Message-Id: <20210204160728.16048-1-akozyrev@nvidia.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] net/mlx5: fix default CQE compression config X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" CQE compression must be enabled by default unless the rxq_cqe_comp_en devarg is set to 0 or FW cannot support CQE compression for some reason. The latest commit that introduced checks for FW capabilities for new CQE zipping formats disables the CQE compression unless the devarg is 1. Revert this logic and enable CQE compression by default again. Please squash this fix with the original commit. Fixes: f5ae0d46b9 ("net/mlx5: check FW miniCQE format capabilities") Signed-off-by: Alexander Kozyrev --- drivers/net/mlx5/linux/mlx5_os.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/mlx5/linux/mlx5_os.c b/drivers/net/mlx5/linux/mlx5_os.c index 79a4376f91..2dc079779d 100644 --- a/drivers/net/mlx5/linux/mlx5_os.c +++ b/drivers/net/mlx5/linux/mlx5_os.c @@ -867,6 +867,8 @@ mlx5_dev_spawn(struct rte_device *dpdk_dev, mprq_caps.max_single_wqe_log_num_of_strides; } #endif + /* Rx CQE compression is enabled by default. */ + config->cqe_comp = 1; #ifdef HAVE_IBV_DEVICE_TUNNEL_SUPPORT if (dv_attr.comp_mask & MLX5DV_CONTEXT_MASK_TUNNEL_OFFLOADS) { tunnel_en = ((dv_attr.tunnel_offloads_caps & -- 2.24.1