Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1594593pxb; Mon, 12 Apr 2021 01:46:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxP/1lHoxvHa6RTKs3Yxom+B/zlK/9KDzybWWl+u+wyScHWpi0xabnBD9gf0A3Qs3OqwnYo X-Received: by 2002:a17:90a:5898:: with SMTP id j24mr27222679pji.110.1618217207201; Mon, 12 Apr 2021 01:46:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618217207; cv=none; d=google.com; s=arc-20160816; b=lNviVi5MMgHC7JrUDcUh7UFWinJgLwW8WzXZWeOVMcqmEoTOCUC2e0KRj8Dn5DVyhr NA0rhcKSywcR5GFZC9udkgwkxGcA2wBbQj3y72oNtBtyVtp5m1Pnu24TGcLyU4Ekw6L9 ZddsDcaF6gVgpXE5KIzFYSDEN9WRNI+pwbt1K2jxn8pjwJCQOTNoej5NHZVBUlD4ksVK 8cAP30/E7xhdnyO+r/RxzhLdtdrFJ9VCrRWZHa89U+JtkZ9FtKkaV2KCweIRsd86Rpwy IJVC7b6IziLb6ggmoo2zXp8ZHcE1Z+T4o4jcIHR95kO7mrk9aT7BNbE82jstL53wXoOV B1zA== 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=SQfbGt1a2Tjuq//0+DB4q91ByORfMjTE9j8jDG7ZAlk=; b=zGM5T+jhn9Xoepm+LRg6KD/w8FxlsdzQZvixywTUZMdNK+2zZGjE2A2dr75Y24hoTI gu1KqLpimPuz0E1mNVwUBteEMVOnMosqe18TD4b5MaNJTBGof8YEW4ETWVRDXgOSIbIU Dxol4FWZBmo+zKedc9yagrCiPmyGpleEfSppmTsIIZ34+KcIUUFFsPOgO5JbHZLP7uA2 sX9e5YvAL1aXrDK/GOLi0BRjEJGefcpzpnGJidMwoRqRKsPH0daCt7iMd1be8OWXamBM C3Eqp4AgWbQszactB/9SyOj11gk2ZuxvBdN95/hyIXUm72p/l/o6rLEcAFScihJpn23G /Yyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2mbQsWyX; 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 j128si12842314pfd.128.2021.04.12.01.46.35; Mon, 12 Apr 2021 01:46:47 -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=2mbQsWyX; 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 S237708AbhDLIqC (ORCPT + 99 others); Mon, 12 Apr 2021 04:46:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:37056 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237712AbhDLIow (ORCPT ); Mon, 12 Apr 2021 04:44:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 080416124A; Mon, 12 Apr 2021 08:44:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618217074; bh=09P0E53fr4912uCvGnabNL1YAL+S6s8L7zesH6Jt9YE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2mbQsWyXf6Yk+lxkdufGm1MSs9Zzp7g/+Z1TFobo3MlEKFhwCWMqmTJ8hUqycHN88 olWHcClDJMGWzGNpJkFOX3uVWdwNmhoGmJguj0pVZxJV06Ju4juLFTDPTviUv+DTed rui68FbybYN/KBU+Yol0hIE8+AnGv3KsBXMRPxiY= 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 4.19 33/66] i40e: Added Asym_Pause to supported link modes Date: Mon, 12 Apr 2021 10:40:39 +0200 Message-Id: <20210412083959.195699344@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210412083958.129944265@linuxfoundation.org> References: <20210412083958.129944265@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 a6b0f605a7d8..9148d93c5c63 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c +++ b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c @@ -796,6 +796,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