Received: by 10.223.185.116 with SMTP id b49csp3648218wrg; Tue, 6 Mar 2018 02:38:18 -0800 (PST) X-Google-Smtp-Source: AG47ELt5lrWbkrpU/jYjvWyP8aRm+Pm/JaN8eJKgLGpFucoH0TxcXXkzJI5BDtmeuOKsEe3X6KQ+ X-Received: by 2002:a17:902:b903:: with SMTP id bf3-v6mr16619141plb.316.1520332698700; Tue, 06 Mar 2018 02:38:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520332698; cv=none; d=google.com; s=arc-20160816; b=U/6Z2HqSx/MGGPsA2fZ2crdvacU3P7xFO1uqSFZ0wKPyvrcPL84ix97ormuzwrlRsO 4oUS8kNDfSPvsa3k50bkT19tNQv0Napf/3LtIBt89pNBGaGML0U92YFNM2+OAl/tO4NX S5gxpOSVTm2C0PyfvI3+9qb0eD9zgdz2tHynoCjLIq+EoMOr7+/oJ0WMS8eb6vEv5bpC XVWWhVR3zWMdpqmB0O+nKuCsZ/roUHAgNVyQOHgOaaKHcW5LjXYGDdZW3xWEHB5aLghk RdjJHonhaKU/8vvIIB5qTmOU1Hg20zd5GhxsDkd3Ot1z35lYHYV4XxZl38mmHN0hpjtR t3Jw== 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=VYsjZgqJSsiGBRk15P1k5ah/AJkJS+yQ+BmHDlb3YUQ=; b=pGjEqf5MCINKmoONgR9r3vQ+nr/FrX4YTQxyvnTkRtloI4ICvlb8IFexvK46b3pxwz 7UobULwTwjn4Qg+CgZyOft9Myjs8VpGk8JxxbSjbUQTCINI5Jiea3nBucZQ55Bk9HWl6 FusDF6QS8hqTUdK7Pty3yXhNcJ/bC2WF6ahnbKJlLMJU152MDtn3nRmY1ItZeSef5jaV VUWwAYuo4wApPjb70ezd/DXlpWe58OakeI3cheyMduGXcrP0ra5DS4T240dQojgVWo9l PYtx+npge4ALKsAoidNVO/nsEeDSbb87M5EUcTv7JeYMfnhCBLrbXfCdcocvvlzAZDKf vyzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=TqGMsDRk; 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 x87si11833838pff.17.2018.03.06.02.38.03; Tue, 06 Mar 2018 02:38:18 -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=TqGMsDRk; 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 S932418AbeCFKhJ (ORCPT + 99 others); Tue, 6 Mar 2018 05:37:09 -0500 Received: from smtp-fw-4101.amazon.com ([72.21.198.25]:32458 "EHLO smtp-fw-4101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750897AbeCFKhH (ORCPT ); Tue, 6 Mar 2018 05:37:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1520332626; x=1551868626; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:mime-version: content-transfer-encoding; bh=VYsjZgqJSsiGBRk15P1k5ah/AJkJS+yQ+BmHDlb3YUQ=; b=TqGMsDRkNJSCJNwqybhm4nen6yCA1TsQGukwxe3reh53TWZ7Zi4R1rsX /emxE0WLv1O9KlV2UoBfXiQprgry5IFs1KnVRfUYfUf6HLJZTjGTY44pI EIbqbSVLdkTXN0LyxG0ABFDrlFNDYqvvvF1G8tS7LIYnkVgBZDJpirlMW 4=; X-IronPort-AV: E=Sophos;i="5.47,431,1515456000"; d="scan'208";a="710603536" Received: from iad6-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-2b-2eab95aa.us-west-2.amazon.com) ([10.124.125.6]) by smtp-border-fw-out-4101.iad4.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 06 Mar 2018 10:37:05 +0000 Received: from EX13MTAUEA001.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan2.pdx.amazon.com [10.236.137.194]) by email-inbound-relay-2b-2eab95aa.us-west-2.amazon.com (8.14.7/8.14.7) with ESMTP id w26Ab0Z5031086 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Tue, 6 Mar 2018 10:37:04 GMT Received: from EX13D01EUB001.ant.amazon.com (10.43.166.194) by EX13MTAUEA001.ant.amazon.com (10.43.61.243) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Tue, 6 Mar 2018 10:37:03 +0000 Received: from EX13D01EUB003.ant.amazon.com (10.43.166.248) by EX13D01EUB001.ant.amazon.com (10.43.166.194) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Tue, 6 Mar 2018 10:37:03 +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; Tue, 6 Mar 2018 10:37:02 +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 1/2] PCI/IOV: Store more data about VFs into the SRIOV struct Thread-Topic: [PATCH v3 1/2] PCI/IOV: Store more data about VFs into the SRIOV struct Thread-Index: AQHTsaSzivhNtpfUU0WqUXkbOks3dqO9ec6AgAWRB4A= Date: Tue, 6 Mar 2018 10:37:02 +0000 Message-ID: <1520332621.28771.13.camel@amazon.de> References: <1519939897-14596-1-git-send-email-karahmed@amazon.de> <20180302213639.GC202062@bhelgaas-glaptop.roam.corp.google.com> In-Reply-To: <20180302213639.GC202062@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: 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 T24gRnJpLCAyMDE4LTAzLTAyIGF0IDE1OjM2IC0wNjAwLCBCam9ybiBIZWxnYWFzIHdyb3RlOg0K PiBPbiBUaHUsIE1hciAwMSwgMjAxOCBhdCAxMDozMTozNlBNICswMTAwLCBLYXJpbUFsbGFoIEFo bWVkIHdyb3RlOg0KPiA+IA0KPiA+IFN0b3JlIG1vcmUgZGF0YSBhYm91dCBQQ0kgVkZzIGludG8g dGhlIFNSSU9WIHRvIGF2b2lkIHJlYWRpbmcgdGhlbSBmcm9tIHRoZQ0KPiA+IGNvbmZpZyBzcGFj ZSBvZiBhbGwgdGhlIFBDSSBWRnMuIFRoaXMgaXMgc3BlY2lhbGx5IGEgdXNlZnVsIG9wdGltaXph dGlvbg0KPiA+IHdoZW4gYnJpbmdpbmcgdXAgdGhvdXNhbmRzIG9mIFZGcy4NCj4gPiANCj4gPiBD YzogQmpvcm4gSGVsZ2FhcyA8YmhlbGdhYXNAZ29vZ2xlLmNvbT4NCj4gPiBDYzogbGludXgtcGNp QHZnZXIua2VybmVsLm9yZw0KPiA+IENjOiBsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnDQ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