From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id AA2E1A09FF; Wed, 30 Dec 2020 03:00:59 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 25B0D2B8E; Wed, 30 Dec 2020 03:00:58 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 137742A66 for ; Wed, 30 Dec 2020 03:00:54 +0100 (CET) IronPort-SDR: ECwS2QmOf4qzlKnklmnNtiSF6z1Hi5h7HfSXMoaMpt56QE+N5lJBKbfQYIeUDfhtnp4WQLxEat kJrxCclwWuZw== X-IronPort-AV: E=McAfee;i="6000,8403,9849"; a="173981538" X-IronPort-AV: E=Sophos;i="5.78,459,1599548400"; d="scan'208";a="173981538" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Dec 2020 18:00:52 -0800 IronPort-SDR: p8OCcMh1ODD8VQigMtgSlEnOMWoWot89pq2BzIv4Tk52gjZnHE7SSBTU8ksaAfmchi10vJzfoZ aTH3CiU/VhPg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,459,1599548400"; d="scan'208";a="359081929" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga002.jf.intel.com with ESMTP; 29 Dec 2020 18:00:52 -0800 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 29 Dec 2020 18:00:52 -0800 Received: from fmsmsx605.amr.corp.intel.com (10.18.126.85) by fmsmsx609.amr.corp.intel.com (10.18.126.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 29 Dec 2020 18:00:51 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 29 Dec 2020 18:00:51 -0800 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (104.47.74.41) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Tue, 29 Dec 2020 17:59:58 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k/xOv6rMN788R7fL6M3Bm9Zd70SKfB1yI0clMSZIgYj2gOtt6kA1Lpifja2d+rPYAXX8jS6o55P5FFVK4HGYhvY9pdJJ0kbk7o9ZnNToTUQHAHvHwlFplNVtzdLqICSOEuae7Fnr9CH8APqZ4TeLxJHQGETYn95dhKXc1QbLalcXqn8z0FDxlV+rQVdHWumR1z+NpLIaLHD9Zd7PZIdWYw5OBlT/Hv41ak7YAon6ziyI5ne5qzfRZoclE2dW1myiLW/0xggO+KpY2V48OOSqbuAwIC6CW2+1TU84XHT/h5Jmph9OAxK5WXREg9gK+8DLqVMdNMpEDOAhAVVYg2UEqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dNT7GzuUMytIu1fOehOEOfyuttmM44KMx0wUtAGacYE=; b=aWPspQyq95sqVYmP/WtULKbcWctUwW11trDEhfx1N++c1erKLrGf75m0torT0WDJZf37nk4grfYZlhBFKRMTimcGIeVXj4DobMrfm9v8mAhj4c22OGtHVukUv3P63xbK6YnvtWmzvwMj9/3AU6wU8vmNZh2IP4W58Y6mL/84aEvFe4jjnCKCuU0e/gT63i5/quzsUUXBeNpFTRA0fvFIl1TLnab5FsjF633RwJTSIjVzyBBobE7VyzQhWy31qVBCUBg9NHEBS6+ch1W3b32rspmJixnG2G8E1E4JXKQVv2djnHPaITaxPAwE1Mzf9Q5cXCIqA29WOObj/d4ZV16b7Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dNT7GzuUMytIu1fOehOEOfyuttmM44KMx0wUtAGacYE=; b=Q0+NF3kTvqGQio5mIe7ULXCsjYBDR+NN8cbgh+uv4ED+JFPnhZOLrPYYSbU+PRe4UnllnUHngE9dcfqIrigaoGPs4C8S6pxq5FZUmzFfPgxfndMa9aDwWcKWSv8bFomE58qDHazg8ZuUFRY635KtjpwhxMuEdZEzojQJYWpJIds= Received: from MN2PR11MB4063.namprd11.prod.outlook.com (2603:10b6:208:13f::22) by MN2PR11MB3744.namprd11.prod.outlook.com (2603:10b6:208:f5::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3700.28; Wed, 30 Dec 2020 01:59:57 +0000 Received: from MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::74f2:ba7f:cb22:5272]) by MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::74f2:ba7f:cb22:5272%7]) with mapi id 15.20.3700.031; Wed, 30 Dec 2020 01:59:57 +0000 From: "Xia, Chenbo" To: "Wu, Jingjing" , "dev@dpdk.org" , "thomas@monjalon.net" , "david.marchand@redhat.com" CC: "stephen@networkplumber.org" , "Liang, Cunming" , "Lu, Xiuchun" , "Li, Miao" Thread-Topic: [PATCH v2 5/8] emu/iavf: add resource management and internal logic of iavf Thread-Index: AQHW3aiMfnF2SjpczkusLjFVOi04OKoO40tA Date: Wed, 30 Dec 2020 01:59:56 +0000 Message-ID: References: <20201218074736.93999-1-chenbo.xia@intel.com> <20201219062806.56477-1-chenbo.xia@intel.com> <20201219062806.56477-6-chenbo.xia@intel.com> In-Reply-To: Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.147.218] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ffffd59a-4578-49fc-0020-08d8ac669bb8 x-ms-traffictypediagnostic: MN2PR11MB3744: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: OkvzXMYGTTL8sF/jJEePTeoigCe+EpTNAycbhInqi+g7CAp/+uKEYi866tJ9PX/pZ7Qf8AO4MjgitMg8TcloHuKhfw4jA7SrPpDBLaq/lqs7wJcZnDsUQ8TuvakO8hBr4D7HIVgrXXzGJ519pxaqtlFZEZ4/FN1NvSDHF9XyaCB/GEHPw8T9abHl0jWBNHQ6fxHI1P0aakdvqZM8HlgAvLAh7/NJXxDx62xPfQf8SEyjP/hpU2/t7U7G1jSTQq4SQgPkYv4PsQ+TqTQawA8+2bL7umKn5xRslancg+YpclZkfhEy6mA6+p37vIy12RpdaZzKmxb4ErmArRXjUiPaM8F/fqBhFRuQPP4qjNzVESd9gKv9dvongZv8ktnYg3Smgz/C/APPkuNzyW0DN5GF6g== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB4063.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(396003)(376002)(39860400002)(346002)(366004)(52536014)(6506007)(9686003)(71200400001)(478600001)(64756008)(33656002)(107886003)(66946007)(86362001)(54906003)(66446008)(186003)(53546011)(26005)(55016002)(110136005)(76116006)(66476007)(316002)(5660300002)(2906002)(66556008)(4326008)(8676002)(8936002)(83380400001)(7696005); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?utf-8?B?Q3FFbkgzWXMwNFp0RHJ3UFhlVWNKaHR6emJkYVZHUnozQWM2WW9JWmoxRzBC?= =?utf-8?B?RGNSeVlnZFZ1VllWaWlxRXZUd0FCZ2ZPOVFya25tWlJWNjhuS1JNWlN4eGVs?= =?utf-8?B?UVo1M29ObGZSS25KTml4T2FQcUdvSUFTVGZSdG9HRkovZjRscmtKcjFnRWln?= =?utf-8?B?L3p3ZWVpQ0RJQ3VsQ0phNmVhS1lMZHhDQVlzSE5XL1BXL0V0MEU5dU56YmVS?= =?utf-8?B?Slh6TXZNOHRMZmFuSjhrcm85V1czcHpBa3VVdGhrN1FVbWI1V2pGemdab1NZ?= =?utf-8?B?c0Q1OXJZL1M0QVFNeS8rbnJtZzVLNHFaWlI4dG9ML2VYUzI3YnFmeitjb1o2?= =?utf-8?B?QW5WNStzQVBoYnJiOUdXTGRPbE40elJVWUlycW5ScUU4Y3Z5SnA0WEE0aHJ5?= =?utf-8?B?UzN1ek9PWTl1cFFhSFB4bUM3WjQwVC9TR0F1VzBFakRQRUtBUnpJQnZDOFdu?= =?utf-8?B?L0tveE10aFkzSGtNZTZ6Z01HMlhzVzd0MHQ1ME9kSExwUElnMDVXaHJSVk5N?= =?utf-8?B?dG9oOXdlcmk2dGMvSnRIak9RdGs3WFZLTFlxeHNUVy9BK1E2NTFIZ0c2RXJ4?= =?utf-8?B?bS8rRDl4Z25ZekFDOUpPamVGaUNjL1g0OElTTVd3dHFwTDJSaVlvSDNyK2NZ?= =?utf-8?B?U0hXU21Gc25GNzVGK0JBNGVkMWdyd2QzVU1BQjIwM3F5bnBXcTJKeXlVVnpC?= =?utf-8?B?d1BqUG1Yc1pRMlZCejRyTVVseGxITnZpRkdKSE0vejhHY25ycm0zV0FxV01B?= =?utf-8?B?OG4ybnZqa1A1bVBOUFprc29jdnpMSEVVZHJjanpEUklGb1huVmo0VFhyR3A5?= =?utf-8?B?MWh5bVloVFFLQ0dNcDZSb3d0ZGwxKzN0MGRoYXZ3Yi9RTFFFY1BMNHpjN243?= =?utf-8?B?WEdLYlFhTldORnB3N2JReCtGcWhxMWN1L05vejc1dS84c0o1T2NHTUxOOU9C?= =?utf-8?B?RHp5R3owNXRzcFRrSDdweVNDemQ0WE5OY1BHbEhxMklZeE96NnNQQXBwR29q?= =?utf-8?B?cDREV2hjV1BidWJoUGgraWpHa0l3WW9ueXF2Skh2Yzd6ZUYrSWlNMGQrczNM?= =?utf-8?B?VnB6M2tzTDZ1Z29FcHFZYTZRaU92MkczT1ZPNlVUNkxFL3lLaUh1WDBEMFZ6?= =?utf-8?B?SjhaKzlTVnllSW41TFhZUzg4OVBkQkpSaUJaNmhneDRCR1RSLzZ3L21OWjlB?= =?utf-8?B?aENNWTFDVSt0VCs1NTRqRTBuckFFb2owVmVCZWlCd1RRUmJmaWNUcXJUWUQy?= =?utf-8?B?eWpSekNlelVhZWNLalpSL0Q5b1NiazZRNFpIb2hzdkVMaFFneTBJalRlaWNn?= =?utf-8?Q?QCRYOD513K4ZU=3D?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR11MB4063.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ffffd59a-4578-49fc-0020-08d8ac669bb8 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Dec 2020 01:59:56.5167 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 9HzzUVsdPCDta0hCh0uu3/VCN2aozv5NXdPWOl6d+4kJoEEa1qpChEIt5Rf0JpPwi9IVR1kLtyQkZ76jMPXfxQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3744 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v2 5/8] emu/iavf: add resource management and internal logic of iavf X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" SGkgSmluZ2ppbmcsDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogV3Us IEppbmdqaW5nIDxqaW5namluZy53dUBpbnRlbC5jb20+DQo+IFNlbnQ6IFR1ZXNkYXksIERlY2Vt YmVyIDI5LCAyMDIwIDI6MDUgUE0NCj4gVG86IFhpYSwgQ2hlbmJvIDxjaGVuYm8ueGlhQGludGVs LmNvbT47IGRldkBkcGRrLm9yZzsgdGhvbWFzQG1vbmphbG9uLm5ldDsNCj4gZGF2aWQubWFyY2hh bmRAcmVkaGF0LmNvbQ0KPiBDYzogc3RlcGhlbkBuZXR3b3JrcGx1bWJlci5vcmc7IExpYW5nLCBD dW5taW5nIDxjdW5taW5nLmxpYW5nQGludGVsLmNvbT47IEx1LA0KPiBYaXVjaHVuIDx4aXVjaHVu Lmx1QGludGVsLmNvbT47IExpLCBNaWFvIDxtaWFvLmxpQGludGVsLmNvbT4NCj4gU3ViamVjdDog UkU6IFtQQVRDSCB2MiA1LzhdIGVtdS9pYXZmOiBhZGQgcmVzb3VyY2UgbWFuYWdlbWVudCBhbmQg aW50ZXJuYWwNCj4gbG9naWMgb2YgaWF2Zg0KPiANCj4gPiArc3RhdGljIHNzaXplX3QgaWF2Zl9l bXVfYmFyMF9ydyhzdHJ1Y3Q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