From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B5E09A034F; Tue, 8 Jun 2021 07:48:16 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A0784410EB; Tue, 8 Jun 2021 07:48:16 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 109294013F for ; Tue, 8 Jun 2021 07:48:14 +0200 (CEST) IronPort-SDR: 7q82dzZBgkCgaQDAHCLq0L9KLl5jH/rx8MzvRdpeOImmKXRUYe1LoT2gz8mnxAsF/KNWo4b5FZ XxnW4m+ZeeNg== X-IronPort-AV: E=McAfee;i="6200,9189,10008"; a="204799760" X-IronPort-AV: E=Sophos;i="5.83,256,1616482800"; d="scan'208";a="204799760" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2021 22:48:14 -0700 IronPort-SDR: ZVc/2tYOWA0Z6zJ4GnPf0hTJB/rMHLKu3xKAdKSbNlCj06WVd9dImPaGPAgWKVLrnoaaepoqQo mCIUbNe1dmCA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,256,1616482800"; d="scan'208";a="413272396" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by fmsmga007.fm.intel.com with ESMTP; 07 Jun 2021 22:48:14 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Mon, 7 Jun 2021 22:48:13 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4 via Frontend Transport; Mon, 7 Jun 2021 22:48:13 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.176) 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.2242.4; Mon, 7 Jun 2021 22:48:13 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EqgvbFvGtgFPc7zLHsAOiUH3Dqeoo0WdFNwqrYoDoK0ni1NxJKKM7A2g29zQYkMWKyfqWfjmwVgUn7cXo6bkOsCXbeeh5k1dsxmBoQSFlfJZlaqxCPbERHWLl3Rz+3bmfd5+z+76cch9HLnszYpBtNaT+o6idiCyq22QqpT4H44ZUG2GAOsYmYexmQNLOoTjZMjnhtCP0WbphKm/upUUoLTYYFQT3FlYKheloxG5AYyJfaFzxNz2jnvoHuP+i7XM0C9HOd5gXpJrXXGVvrVjc3DvnnPOuSdfa492YiLLBwxvxBL8PsgyMDrv8lZYv0ASTAZr5y/dcmgXc4/3W0eoAA== 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=j/hWhBrM7CigEm8Rg5Mim3TRzvy4pYbrvlynz/OZlW0=; b=SyuxYbIEAhq9+8rhjzLfrXcKgs+vaS9I14Wxv6wOWvwY+2Ftfa/uw48NwT/YrTdzLGVvbP/dC0uu/5YdQD8ByyjwiiLT9p/0Ayhz5UhrxA75R5Ka1uKS2ojCucH6qNnCd4z2AQgxjFs4fCxNr4Ku2zEavhVG6Y29TgwzEz/QVgWP/NXqd/vFiDDDignqbmMvl9MeatSttQRkaqA6T9cebJozAzIpUHoOfzSfhUh8SEzUyO6sCtEF6FlCXenV/7zTgfo8o8Iy09p9dIdEFiZd43U5ZfRoyqlXjQSUcrpZAB3c9f4LiA2PXhftS3fF1UgGX0jJNi7q7Uq4np2JowpJag== 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=j/hWhBrM7CigEm8Rg5Mim3TRzvy4pYbrvlynz/OZlW0=; b=fiQvPuOw8NEpd3z6aUf/R30jU3Ut8dhzwYIrfQwEldhScyhYTfXdBYlQg8ql6ubr9dDr7Ipgpw7oV5WiB/xSYvQ5b+93Ld13td+aeoHhkLIBYerWnsBNsaeHAQXKmHG2Rfmvqw4oLWjHEscNNH+IXRQmTNmGTjrsQaEhQl+jig4= Received: from MN2PR11MB4063.namprd11.prod.outlook.com (2603:10b6:208:13f::22) by BL1PR11MB5336.namprd11.prod.outlook.com (2603:10b6:208:316::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.24; Tue, 8 Jun 2021 05:48:09 +0000 Received: from MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::6d37:7bdb:fdf1:e9f3]) by MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::6d37:7bdb:fdf1:e9f3%4]) with mapi id 15.20.4195.030; Tue, 8 Jun 2021 05:48:09 +0000 From: "Xia, Chenbo" To: Stephen Hemminger CC: "dev@dpdk.org" , "thomas@monjalon.net" , "Liang, Cunming" , "Wu, Jingjing" , "Burakov, Anatoly" , "Yigit, Ferruh" , "mdr@ashroe.eu" , "nhorman@tuxdriver.com" , "Richardson, Bruce" , "david.marchand@redhat.com" , "Ananyev, Konstantin" , Tiwei Bie Thread-Topic: [RFC v3 4/6] eal: add a helper for reading string from sysfs Thread-Index: AQHXVqh/VMNCDcUC6U2dfNfnk4jnfqsJpkfw Date: Tue, 8 Jun 2021 05:48:09 +0000 Message-ID: References: <20190715075214.16616-6-tiwei.bie@intel.com> <20210601030644.3318-1-chenbo.xia@intel.com> <20210601030644.3318-5-chenbo.xia@intel.com> <20210531223922.4fb5397c@hermes.local> In-Reply-To: <20210531223922.4fb5397c@hermes.local> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: networkplumber.org; dkim=none (message not signed) header.d=none;networkplumber.org; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.55.46.52] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7192c4bd-916b-49a6-143c-08d92a40ff46 x-ms-traffictypediagnostic: BL1PR11MB5336: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:494; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 45wR1BnZFUGrUH2U3CfY2iMQwjD0sTH/oy+J7rHIjx3c5mRxuTeG4/almeSsQg3kv0PxyoteHUEAGfRtl9RFJAAaOkx86e28aYKuVVJbZiegnHW10MTmSf6rf/AE8xwb6DQ30a4lv+q3k9o6uTIt5hluXJqmlzeptY8mu1+X7t7s8RlFlkEJhTRXh4OnV+b2ejXeqG003+AH4DWKDFPdI7LnSzH7qvnLOHdrVxmpBQIw+t6D+FfLJY+a3v5GYGz+8GX0TCUj5lwld8zpGU/z9MAbVyLNGcCk2GEbbeAtoLXe0+sFiABeZMJ5oh4+/bSJbpu4IXrSsGzhKy30SpvZkMqqpP6W482Ff5fCxIxqaGWEUSRo6KBHarSvErBGJ5tfd16iFFlEt3BFomWXSp+xHb1i5fUKLi6KVxJSyI6msl6an6f5z7QZlGqLutRyJGOFmYotxId9vqdKCUi+KUw4D15l40fCU9QbfhJQJKMM/IQ4Xc+7S3shpJdfdgNXAH8cweDrGVs5IpspxZI37WUq/zKsmrY9HhaaJarTBL+A94LiAfVMjyddTbzz4x6mofeVTAOWsLWKVPUsDQg7lgA5Le9arAtsvLsTIURAlygqzXo= 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:(396003)(136003)(366004)(376002)(346002)(39860400002)(38100700002)(122000001)(9686003)(55016002)(6916009)(5660300002)(66946007)(64756008)(52536014)(76116006)(71200400001)(86362001)(66446008)(2906002)(66476007)(83380400001)(33656002)(7696005)(53546011)(66556008)(8936002)(54906003)(316002)(8676002)(107886003)(4744005)(186003)(478600001)(26005)(6506007)(4326008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?Q2Y1dlNFcEJBQnZPR3lYMm1EOUxSdXVxR1pjV24xR3g2VkpvTW5ETGRFb2ww?= =?utf-8?B?NkZNYUYrdi9iM3h4YjlDQVJFOWRYQWlieEE0MW16SXo1REg4RTFwZFhkaTNh?= =?utf-8?B?R1hqR1FVQk15aEE1WGR0L0dIbURwWWhLUmo2OVhsWmJsdU5yS3liY0trbm9q?= =?utf-8?B?Sy90ZEI2Z0RBUmg0OWRtMEFHUnRYZm94cDB4dEt2QVNIRUJQaFNodFFVcnF6?= =?utf-8?B?WTIzaFR1YUE2eFNUeHJYUUUyVXBQTVZFNnNGcXB6YkRsTTEzcVIwS0djVWo0?= =?utf-8?B?UVRSTGhLa0ZhTmNyV2EwRVlJUHl0TllCbVpYcHd4b2hIY280YTV5bmF4STR6?= =?utf-8?B?bzJ5VmNpSDk2aDA2TllqWjBGd2xKVG5jQkpSSWtvek1KbEY3cENjaUFrNEl6?= =?utf-8?B?MGhWSUpYdTArSGtyNlRpUDRHT2JGaTh6RldQWE9EelFi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5cjljdzc2RFo0dktEanBjY0YrZ0dSTDBPWWlqL0tq?= =?utf-8?B?YVErM0hZZzN5dklkR0xlWUNLcWxGVjFYVDNrdWZpNEs1b0swQk1Ha2RvZzRN?= =?utf-8?B?eUN5UkFDWCtTMUxWK202S0s4SzY2L2tOVnFRVUZuR0xjdkN6K25LNHFOOVox?= =?utf-8?B?TTBLd3VMMHlSQUVrUnFqdHhtdkw4eVNpc1BZQmVuclpURTdyWEtCZTFVSHBl?= =?utf-8?B?V0V5Z3VFR1NVQlNjaVBuNmxvVnBMR0loSjFwT3plL2ZmVmFHME1iakRPZGFZ?= =?utf-8?B?NFBKMGo0OS9HcTZzMDhXc3RDMENCWnRnVSt6c0ZkMThVN0ppd0wvK2dZUmRm?= =?utf-8?B?aVY2NVBNWUM1bk1xUnc0Yy9QcEpnUmllekpESGxqSlFCREZwTmg3VXYzSzVM?= =?utf-8?Q?CrJ68vLiQLcxsGentA=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: 7192c4bd-916b-49a6-143c-08d92a40ff46 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jun 2021 05:48:09.6633 (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: QEGjhG2tDFjisH8+j7TCnCj+pXgym8A49H/u8nOYIgJBZ6ECbALY3D6sE39a5wMPPKLvoj3abvKT7lYmHU6O0A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR11MB5336 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [RFC v3 4/6] eal: add a helper for reading string from sysfs X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" SGkgU3RlcGhlbiwNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBTdGVw aGVuIEhlbW1pbmdlciA8c3RlcGhlbkBuZXR3b3JrcGx1bWJlci5vcmc+DQo+IFNlbnQ6IFR1ZXNk YXksIEp1bmUgMSwgMjAyMSAxOjM5IFBNDQo+IFRvOiBYaWEsIENoZW5ibyA8Y2hlbmJvLnhpYUBp bnRlbC5jb20+DQo+IENjOiBkZXZAZHBkay5vcmc7IHRob21hc0Btb25qYWxvbi5uZXQ7IExpYW5n LCBDdW5taW5nDQo+IDxjdW5taW5nLmxpYW5nQGludGVsLmNvbT47IFd1LCBKaW5namluZyA8amlu Z2ppbmcud3VAaW50ZWwuY29tPjsgQnVyYWtvdiwNCj4gQW5hdG9seSA8YW5hdG9seS5idXJha292 QGludGVsLmNvbT47IFlpZ2l0LCBGZXJydWggPGZlcnJ1aC55aWdpdEBpbnRlbC5jb20+Ow0KPiBt ZHJAYXNocm9lLmV1OyBuaG9ybWFuQHR1eGRyaXZlci5jb207IFJpY2hhcmRzb24sIEJydWNlDQo+ IDxicnVjZS5yaWNoYXJkc29uQGludGVsLmNvbT47IGRhdmlkLm1hcmNoYW5kQHJlZGhhdC5jb207 IEFuYW55ZXYsIEtvbnN0YW50aW4NCj4gPGtvbnN0YW50aW4uYW5hbnlldkBpbnRlbC5jb20+OyBU aXdlaSBCaWUgPHRpd2VpLmJpZUBpbnRlbC5jb20+DQo+IFN1YmplY3Q6IFJlOiBbUkZDIHYzIDQv Nl0gZWFsOiBhZGQgYSBoZWxwZXIgZm9yIHJlYWRpbmcgc3RyaW5nIGZyb20gc3lzZnMNCj4gDQo+ IE9uIFR1ZSwgIDEgSnVuIDIwMjEgMTE6MDY6NDIgKz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