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 38658A09E8 for ; Tue, 8 Dec 2020 15:22:35 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DB1C998; Tue, 8 Dec 2020 15:22:33 +0100 (CET) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id DE7F898 for ; Tue, 8 Dec 2020 15:22:30 +0100 (CET) Received: from Internal Mail-Server by MTLPINE1 (envelope-from michaelba@nvidia.com) with SMTP; 8 Dec 2020 16:22:28 +0200 Received: from nvidia.com (pegasus07.mtr.labs.mlnx [10.210.16.112]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 0B8EMSoj007779; Tue, 8 Dec 2020 16:22:28 +0200 From: Michael Baum To: stable@dpdk.org Cc: ktraynor@redhat.com, viacheslavo@nvidia.com Date: Tue, 8 Dec 2020 14:22:25 +0000 Message-Id: <1607437345-12268-1-git-send-email-michaelba@nvidia.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dpdk-stable] [PATCH 18.11] net/mlx5: remove unused variable in Tx queue creation X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" [ upstream commit fa2dd3d4d6e24bf2956828bf05de86e6e6d88c3e ] When a CQ is not created by DevX, it be allocated by either DV function or by regular Verbs function. The CQ DV attributes variable was wrongly defined and initialized in Tx queue creation while the CQ is created by the regular Verbs function what remained the attributes variable unused. Remove the unused variable. Fixes: faf2667fe8d5 ("net/mlx5: separate DPDK from verbs Tx queue objects") Signed-off-by: Michael Baum Acked-by: Matan Azrad --- drivers/net/mlx5/mlx5_txq.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/net/mlx5/mlx5_txq.c b/drivers/net/mlx5/mlx5_txq.c index 42ab34a..89580dd 100644 --- a/drivers/net/mlx5/mlx5_txq.c +++ b/drivers/net/mlx5/mlx5_txq.c @@ -405,7 +405,6 @@ struct mlx5_txq_ibv * struct mlx5_txq_ibv *txq_ibv = NULL; union { struct ibv_qp_init_attr_ex init; - struct ibv_cq_init_attr_ex cq; struct ibv_qp_attr mod; } attr; unsigned int cqe_n; @@ -427,9 +426,6 @@ struct mlx5_txq_ibv * return NULL; } memset(&tmpl, 0, sizeof(struct mlx5_txq_ibv)); - attr.cq = (struct ibv_cq_init_attr_ex){ - .comp_mask = 0, - }; cqe_n = ((desc / MLX5_TX_COMP_THRESH) - 1) ? ((desc / MLX5_TX_COMP_THRESH) - 1) : 1; if (is_empw_burst_func(tx_pkt_burst)) -- 1.8.3.1