Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1111097imm; Wed, 1 Aug 2018 10:21:32 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfDTFEDOjILM99J3+esoVjQWuDKykN2H/pIJo10utn8kRpASeTJsD8+KPwG+zY4+Eskh1s0 X-Received: by 2002:a63:b445:: with SMTP id n5-v6mr25835617pgu.104.1533144092313; Wed, 01 Aug 2018 10:21:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533144092; cv=none; d=google.com; s=arc-20160816; b=RzmMHyurq7x+PCq2yuOK7/Z5YFC+y+8XxxwlYg9tlPtnvjXDH7pdPu/0EbqFjOwVyx lW2fXoi+QR7Lufti9/gvI2OA8HGt4ufl3dZ121sGbir3iYdbYKEFkU4kIAJziRgMbYu8 dXiNnNsSpUaZC55MQSLVee1AfGVFTuYD+v5o1WTaIb2yIdSPqLuOTjl7UeB/0+cn1MMH p49QyHphAJXs26wpuKPh1OWCbzGwFbwC3lrtNl88X915o/AcctRznKGCNMcT4sfEtb81 eCj7s+bauK5C1r82VEdmvC/1H0uVfYJYD/k4OOdUVFSQY+i2lg8mhwMmxuJyWzc3jtFo 7CCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=hjIUvrRtDB53p9Rs9myaQabnlNOeznxYppqr9jrpDQE=; b=lTouDFHJwLTpxMulHL220Fpx8lZrtIzL56EwfshZFsy3uWmAaHIfa5iABG+NGdxPQ7 UY+S5951HyDwTl9T4K+R7+41rUGJRaWmpwgKZVSUrNKqSkqNSPigTz47E0LI15Q7E4js OnrS3Wc2jF0RtCwP0hCXZg4fwcEcb8R0QQJRGZEHEEmiXg+4GrxO/4JJKFmuj/4x7pUF Um6SbwUUS/9EfeWwc0MTzqdFm3MFff+8lBhWHT6Rhe0mdpsS5PgWbWZKsBB82eS2iKkI g2EEPOVdvf24zMFRWi1uqEXAIX4Ee16lk5iZxgDnVcNKhKho9XZYvuP7azlx6AQzwpzw cEMA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q14-v6si16417495pgm.512.2018.08.01.10.21.17; Wed, 01 Aug 2018 10:21:32 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405241AbeHATGW (ORCPT + 99 others); Wed, 1 Aug 2018 15:06:22 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:48276 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404596AbeHATGV (ORCPT ); Wed, 1 Aug 2018 15:06:21 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 61F13CC3; Wed, 1 Aug 2018 17:19:40 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Chan , "David S. Miller" , Sasha Levin Subject: [PATCH 4.14 159/246] bnxt_en: Check unsupported speeds in bnxt_update_link() on PF only. Date: Wed, 1 Aug 2018 18:51:09 +0200 Message-Id: <20180801165019.335628634@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180801165011.700991984@linuxfoundation.org> References: <20180801165011.700991984@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Michael Chan [ Upstream commit dac0490718bd17df5e3995ffca14255e5f9ed22d ] Only non-NPAR PFs need to actively check and manage unsupported link speeds. NPAR functions and VFs do not control the link speed and should skip the unsupported speed detection logic, to avoid warning messages from firmware rejecting the unsupported firmware calls. Signed-off-by: Michael Chan Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -5927,6 +5927,9 @@ static int bnxt_update_link(struct bnxt } mutex_unlock(&bp->hwrm_cmd_lock); + if (!BNXT_SINGLE_PF(bp)) + return 0; + diff = link_info->support_auto_speeds ^ link_info->advertising; if ((link_info->support_auto_speeds | diff) != link_info->support_auto_speeds) {