Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2128153pxb; Mon, 12 Apr 2021 15:23:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwA0894vHKBOna4kKzjA4lpi2ceSh8EvHOFVsCv5m7lx2nLJnQqqJw6lonTju765bBj9uCX X-Received: by 2002:a17:902:a70f:b029:ea:d4a8:6a84 with SMTP id w15-20020a170902a70fb02900ead4a86a84mr12244015plq.42.1618266208230; Mon, 12 Apr 2021 15:23:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618266208; cv=none; d=google.com; s=arc-20160816; b=m9C17K5DRkI+zNB2Ly/RD456L3+vVjrL7WuSyZrr/IePa293WAioZNFS4AgxvS+JEY yWm0XrzMa5YAegbVP/HodJaVfhqTAAmDOdHq6fNCBihcRSra8EI+6kDv1R6QvGRHdbmk OYj10F3sEpRQhRUevh5228VVriNhfojcrf+TufMgTHNKEm+ZJ+98mAEf/Fw0bLQy8Kfr x4l2a6twswzGwoRR+hI9pIJnsG7XuayK6Q+rYMEn96rsvpizF+UkHGZQiKGFW9DTozi7 J3JlJOm5W1zx4QaKfTR3t095OpHET7BNOukI6b+Joe2VH7OYvBr8Wy5nQyZ7eJ3F9SkC lEvQ== 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=EHGt8H9Nk+323cd3cH4KnEHkSqNIs+yagYIZ46IZL3Af7epaezq7+pacxKTxVGjuI0 KoGd8slyatpKXlmgGLRL8yp+w9iQRgYbU+88FwsaMoLR1KGy2lZi0WYQMssC11//aM6q mcGyHtFAHi3VhYvG/7cRAxZNWlXXuw/JBxnf6EI1gxlf6SKhxCu0aYT4weZs5q7CU5OC h8FLNI3N9/oR0wLou+L5KNWvOROeu8K35yHY+wznwH5Lc+xeuGFBRDvRWwCPw0upSnYb 3l7MFfNVvIiI6ZLRSKIN7VgFihhWhc6mQZe0Gvlh8KXHsp5CzRXZpmKfIYtc9HhXZGBk Euow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="KIz/1KI7"; 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 o9si2280723pld.384.2021.04.12.15.23.11; Mon, 12 Apr 2021 15:23:28 -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="KIz/1KI7"; 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 S242921AbhDLJbH (ORCPT + 99 others); Mon, 12 Apr 2021 05:31:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:34456 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238966AbhDLJHF (ORCPT ); Mon, 12 Apr 2021 05:07:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 19C8C61249; Mon, 12 Apr 2021 09:03:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618218220; bh=86SaYJXXRYHfptLMPiM5nQFdTmtQb+V33Nc0vrmstyk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KIz/1KI75dI5DIZH3Fl6VPgukmPHNTnf/5bnaJA0RGANRn/i29/i87AR4NvxKyUwE BupuYfgTcfEKD8b0EwGcwaTDHPNu1AOub4b3jgGcLVDcbunhMs7W324QyJGaisSfV1 8QU+iN/JucJOgcYEA1Kfb4Dm42ahuXJ0YfuWTdyY= 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.11 116/210] i40e: Added Asym_Pause to supported link modes Date: Mon, 12 Apr 2021 10:40:21 +0200 Message-Id: <20210412084019.865044274@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210412084016.009884719@linuxfoundation.org> References: <20210412084016.009884719@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