Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1490979ybl; Thu, 22 Aug 2019 15:44:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqxK61nFhVr5wQTRKwfAMdaEOQsKmZa8LrfE5O5k59mAFlLTBns2L74B6jRZYlAwYOY7i3A3 X-Received: by 2002:a62:8648:: with SMTP id x69mr1729336pfd.92.1566513879138; Thu, 22 Aug 2019 15:44:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566513879; cv=none; d=google.com; s=arc-20160816; b=V0yeATZZzPjXQqQPHabpk7FsrK3XCIJ2Q7wxj0AU1Njs8J9Ysirns7wuL3WP7EpyuY jv5SCgv5yEnXKov3rvBY6BL+aH7zdTlKw8Dw6t1UK1WvkLnotz2nsNNE7IPu3NjCrzRo KwFK+tdrNRCqSDsrJsN1QMx1MEMnCs+lx8ueRIM5OfIz3Qjef4ElefFw3LK3NrOgE0iv Q3Zaqkf8hP5pozF47JQgWfS+asEkwhcSvP/ZVpyO9qgGrj/In66JC9Ht2cka9APMImgz CIcOmYHdAtOmte6RLbHQudG4k0DoZRX7nYIo+hzGQvQ32QSeaLuWNL+1JtVGQ01iV4Vz 4rQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CUdQDHHeOoR0uExEmygXX4KrvYY1t9gKSftW+W1ULXs=; b=veBYgzVNG0+l4WsYESpTPWBWBon7D7DlP7pfQxImN0RVNc/TdIs5ba+dFAE+b5VAtH vPuF2YEE+EqdrggrHSnVeibe4UtBobHekET8SacPDs6KzIYDueUq22e9qCaHTipAErVw BfMAQJy7SQz0zTqV13we4t/3C9ELzRlYcLGvopeDZ0JQQxodyvHdTPN5KeQseh6CrqUB SmoWPx+k6itREYbvGEMwkorauoWy5qWcMgtH7vpL2QPy4xh6nMn21TRT7FWsY2Bm7Q4d BHCG7Kh+agZvM0DqgK17EdiYT8QwiWyBcQmbTIqcWgjdAOx5PRt6jA62H97s50Enp7V9 NRhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Fp8H602o; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 80si482083pgf.5.2019.08.22.15.44.23; Thu, 22 Aug 2019 15:44:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Fp8H602o; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389191AbfHVRKa (ORCPT + 99 others); Thu, 22 Aug 2019 13:10:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:59656 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390762AbfHVRJZ (ORCPT ); Thu, 22 Aug 2019 13:09:25 -0400 Received: from sasha-vm.mshome.net (wsip-184-188-36-2.sd.sd.cox.net [184.188.36.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 31683233FE; Thu, 22 Aug 2019 17:09:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566493764; bh=hCKc/49FPlbfa3AGQa8eMrdEN7HZiVv40ny/YIV8kbw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Fp8H602oPnv5kvP46qE452RyUlDYM/zV2okMSzbIGnj6cG/GJiiMLzGn9bY4aRdq4 qjQqsGMgVGu7RQa+TLX5zfpQFQ//a/g3NltpJ0DKabT3+gv+8rpInDVbtXpZfrpWxg ehVhaiKmM/xDL0FxH3KwQDfu6sixjzKzslIusPXA= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Aya Levin , Saeed Mahameed , Greg Kroah-Hartman Subject: [PATCH 5.2 130/135] net/mlx5e: Remove redundant check in CQE recovery flow of tx reporter Date: Thu, 22 Aug 2019 13:08:06 -0400 Message-Id: <20190822170811.13303-131-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190822170811.13303-1-sashal@kernel.org> References: <20190822170811.13303-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.2.10-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.2.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.2.10-rc1 X-KernelTest-Deadline: 2019-08-24T17:07+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Aya Levin [ Upstream commit a4e508cab623951dc4754f346e5673714f3bbade ] Remove check of recovery bit, in the beginning of the CQE recovery function. This test is already performed right before the reporter is invoked, when CQE error is detected. Fixes: de8650a82071 ("net/mlx5e: Add tx reporter support") Signed-off-by: Aya Levin Signed-off-by: Saeed Mahameed Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c b/drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c index b307234b4e05b..c1caf14bc3346 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c @@ -76,9 +76,6 @@ static int mlx5e_tx_reporter_err_cqe_recover(struct mlx5e_txqsq *sq) u8 state; int err; - if (!test_bit(MLX5E_SQ_STATE_RECOVERING, &sq->state)) - return 0; - err = mlx5_core_query_sq_state(mdev, sq->sqn, &state); if (err) { netdev_err(dev, "Failed to query SQ 0x%x state. err = %d\n", -- 2.20.1