Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1645012pxy; Mon, 2 Aug 2021 07:00:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmbTsoW2c1ONkHvOTqDRmtkrxJw/wHPWMBj6E1iS1eHgX3rbOLFHbS4I3vbaWn93CV7+Mg X-Received: by 2002:a05:6e02:13b1:: with SMTP id h17mr550307ilo.213.1627912816993; Mon, 02 Aug 2021 07:00:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627912816; cv=none; d=google.com; s=arc-20160816; b=CYQHSITTs1QTTg2UdghVjca77c4JFGBV9AjAIDgHMT1gp3Khj4Jp8UP0Atq6KqXYH3 A+8p8xnOWtySePIoOllYeKZfEvdcsQrdyeY/TSW43vLFZujt6hlJeDysHXFEdUtNNMgc BOwamZGOwPZS3WdQtOyPeXabSyLS5Ue4o+duvMCOi39xHGg11iFVZFh11CeWS1nafhva 5CxXB6oyjzmw+LrIrO3AdcxnxNma5HlARVdL/BtuauUaTXGkIc2+6r7ietRf5yhAjSuY 2NdY5RTKX8HMfgSFK8a+NdQ3J22V9eSz86ou6Y4mXud3gkASIkLTrtRyzCfYTLuFt3n0 pX4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=eCj5VbgZr0HG+HUv2DYypOFeMTGAvz+J8TDuOSYscrg=; b=fzn1YYhX2uXSbwPQNga7N3A7/LGOsJ8ZiUarjjn1Aks9e3PuKfLbXNr/V8fc9bGcVh Pt+CEaoN0sbQ4ZTc+3QUXDYtFY4MBf2AhVA8LzhRDj33a/xflbGfYzc6wFR0D/gSwcWH fkgR+k1uTiZUKrBwPoepc0VWGwnoPik0U5RQFmGA3vAxNZTYsK+OhAegErxI+RGzl8Wz K03J/ontumfY6YzOdUwO6BNUPVWsaQuLg/eq5QGJS5TvyMdDgAFxVT0ruY1HlblkaZXO EJL1Nt4rIOKM2QfLJTMz4+OZHgZ+udSco2qW27UHShhzcVDmJ5cMxFohgp1lLutJ8vJk s+EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kSIOODbE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o19si11921113jav.61.2021.08.02.07.00.05; Mon, 02 Aug 2021 07:00:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kSIOODbE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235624AbhHBN5q (ORCPT + 99 others); Mon, 2 Aug 2021 09:57:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:34568 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234614AbhHBNvf (ORCPT ); Mon, 2 Aug 2021 09:51:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EB81961100; Mon, 2 Aug 2021 13:51:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627912267; bh=MnNewfPaXUXgVf9a7IQXTsEKHvccMFYpDYVLAZeRXwA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kSIOODbEYk10C5R4eOP4zmTOl2y6JeIRqRJtv5rKVEjp/Q/XfvtRJGIZOOobCemb7 4Ca+obQ4Zf4orNiV4/pPLNahxD2U68bQV7WOC9I/wI6KSINpjFRVWn9Nbl/PfCOtZ/ AmbFUG1GvuTwCPHLYM+Bszs5y3y305q4XCzEBg/c= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aleksandr Loktionov , Arkadiusz Kubalewski , Imam Hassan Reza Biswas , Tony Nguyen , Sasha Levin Subject: [PATCH 5.4 23/40] i40e: Fix firmware LLDP agent related warning Date: Mon, 2 Aug 2021 15:45:03 +0200 Message-Id: <20210802134336.132235092@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210802134335.408294521@linuxfoundation.org> References: <20210802134335.408294521@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arkadiusz Kubalewski [ Upstream commit 71d6fdba4b2d82fdd883fec31dee77fbcf59773a ] Make warning meaningful for the user. Previously the trace: "Starting FW LLDP agent failed: error: I40E_ERR_ADMIN_QUEUE_ERROR, I40E_AQ_RC_EAGAIN" was produced when user tried to start Firmware LLDP agent, just after it was stopped with sequence: ethtool --set-priv-flags disable-fw-lldp on ethtool --set-priv-flags disable-fw-lldp off (without any delay between the commands) At that point the firmware is still processing stop command, the behavior is expected. Fixes: c1041d070437 ("i40e: Missing response checks in driver when starting/stopping FW LLDP") Signed-off-by: Aleksandr Loktionov Signed-off-by: Arkadiusz Kubalewski Tested-by: Imam Hassan Reza Biswas Signed-off-by: Tony Nguyen Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c index 2288a3855e52..5e20d5082532 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c +++ b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c @@ -5087,6 +5087,10 @@ flags_complete: dev_warn(&pf->pdev->dev, "Device configuration forbids SW from starting the LLDP agent.\n"); return -EINVAL; + case I40E_AQ_RC_EAGAIN: + dev_warn(&pf->pdev->dev, + "Stop FW LLDP agent command is still being processed, please try again in a second.\n"); + return -EBUSY; default: dev_warn(&pf->pdev->dev, "Starting FW LLDP agent failed: error: %s, %s\n", -- 2.30.2