Received: by 10.223.185.116 with SMTP id b49csp333302wrg; Fri, 2 Mar 2018 20:35:37 -0800 (PST) X-Google-Smtp-Source: AG47ELuJc3rUDYcHVeDyzR6FXVez5sJgmHDEOv6dYGcOABE7JniM6wADCoGYsxOFvEzBkfafsVOQ X-Received: by 10.99.142.76 with SMTP id k73mr6289999pge.278.1520051737728; Fri, 02 Mar 2018 20:35:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520051737; cv=none; d=google.com; s=arc-20160816; b=KLrewlf4dGf1EnCEXQxGOdB0GAwrQLoaKPSYCaeqO0pnGeYNreDToaIIcQcQXNpWcx del+1j4yNuTMRdpAStWxnMur77uGogOJq0YdNjO7aJgRbTrMltqaOBsuuTHiFIwVVKYS D2S/W1KgsO6ZvNqMjuvWW/30hXT0O9eBgzHmTd4ykU2I1ijquRVfssMC5t9TkLZEUPeS AJzIlCGEnqXTUtiizv95gsBFbwYW7g6pWeOINrE9W/mhiiThd3f/8YyJPJa9ssLN3Yw8 odVu+1zKwTToelTvkIK0teOczQhS/5u3Kj0NmDXlHKXlMfNOu1InVPoKZ0S0B1WusAuA RO8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :content-id: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=djCjos8xD45Ci0lkZ68K+v6QQ+iiUACTuKbdFmsvBxg=; b=b2Z2IpEWn1Huf9lbJ5A/Nm4exQtxXXAo2c1PcDPcLOBPur/L+aqbXyekoBANnVlC9s ziGK8ichZW60bIogq2e3nvM6fdwyePTtpdubLaN7gqDdF2qiN9LO03C6u3OVBZUEgetz L2ktv4qt3GEV7+ZMF1LuXWTqUpv8m2EDcZWaiyFdCtn36b0HXXxDST8rBsrujXR6NApv TsYoehGsBSXe7U9T3v0qxEZphPvAkHVQKluol0dOyMtIlCkUScg0Kd/11RG5k/vrsakE /6tOtECDER5aNgJHDT7eIRfq8Cs/+849qk3Kuv78sSp/eO7u0xZL6WfaDyNJhYYQy0ps 5laQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=nH0KUNZS; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v3si5002131pgq.608.2018.03.02.20.35.23; Fri, 02 Mar 2018 20:35:37 -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=@amazon.de header.s=amazon201209 header.b=nH0KUNZS; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751748AbeCCEeU (ORCPT + 99 others); Fri, 2 Mar 2018 23:34:20 -0500 Received: from smtp-fw-33001.amazon.com ([207.171.190.10]:7281 "EHLO smtp-fw-33001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751692AbeCCEeS (ORCPT ); Fri, 2 Mar 2018 23:34:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1520051658; x=1551587658; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:mime-version: content-transfer-encoding; bh=djCjos8xD45Ci0lkZ68K+v6QQ+iiUACTuKbdFmsvBxg=; b=nH0KUNZSpyuNEnzj6cfMQZ/8d5X7ZpVLfSTcTi6U0SMYrFpab+xf+idR FfEiTrfH5MoxE6/PMYPh7EWpEyptwwGvY+ROe0ViobEvPvntL55MCDV8/ UHV76ZuOHQJ8LLb6gvjvNiT4lrZhqQK3dKTQH/6ikw6Ms5uYAH9rx+kWw E=; X-IronPort-AV: E=Sophos;i="5.47,415,1515456000"; d="scan'208";a="722536129" Received: from sea3-co-svc-lb6-vlan2.sea.amazon.com (HELO email-inbound-relay-1d-38ae4ad2.us-east-1.amazon.com) ([10.47.22.34]) by smtp-border-fw-out-33001.sea14.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 03 Mar 2018 04:34:16 +0000 Received: from EX13MTAUEA001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1d-38ae4ad2.us-east-1.amazon.com (8.14.7/8.14.7) with ESMTP id w234YEYv026805 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Sat, 3 Mar 2018 04:34:15 GMT Received: from EX13D01EUB004.ant.amazon.com (10.43.166.180) by EX13MTAUEA001.ant.amazon.com (10.43.61.243) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Sat, 3 Mar 2018 04:34:11 +0000 Received: from EX13D01EUB003.ant.amazon.com (10.43.166.248) by EX13D01EUB004.ant.amazon.com (10.43.166.180) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Sat, 3 Mar 2018 04:34:10 +0000 Received: from EX13D01EUB003.ant.amazon.com ([10.43.166.248]) by EX13D01EUB003.ant.amazon.com ([10.43.166.248]) with mapi id 15.00.1236.000; Sat, 3 Mar 2018 04:34:10 +0000 From: "Raslan, KarimAllah" To: "helgaas@kernel.org" CC: "linux-kernel@vger.kernel.org" , "linux-pci@vger.kernel.org" , "bhelgaas@google.com" Subject: Re: [PATCH v3 2/2] PCI/IOV: Use the cached VF BARs size instead of re-reading them Thread-Topic: [PATCH v3 2/2] PCI/IOV: Use the cached VF BARs size instead of re-reading them Thread-Index: AQHTsaS1TwIm3iGB3UmhQpx81kZ7sqO9fT6AgABxNoA= Date: Sat, 3 Mar 2018 04:34:10 +0000 Message-ID: <1520051649.28771.3.camel@amazon.de> References: <1519939897-14596-1-git-send-email-karahmed@amazon.de> <1519939897-14596-2-git-send-email-karahmed@amazon.de> <20180302214857.GD202062@bhelgaas-glaptop.roam.corp.google.com> In-Reply-To: <20180302214857.GD202062@bhelgaas-glaptop.roam.corp.google.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.43.164.111] Content-Type: text/plain; charset="utf-8" Content-ID: <0A7983D3A3C88A43ADB3958C028B793A@amazon.com> MIME-Version: 1.0 Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gRnJpLCAyMDE4LTAzLTAyIGF0IDE1OjQ4IC0wNjAwLCBCam9ybiBIZWxnYWFzIHdyb3RlOg0K PiBPbiBUaHUsIE1hciAwMSwgMjAxOCBhdCAxMDozMTozN1BNICswMTAwLCBLYXJpbUFsbGFoIEFo bWVkIHdyb3RlOg0KPiA+IA0KPiA+IFVzZSB0aGUgY2FjaGVkIFZGIEJBUnMgc2l6ZSBpbnN0ZWFk IG9mIHJlLXJlYWRpbmcgdGhlbSBmcm9tIHRoZSBoYXJkd2FyZS4NCj4gPiBUaGF0IGF2b2lkcyBk b2luZyB1bm5lY2Vzc2FyaWx5IGJ1cyB0cmFuc2FjdGlvbnMgd2hpY2ggaXMgc3BlY2lhbGx5DQo+ ID4gbm90aWNhYmxlIHdoZW4geW91IGhhdmUgYSBQRiB3aXRoIGEgbGFyZ2UgbnVtYmVyIG9mIFZG cy4NCj4gDQo+IFRoYW5rcyBhIGxvdCBmb3IgYnJlYWtpbmcgdGhpcyBvdXQhICBJdCBzZWVtcyB0 cml2aWFsLCBidXQgaXQgZG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