Received: by 10.223.185.116 with SMTP id b49csp1086555wrg; Sat, 3 Mar 2018 15:10:34 -0800 (PST) X-Google-Smtp-Source: AG47ELs142R+zx2W53LUzmYicSL8LNsq9ZjoZFR8Ua88zg8uSRhk1kvoJyDXciq2U0xzUBSkW3dw X-Received: by 2002:a17:902:b109:: with SMTP id q9-v6mr9097229plr.340.1520118634297; Sat, 03 Mar 2018 15:10:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520118634; cv=none; d=google.com; s=arc-20160816; b=TnQABvJCOX/ZHEilLkNhBhVIGn0GZv7ECPd6SnwZiUstZcVzrBEUgazQRoJQTgGvY3 5lQOSWnZlt+fbZF3AmMghc2inTx0xGepwg7WvW8xRHR8aULNyK1RaYHjo7UwjMxq8SfI OHFI9m9G8KFNBNWDmSwS3xj6yIFCnNemdA8Id25NnjWrrOmaqIVKYoAS1Zm2vRCmKd/5 dgui8gYmiWGfQzV+XOUx1XebGoFWgavUB5SHkz0YvfrZMcNtm5Xv1KwcKtDsZoyGqHte UFRVOhDbvZ6NI1S462+sDJVYXc+xpqUCgwQ997xN1n0qedWIyxd401+AsMuD3FQwGRTE de+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=r7NjtJYf4EQJpHCl2OI29IQlZJWVfAEX3/cfqacTNy4=; b=ZqnpyPSvVMQnRLU007V4bfZjBz5I9TtW5/C9VCDEfLgQiRR07dyhCwx7ySTrSz0yQv 4PybFPHpaCMfjM8hs/cyV79MR/hHEJ+jKMri5sv1uthMSkdCB4nh8WtTwAzs2R+V8tHF J4uSz/SBiVhcftccnlMt//D7Y/tzulLYpaF5OJtiOtSjIRjntw5c/UZmZO5BytQCGEj+ iD7Wo6wh+XADDGe+xayhs/HFXXYiizHm6hTVkP2BGLo++UAeDD0s4Vqt9EY/Ni7mA1d/ 5JSfx5RbkpbG+gndW6hrwyPRTPjKD5qS9+rbqR9vqX+gqhYu9mf/E9imXJYo7lZphNHy fdfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=KZnw1x4O; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b28si7398420pfd.391.2018.03.03.15.10.20; Sat, 03 Mar 2018 15:10:34 -0800 (PST) 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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=KZnw1x4O; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935304AbeCCXJp (ORCPT + 99 others); Sat, 3 Mar 2018 18:09:45 -0500 Received: from mail-dm3nam03on0102.outbound.protection.outlook.com ([104.47.41.102]:24173 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935096AbeCCWj0 (ORCPT ); Sat, 3 Mar 2018 17:39:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=r7NjtJYf4EQJpHCl2OI29IQlZJWVfAEX3/cfqacTNy4=; b=KZnw1x4OqbLXXs5Y4WNF9tBqKcwqLsr7hZioHrFGuvE4ta2CXnyFXh5+Dsfn8UQ1wEm2FwvWkGhP3WMCgrJ3TqAZCM1soSLkZszxC0oUrTyoPq6SqT9ZmCf+J4JgOZjgPnomFFShRFZ1RvVO+w8gc++FPrTgGC3zm336agbXipo= Received: from MW2PR2101MB1034.namprd21.prod.outlook.com (52.132.149.10) by MW2PR2101MB1113.namprd21.prod.outlook.com (52.132.149.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.588.1; Sat, 3 Mar 2018 22:39:20 +0000 Received: from MW2PR2101MB1034.namprd21.prod.outlook.com ([fe80::1d56:338f:e2b:cec0]) by MW2PR2101MB1034.namprd21.prod.outlook.com ([fe80::1d56:338f:e2b:cec0%3]) with mapi id 15.20.0567.006; Sat, 3 Mar 2018 22:39:20 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Phil Turnbull , Jeff Kirsher , Sasha Levin Subject: [PATCH AUTOSEL for 4.4 058/115] fm10k: correctly check if interface is removed Thread-Topic: [PATCH AUTOSEL for 4.4 058/115] fm10k: correctly check if interface is removed Thread-Index: AQHTsz9bEuFPIuPdwUSEoaBB7sW2ag== Date: Sat, 3 Mar 2018 22:31:22 +0000 Message-ID: <20180303223010.27106-58-alexander.levin@microsoft.com> References: <20180303223010.27106-1-alexander.levin@microsoft.com> In-Reply-To: <20180303223010.27106-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MW2PR2101MB1113;6:Acr6hFnbSGs9+DIrK7XJ/yMAuF7Ui9QlVjwg1Invu96bBpl2tu3fdbYnPc7agbzfwilT6r144sDxorlFiwkPEdIc1rNIJQTgNvNXuH250WiOIk5lTDzZ0g7VZh9eeg5YtA/exBEkV7zw0X/NXyTghdNdafU7dpeM94HkVmbR4QaznXKbsGpMzoBZZn6uIqdox+rO70vBWa94DiPemkbfgeKDEvyJkYSr3IeojHOr2dLmtHOIpSfdApgiuGWt8/NgGDNLglWRD4gcDq0cp6COjWFsaJ13TUMjO3AtNABOAt2BeV3DTZeuvnr+OzC02dy8JlnVYYnpMjmRpDSesgsP43bcSYGBUeB/wWCLPX+d/e34p18YVeJlCLIMFVYBAkd2;5:H0eoYBvuoLGw0tGLDEbv0oWFL/jNm5dXLUKOGZtfqNts5MtF1Wj4a/ySXd+yZ7vrPsZcRbweX4SiWSTz/5uBqd3OyG3Vh6zhbDO/zSi3sgkkfTJ/sH+GGjh8PxLHSoplHb8JSffHU3LZmx6KjRJdqeiLuwt5IGwO0RRvJFSaijk=;24:RS7eAsrjjLU1rVCHEjXO3Olnc4wrvyMxVp16PTmXOV2WSXI2D36jtHjG2/1+WIMmXRb0ptovACxNBY+cY9TMgksLjKqo5oF8Uk9sjPgJjB8=;7:6AmScLEuOa0OHBmF1WtRBry98H1dE65tcKFr7aBiC7FOEvPqEdHcQ/ScdOcVn2xVghftaptgRGfP997yRZ/7p5OiDbwlHfuOX4OkKOB6kE4yXXr/5CB5i4URdbthmpUd0FS4LEc1wf0NKPvfXxxHu3v1dY6hZWNBwtf76k+yAwMOBkh/IStOwrmSlGJnPuuS5PtJW0KIB4PbuL2sCs08DMJ4jd6LPGS5OLfUBGeHTiausTOgpqnw6bKX3YJaKg+p x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: b4325b87-e258-44d8-19c8-08d581579b10 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603307)(7193020);SRVR:MW2PR2101MB1113; x-ms-traffictypediagnostic: MW2PR2101MB1113: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(146099531331640)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040501)(2401047)(5005006)(8121501046)(3002001)(3231220)(944501244)(52105095)(10201501046)(93006095)(93001095)(6055026)(61426038)(61427038)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011);SRVR:MW2PR2101MB1113;BCL:0;PCL:0;RULEID:;SRVR:MW2PR2101MB1113; x-forefront-prvs: 0600F93FE1 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39380400002)(366004)(346002)(39860400002)(396003)(376002)(199004)(189003)(68736007)(7736002)(10090500001)(6116002)(3846002)(1076002)(2906002)(5250100002)(6486002)(2501003)(6436002)(76176011)(575784001)(86362001)(22452003)(6512007)(53936002)(66066001)(86612001)(99286004)(59450400001)(2900100001)(316002)(36756003)(54906003)(106356001)(110136005)(6506007)(102836004)(186003)(97736004)(26005)(6346003)(14454004)(3660700001)(8936002)(107886003)(10290500003)(5660300001)(81166006)(478600001)(3280700002)(105586002)(8676002)(81156014)(4326008)(72206003)(2950100002)(305945005)(25786009)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:MW2PR2101MB1113;H:MW2PR2101MB1034.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-message-info: sEG99iODBzqPsiLsNeVKlcrkRO5+5Rr93r/I3rKMCvsQFZuFz7lOdVTxHostR2/MxKicBOwjFavU7zMcONPSp518+MZ/X03DG5E4Oa8YVGW5NKQHs7Ms0ha7MI5shZKdn/sFBanCrmRYyrlrHo99oH3IYiOISRR0aFGHov2dqf8= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: b4325b87-e258-44d8-19c8-08d581579b10 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Mar 2018 22:31:22.5884 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR2101MB1113 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Phil Turnbull [ Upstream commit 540fca35e38d15777b310f450f63f056e63039f5 ] FM10K_REMOVED expects a hardware address, not a 'struct fm10k_hw'. Fixes: 5cb8db4a4cbc ("fm10k: Add support for VF") Signed-off-by: Phil Turnbull Tested-by: Krishneil Singh Signed-off-by: Jeff Kirsher Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c b/drivers/net= /ethernet/intel/fm10k/fm10k_ethtool.c index 2ce0eba5e040..38431b49020f 100644 --- a/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c +++ b/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c @@ -983,7 +983,7 @@ static void fm10k_self_test(struct net_device *dev, =20 memset(data, 0, sizeof(*data) * FM10K_TEST_LEN); =20 - if (FM10K_REMOVED(hw)) { + if (FM10K_REMOVED(hw->hw_addr)) { netif_err(interface, drv, dev, "Interface removed - test blocked\n"); eth_test->flags |=3D ETH_TEST_FL_FAILED; --=20 2.14.1