Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4340632pxj; Tue, 8 Jun 2021 11:56:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXH+hLc5LbaMPNt67pTG5VUbWcIbzx2q8NliIhYn/wxjbUkrbf4xNMFmm74Veksc5lLfZr X-Received: by 2002:a17:906:f111:: with SMTP id gv17mr25035283ejb.435.1623178579350; Tue, 08 Jun 2021 11:56:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623178579; cv=none; d=google.com; s=arc-20160816; b=tXn/euvfG28toCE4yj9ZiyEeqP9ViwSctFtYOV+siYloOAL5IoBuiDgagD4zkQOkvT S2JFT2ycZ4Ji+aSgA0a/Liv3HUsTfZeaR3FLQ4TyKGubKf7Ddu8NOJK/JSicrrDpeqK3 K/2g3VrQ1mkCkUanFNEbQZUN4+0Fv40MESHWraU86fnpd6HzNo+/xwkkkHgz9eJTkEAi De71y8kaCG22/spV5/PzuCzpez9eZZa4DvhGo0Gl4uj8mpSNCXH7Q/GltBXeuZRjR3jz 1tp9V6wN38qe6TgZBkyVPxH3MA5U836/XvsPISy79O4ee5y/55G4HMhXkVNiUaWs36Ym hULw== 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=VWN1Z0tXtYAsNG+mnZ7LahPb2kGco1D6c3YwGXCyzs4=; b=O7PDy9rZrliIYwDElIGWGU+Rxq2c2ZDvHg4VRI41BnPRRqnW+vGUiHCzy8B2ennh74 lHlAW9hl+BvrjLzLP2orLmWAzUXMtI/74YuG/qD1rbwo04olr7C5OOqFMGK3MM8zSVVy Oyi8g5xXqvsL6K0j7euKYh7wc7jbcKqO72G8LilL6UWVqOOPDiilZG163hPGvVzw5cE3 3HyyA+eks062RYFNtu1TRbf41Ubc1F0vPK+WOchPlRPZz+cSP1k0uW53oIwKThi3ERKr 5M4wqC7E+xHU5A//Hat5QFxB1kVVVKDrBk8wJ/WCaWBvdK2ySFAekVadSPnRtmimu248 UhBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cbCKoLqU; 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 w11si451426ejc.285.2021.06.08.11.55.55; Tue, 08 Jun 2021 11:56:19 -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=cbCKoLqU; 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 S236309AbhFHSxV (ORCPT + 99 others); Tue, 8 Jun 2021 14:53:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:42532 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235107AbhFHSrU (ORCPT ); Tue, 8 Jun 2021 14:47:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A95E6613C3; Tue, 8 Jun 2021 18:37:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623177476; bh=jqKA3ceQSt2X0YUX2MLM3uyTurwTYgRVoeoavKSo7Gk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cbCKoLqUe1p3BAjZTO72mrb9/4B7Wkbo1op1d1OT127c5JF9MLESrReq4L98SGfVc xUhXuqjYFfoJyq07KqtGpcxnvCAXXK6mpDbH+grdyCBkSSF17cnDptHbQCfG0vUCue ZyTazzV7c39+mIc+lCinjfxacKD+4lAkqbnyPNxA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Chan , "David S. Miller" , Krzysztof Kozlowski Subject: [PATCH 5.4 64/78] bnxt_en: Remove the setting of dev_port. Date: Tue, 8 Jun 2021 20:27:33 +0200 Message-Id: <20210608175937.432125502@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210608175935.254388043@linuxfoundation.org> References: <20210608175935.254388043@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: Michael Chan commit 1d86859fdf31a0d50cc82b5d0d6bfb5fe98f6c00 upstream. The dev_port is meant to distinguish the network ports belonging to the same PCI function. Our devices only have one network port associated with each PCI function and so we should not set it for correctness. Signed-off-by: Michael Chan Signed-off-by: David S. Miller Signed-off-by: Krzysztof Kozlowski Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -7003,7 +7003,6 @@ static int __bnxt_hwrm_func_qcaps(struct pf->fw_fid = le16_to_cpu(resp->fid); pf->port_id = le16_to_cpu(resp->port_id); - bp->dev->dev_port = pf->port_id; memcpy(pf->mac_addr, resp->mac_address, ETH_ALEN); pf->first_vf_id = le16_to_cpu(resp->first_vf_id); pf->max_vfs = le16_to_cpu(resp->max_vfs);