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 F1729A09F6; Thu, 17 Dec 2020 23:37:17 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5C2BFCA37; Thu, 17 Dec 2020 23:37:16 +0100 (CET) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-eopbgr770129.outbound.protection.outlook.com [40.107.77.129]) by dpdk.org (Postfix) with ESMTP id 925C8CA35 for ; Thu, 17 Dec 2020 23:37:14 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gV+p5ywPLuZ0MjPiQNkq7lnK/4QoPKgxxffmUIm4Xc3JwtP0U8YeCL3OEFHtMELzcCd2ySfdo36Y7G9bPZeliew55BhnpZcsymAlyjMvxNMN/lC8KOo1RyjkzSaA5Rhk4iemxAqJoquJ5X5Z+A0qsqIeSxjzt9jNtoICdOKGN73tZPs0+iTgIBsXEVQUV+J6xpWP//ehP+xPAPyEinzS8E1nmGBAfgSleozxkLvdGt6ZH7/iK0djmNHP9btC+tLN3FFpbRpbO14n4a6LC2it6t2RK8Jh58RA1eS2gxI8Idn83dmbpjXKAryYZ/GYlrp0y+vwuvfhqrcvY6LANsohIQ== 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=KRsP6USV+af+TUr3oLasGbPWPmvDkFaGza2F5UJlftg=; b=beweX9qZC2mz1epeIGsS6/MT4j7t8+ZqW/I3eVZjX+YUTNdJrIYec3lmTVV8UX8umIY9Yn1hdWuSiwCp0dTB65ieZQ3BnBFNEn+bwjGkCe9yVOZIr+mXgqYoT8WDP6rBXvQFpCtAiiIXZPltbXz3PiAcP5c35CxjLSDBEWo4PPK2i1CH4/PdyyzCy9CStoDmS1u5Re92iHt3ZP0UvPZ8vMPOwq1G2XsLZQhfSSmqabRALVbejKsog9hoUPMRnPxbc+PfjcaoVAO9My/gxYirTVosrNFtq/fUIwrQO6FmY1XS8icIsg+SujCPiJDZwizEZlAs0SImTJTc36G14mxcoA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KRsP6USV+af+TUr3oLasGbPWPmvDkFaGza2F5UJlftg=; b=HRiM3foBbn272H8bDzTJRMpFsbPBeKVbumirzyXMpizaVpndQotCE83hr4U9g3JTtTzwXApajgEFpk24sYcYvQLXq+Ip+TWMaIGYkCJTee3A63Qd7xr5wm1+WW3pdp8Ny6JXUHiYbEXff0Dv89pUjtsb1Agx5RTmRZNgkAQJIUY= Received: from (2603:10b6:408:73::10) by BN6PR21MB0275.namprd21.prod.outlook.com (2603:10b6:404:9b::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3700.8; Thu, 17 Dec 2020 22:37:11 +0000 Received: from BN8PR21MB1155.namprd21.prod.outlook.com ([fe80::113b:feec:27f5:5ef0]) by BN8PR21MB1155.namprd21.prod.outlook.com ([fe80::113b:feec:27f5:5ef0%9]) with mapi id 15.20.3700.008; Thu, 17 Dec 2020 22:37:10 +0000 From: Long Li To: Luca Boccassi , Long Li , Stephen Hemminger CC: "dev@dpdk.org" , Stephen Hemminger Thread-Topic: [dpdk-dev] [PATCH 1/2] eal/hotplug: allow monitor to be setup by multiple places Thread-Index: AQHWx7d7+C/Q5vKd00imfs9SPl6QWKn7fXIAgAB9QMA= Date: Thu, 17 Dec 2020 22:37:09 +0000 Message-ID: References: <1606809383-26660-1-git-send-email-longli@linuxonhyperv.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=c2312ab4-c74f-4275-80e4-0658bdf1fb0d; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2020-12-17T22:36:30Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; authentication-results: debian.org; dkim=none (message not signed) header.d=none;debian.org; dmarc=none action=none header.from=microsoft.com; x-originating-ip: [67.168.111.68] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: eeccaa24-978b-429a-c611-08d8a2dc4a90 x-ms-traffictypediagnostic: BN6PR21MB0275: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 7Ef9QcOM3n4hN0dJZFl7ixWKACQ3YVUqfTYiIr4XZYhJ5KuWSSyZRJAvzdZmMWeNG2jmeYGPbtbPUDrqOBUjA30jy/X6mpKKmiiAMLeiDJy8a9h5yMBG7NGI8dboZHSjzGHc3mSqJimyanNKos6Sfqx3VRnFduYpf4IjMmyANUn6x+VFWBCgbviPzowakz/VNgmxxtwnpAje2+a9o7EDiv+vWiogoibbrH7Y3QluFWNXEHTBK4tw/wCkEo6i7x8/A+ngxR398saPE8qLZ1bKFRKkxs2cc2l7UNxywO81JUIL5SXc0QYHVyPo2Tu0koduUVwZ7U8hRQpqo086jvYgvznswZb/TtIHiFh+S3LefowTu5kNawRsqlR5Z4ulWnBVm+/sSc1H4phfkDgyAm7Oow== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN8PR21MB1155.namprd21.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(366004)(346002)(39860400002)(376002)(396003)(8936002)(8676002)(9686003)(316002)(76116006)(4001150100001)(64756008)(110136005)(82960400001)(66946007)(66556008)(66476007)(2906002)(54906003)(478600001)(5660300002)(10290500003)(66446008)(33656002)(86362001)(4326008)(7696005)(6636002)(83380400001)(82950400001)(55016002)(52536014)(6506007)(71200400001)(186003)(26005)(8990500004); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?utf-8?B?R3lFeHJNVjhxK3hXMUlvbDg0eTdwbVFhWDg0NFQvaXVFN0JjckVXQkIxc0w3?= =?utf-8?B?d2RuZTJJcVl1eHE2SEs2WlBkODBRRW80MHc4YTYyUDRScnpUOFlNaHBKbTQv?= =?utf-8?B?Y2ZhelJsMjZxanJGOU1yUkxVQkNURXluWnBDcXFQVzNUMUtJVDZ6d05BcmRs?= =?utf-8?B?SXVMRktLUWRiN1QyaFZzWVp4WHlUVERadVdra211alRyblhvWGE0Z1NnWHVv?= =?utf-8?B?dVc3RHF0aEhISVFGTVpIR1lnWVM1YWNSaElvYTlhb0szSXF6M01zOFc2enFr?= =?utf-8?B?dnJoWUNaek1ZbmdEK2lpT1d1cHVScVZ3TThVWWNxZjVGVjg1cDFPcTdWa3FW?= =?utf-8?B?dkJKK0J0c09ZNUFndEFvemdsMlJMcm5ZWDJXM1ZjMit4NDFZYlk2czhGcnBy?= =?utf-8?B?WVhHUEpvWlhjdDlLcEJUQzM2UDdOc3BxZ1BqQTJIY2ZST2RIUEVhYXMwUVZR?= =?utf-8?B?c0JjTk4vdHVYb3kya0dsc2hIbThoVE10L0VEZmhpOG1yRnFkSlJqUklxLzlQ?= =?utf-8?B?Yk9EbDRkcjRRZFJFd1AvS0NCS1ViSjBhdmgvdlpNcHRRNzlvSzE4eHEyTTQr?= =?utf-8?B?ZVNjaUhCVjJSeTdIdktGWUNUbGNNblQyMG9zWXpSdE1TMVR0cWtHeDhHTmdW?= =?utf-8?B?Vjg2WGg1dTNaSnN0NG5pUVBrZVBSb2pMUTdCbHJvT1loL2llOHVzL0tyd3B2?= =?utf-8?B?dEtpTlZhYzlPczRZTmdpdmFuaHFPb2VoSDJJRFBrTkU0NGJzQ1UwQ2Q0ZHZm?= =?utf-8?B?aldUNzc3M042b2pHTkNJTWI5MnVNckxneFFQRFJzQUJsSDZQY2R5YlJxWHRS?= =?utf-8?B?azAwQytxcSsyVkk2VElMVFYvMlV4SmFkVURIVGNzc3pha3N3elc3ZGRvTWxG?= =?utf-8?B?L1BFNlJ4dVJGTXlrTTNjUkdYOVRtQis4REk2bU5jYXhQOEJoMHhjYW1VSTRN?= =?utf-8?B?azk5MVBuSHREbzAzVGsyMGN0TnpkVXpHZFJyNVRvdVZNY09YYU5MeDM5WjRk?= =?utf-8?B?MVdGalRVZmZWeTdQQW9NT0czRHk1UitIODJsTFZHUTJISWg1YkFONEc0bjBN?= =?utf-8?B?UjQvL3d3c1FTUytvLzlwOWg5T0hmU3IvUHlYYnp5bk15dWxQSVEyM0xFT1pY?= =?utf-8?B?Qld2aXo4YVV5RHhEZ2F4NC9rMkEwdFdoeVg4YlRvRWtPN0kwcExGbmRlYW1O?= =?utf-8?B?Ui8zUVBLbXFPZHd0OU9ZbnhZUWt0RTZ4TFlxblVLWnpkUDFULzNXajV1WWtO?= =?utf-8?B?Q0JqNDAzSXJDaTU0Z0UvRVhqSjhqbnk5bEh0TDlnbGNrVVZBWnhSdGJaV2hn?= =?utf-8?Q?YSA5NTQ8tdKRo=3D?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN8PR21MB1155.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: eeccaa24-978b-429a-c611-08d8a2dc4a90 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Dec 2020 22:37:09.8792 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 5W9oECjd1+7thwtgeVqW8bOpMFjdo6l6lWmE/mN1ll7trd2X9pGLrW97MESnE3Ikcip+g0xm8AEsy7NBZ5OVYg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR21MB0275 Subject: Re: [dpdk-dev] [PATCH 1/2] eal/hotplug: allow monitor to be setup by multiple places 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" PiBTdWJqZWN0OiBSZTogW2RwZGstZGV2XSBbUEFUQ0ggMS8yXSBlYWwvaG90cGx1ZzogYWxsb3cg bW9uaXRvciB0byBiZSBzZXR1cA0KPiBieSBtdWx0aXBsZSBwbGFjZXMNCj4gDQo+IE9uIE1vbiwg MjAyMC0xMS0zMCBhdCAyMzo1NiAtMDgwMCwgTG9uZyBMaSB3cm90ZToNCj4gPiBGcm9tOiBTdGVw aGVuIEhlbW1pbmdlciA8c3RlcGhlbkBuZXR3b3JrcGx1bWJlci5vcmc+DQo+ID4NCj4gPiBJbiBz b21lIGNhc2VzLCBhIGRldmljZSBvciBpbmZyYXN0cnVjdHVyZSBtYXkgd2FudCB0byBlbmFibGUg aG90cGx1Zw0KPiA+IGJ1dCBhcHBsaWNhdGlvbiBtYXkgYWxzbyB0cnkgYW5kIHN0YXJ0IGhvdHBs dWcgYXMgd2V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