Received: by 10.223.185.116 with SMTP id b49csp6678440wrg; Wed, 28 Feb 2018 13:34:55 -0800 (PST) X-Google-Smtp-Source: AG47ELurYdaUFFJ56vQJDTMVI+Ols7r4/clzeS+/EWXiwpULtTMB/XE4cAdsh3lrOSbO1xQAgyX6 X-Received: by 2002:a17:902:7c16:: with SMTP id x22-v6mr2985352pll.23.1519853695755; Wed, 28 Feb 2018 13:34:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519853695; cv=none; d=google.com; s=arc-20160816; b=bldix/jXhMmCNr+qQMRhoC0yDkcn9MkW4ebD9Ptd2ihsyfIh/JmzLU5Pie08C/H/i9 WgMYDCVRX6sqD/7B4t3NVS/EOFfKWgxAMg1PWEzGFnaJTrWk214+1FotirDHKOsiAzAj nHGWCU1YTNIThPJa2hg6DXkHud3dmSCDd1zbjknUlIbCvDl4LFAT2VaLdoKuhPcWYCNV WBOzujrQDM32BE+r8qnq73BSEyWwMGP/YevTYM84VhMyWWGEU4RgpFKq/ttqLwVZ79Mc oBKARKzBe7Ix6Wzn4pkspi05hH/PP99S10sXZmA7vnDyv9ffp6Xwkh0vDEhvpDAnniyL qXoA== 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=FxMXkfciVRdjO+2CLW4X/wTpJ/oigTgsmnivF5HKp2A=; b=Jd5/bXp9CAiScyRdXjiJWCh6E9yRIL5u73rb2lGRDKC/G3KVh/puhB0ln5hXEnwM+Z /hGOcgzx376D/UReeuj2J2IbhniGHnHBQCwfXsoqi13Oj/qGRu8Br5NUthxDjrwviRMS rYfwaakj/HaFbEcgN59ZX8B9Tzg7laxBOS73UW/IsSQfjcQ72zSdmLqs+TRJWQXE+xL3 lt3rId9ruLqi9r6RVbrGy4mDUseJwCh1MgdgMddDCqTnR7UU4QvVWXs18k8qKagaOZ3w Tqbf4rmXgUuXCECdeXCAV72ykVcjfXUpKBaCkvAIq/BlT+B1oX9/c+5MUPoa3NnVrrg1 Q8wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=abENbz73; 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 bc6-v6si1858598plb.250.2018.02.28.13.34.39; Wed, 28 Feb 2018 13:34:55 -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=abENbz73; 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 S935109AbeB1Vdz (ORCPT + 99 others); Wed, 28 Feb 2018 16:33:55 -0500 Received: from smtp-fw-9101.amazon.com ([207.171.184.25]:64062 "EHLO smtp-fw-9101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932597AbeB1Vdx (ORCPT ); Wed, 28 Feb 2018 16:33:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1519853633; x=1551389633; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:mime-version: content-transfer-encoding; bh=FxMXkfciVRdjO+2CLW4X/wTpJ/oigTgsmnivF5HKp2A=; b=abENbz73Pn/YrGpgbXKpMu7Uba89zDcHxGY3XKBEBtcFCttEkKjfacqn nYCVOzAW87HS36P8Sjn//EcPJ1BPWZIIrZ6p+dPkxYeJz/eAMrSYj1y5E mE7HClzcn0UPzVR5obRnjNec/na3kZHi/oW1CXR2Z8M/M9VY+KiZn2jAz s=; X-IronPort-AV: E=Sophos;i="5.47,406,1515456000"; d="scan'208";a="725070132" Received: from sea3-co-svc-lb6-vlan3.sea.amazon.com (HELO email-inbound-relay-1d-9ec21598.us-east-1.amazon.com) ([10.47.22.38]) by smtp-border-fw-out-9101.sea19.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 28 Feb 2018 21:33:50 +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-9ec21598.us-east-1.amazon.com (8.14.7/8.14.7) with ESMTP id w1SLXmCC093552 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 28 Feb 2018 21:33:49 GMT Received: from EX13D01EUB003.ant.amazon.com (10.43.166.248) by EX13MTAUEA001.ant.amazon.com (10.43.61.82) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Wed, 28 Feb 2018 21:33:48 +0000 Received: from EX13D01EUB003.ant.amazon.com (10.43.166.248) by EX13D01EUB003.ant.amazon.com (10.43.166.248) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Wed, 28 Feb 2018 21:33:47 +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; Wed, 28 Feb 2018 21:33:47 +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] pci: Store more data about VFs into the SRIOV struct Thread-Topic: [PATCH] pci: Store more data about VFs into the SRIOV struct Thread-Index: AQHTj7rawZVGVaFUvUSlYawj/S2CCKO6lzwAgAAA74A= Date: Wed, 28 Feb 2018 21:33:47 +0000 Message-ID: <1519853627.15908.23.camel@amazon.de> References: <1516211063-1488-1-git-send-email-karahmed@amazon.de> <20180228213026.GN127842@bhelgaas-glaptop.roam.corp.google.com> In-Reply-To: <20180228213026.GN127842@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.165.101] Content-Type: text/plain; charset="utf-8" Content-ID: <77BF2343E72F7143B3CFCEFBA75D5057@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 T24gV2VkLCAyMDE4LTAyLTI4IGF0IDE1OjMwIC0wNjAwLCBCam9ybiBIZWxnYWFzIHdyb3RlOg0K PiBPbiBXZWQsIEphbiAxNywgMjAxOCBhdCAwNjo0NDoyM1BNICswMTAwLCBLYXJpbUFsbGFoIEFo bWVkIHdyb3RlOg0KPiA+IA0KPiA+IC4uLiB0byBhdm9pZCByZWFkaW5nIHRoZW0gZnJvbSB0aGUg Y29uZmlnIHNwYWNlIG9mIGFsbCB0aGUgUENJIFZGcy4gVGhpcyBpcw0KPiA+IHNwZWNpYWxseSBh IHVzZWZ1bCBvcHRpbWl6YXRpb24gd2hlbiBicmluZ2luZyB1cCB0aG91c2FuZHMgb2YgVkZzLg0K PiA+IA0KPiA+IENjOiBCam9ybiBIZWxnYWFzIDxiaGVsZ2Fhc0Bnb29nbGUuY29tPg0KPiA+IENj OiBsaW51eC1wY2lAdmdlci5rZXJuZWwub3JnDQo+ID4gQ2M6IGxpbnV4LWtlcm5lbEB2Z2VyLmtl cm5lbC5vcmcNCj4gPiBTaWduZWQtb2ZmLWJ5OiBLYXJpbUFsbGFoIEFobWVkIDxrYXJhaG1lZEBh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