Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2100981pxb; Mon, 12 Apr 2021 14:32:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcbC12PbYaHqNXxmeYCMLbzWNeQuTk1Vj32vS/imV5OuRZZLgkjnf4cuDJcfRMtmMT0nZj X-Received: by 2002:aa7:d3da:: with SMTP id o26mr20992191edr.147.1618263136326; Mon, 12 Apr 2021 14:32:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618263136; cv=none; d=google.com; s=arc-20160816; b=o7o/t7P/4lQpRrThZVge6EogFQXFFn/7611tjToE3P4SCCxLGovR2qcsvobK40SHF4 bsDDul/sdxacKHAEe8fuUV5PtqGjiTFfLw11RBFEPRJZ5vpj+ShKzUm2r/vugiL2hyGu 5JRDj7UtYAcugqzI5RcnO49ShaI7IPf5S3Um7JFMABeubdEI03MZZVZwT8+fYBpcpdy5 T2xrprv5+9l9NMfGdxS7D7Z4rXzNapeMyKslhQX/okt/oWKQjxAGmYgIPUHWUto/IhFw rkN5elLapjiMCXPgl6bBd8LfWsVsXvrAjP1ODKsUF/nYDPpqJbQH+Q1fa9JeCFKBRRv5 hzbA== 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=jO4XBhxvQYi7mE4bp+64lQIrZfOzYq0psKUX0L+3VMo=; b=ur4u3wdPzadDCnDYycaKw38ne3YjD7JDCzDDGceIJjTSMSK2B4ESnFXRLEBK1Vuo8y TY7j6dz+VQQRet5l5I0u6LFmGmsAYNn4BmTECBPkzJQtgYgXs5D8gkFgM3qYoL9WJsXG NvAZ55luhBlH6s/7Nsx6L5CcQlNstoEWux1ppa7FifVQjnCL3B92zwbpDimtlXa9fWTQ Jee3l0+kusN/eTWf0aOQnus0f8in8kYqeoO3EWlAZq4Y/8OBoyLtZrJl4QLKCji63xHB Tdm7cslHuVZjrA3BitPeWUR6yR59cGb6CNQUXDZOpXWvmk+vfzy2wWAGXADlmc7x2YYl tX/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vvpBxfT9; 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 hd8si7899642ejc.78.2021.04.12.14.31.52; Mon, 12 Apr 2021 14:32: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=vvpBxfT9; 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 S241243AbhDLJL7 (ORCPT + 99 others); Mon, 12 Apr 2021 05:11:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:50172 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238638AbhDLI4f (ORCPT ); Mon, 12 Apr 2021 04:56:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1377A61286; Mon, 12 Apr 2021 08:56:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618217777; bh=86SaYJXXRYHfptLMPiM5nQFdTmtQb+V33Nc0vrmstyk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vvpBxfT9N4XXSs5HF82xasWLr9Eg2RPUGlZhD+Jze/Qcr8WeSxbNw1b1zsBs8VPHX yZTDPTcUyhTn58VdBRUW9iF0TrgZXtS9cRHYsdGq4L5C2yjcpbdiD+W494zVUxb07y taU9AEHG+cNtMHNC8y9/Smc8w9Jlo9BlNzb+b0zo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dawid Lukwinski , Mateusz Palczewski , Aleksandr Loktionov , Przemyslaw Patynowski , Tony Brelinski , Tony Nguyen , Sasha Levin Subject: [PATCH 5.10 106/188] i40e: Added Asym_Pause to supported link modes Date: Mon, 12 Apr 2021 10:40:20 +0200 Message-Id: <20210412084017.171056161@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210412084013.643370347@linuxfoundation.org> References: <20210412084013.643370347@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: Mateusz Palczewski [ Upstream commit 90449e98c265296329446c7abcd2aae3b20c0bc9 ] Add Asym_Pause to supported link modes (it is supported by HW). Lack of Asym_Pause in supported modes can cause several problems, i.e. it won't be possible to turn the autonegotiation on with asymmetric pause settings (i.e. Tx on, Rx off). Fixes: 4e91bcd5d47a ("i40e: Finish implementation of ethtool get settings") Signed-off-by: Dawid Lukwinski Signed-off-by: Mateusz Palczewski Reviewed-by: Aleksandr Loktionov Reviewed-by: Przemyslaw Patynowski Tested-by: Tony Brelinski Signed-off-by: Tony Nguyen Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c index 9e81f85ee2d8..a92fac6f1389 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c +++ b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c @@ -1101,6 +1101,7 @@ static int i40e_get_link_ksettings(struct net_device *netdev, /* Set flow control settings */ ethtool_link_ksettings_add_link_mode(ks, supported, Pause); + ethtool_link_ksettings_add_link_mode(ks, supported, Asym_Pause); switch (hw->fc.requested_mode) { case I40E_FC_FULL: -- 2.30.2