From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0073.outbound.protection.outlook.com [104.47.0.73]) by dpdk.org (Postfix) with ESMTP id 144231D978 for ; Sun, 10 Jun 2018 13:01:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lsYLencT292wdDS8MHX9aAsx0XQoJnJ9zTgCpfDyICE=; b=bWURn8XCklbX1GlQxmoo1SeAEWjLzE90HYxqqukWWBsaq7EVNGgnKoyt9pVDvodRqw3OPawwPEbHZuCb+UtfVNvErM2fAw7BDLDDjMezPL0F2ddiLu1ZeAv6hyPWC2MLXVXqEgrZNApc8AKWGjhjS9/MQARe/0Yd+KGvsn5+E7E= Received: from VI1PR05MB1678.eurprd05.prod.outlook.com (10.165.235.152) by VI1PR05MB3229.eurprd05.prod.outlook.com (10.170.238.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.841.18; Sun, 10 Jun 2018 11:01:00 +0000 Received: from VI1PR05MB1678.eurprd05.prod.outlook.com ([fe80::e06e:5570:1949:413d]) by VI1PR05MB1678.eurprd05.prod.outlook.com ([fe80::e06e:5570:1949:413d%6]) with mapi id 15.20.0841.019; Sun, 10 Jun 2018 11:00:59 +0000 From: "Xueming(Steven) Li" To: Adrien Mazarguil , Shahaf Shuler CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH 2/7] net/mlx5: remove redundant objects in probe code Thread-Index: AQHT9EZ0JDAYDqMlKEeMLjCpF9+WVKRZPWRQ Date: Sun, 10 Jun 2018 11:00:59 +0000 Message-ID: References: <20180525161814.13873-1-adrien.mazarguil@6wind.com> <20180525161814.13873-3-adrien.mazarguil@6wind.com> In-Reply-To: <20180525161814.13873-3-adrien.mazarguil@6wind.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=xuemingl@mellanox.com; x-originating-ip: [180.174.142.249] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR05MB3229; 7:Cs5UIsUuI/HINErP75kBqwPyaVpj73xssuMNYrM7V67JQeQ18972TOJd8MB+9lrezjK2TmS/+9Qsof6n36Qfa6FcMwvjnbzuBwsblaxE5KyJngNcmlSD05V14eWHhKKT/mc0Ws0n6yccD9EBFZnB9dkvFkaVQuU85BBpSQm2fguJR5bKieKOoQRiRRmnih5549UNZ/CJcSrYAYDt5sLkeVH/fusbPTJzDDvjN1HZnww9ON5aInQokrrRSKiVOd6t x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:VI1PR05MB3229; x-ms-traffictypediagnostic: VI1PR05MB3229: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:VI1PR05MB3229; BCL:0; PCL:0; RULEID:; SRVR:VI1PR05MB3229; x-forefront-prvs: 0699FCD394 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(376002)(39380400002)(346002)(396003)(366004)(189003)(199004)(13464003)(6436002)(33656002)(3280700002)(5890100001)(5250100002)(4326008)(105586002)(55016002)(305945005)(316002)(6636002)(7736002)(110136005)(74316002)(66066001)(106356001)(25786009)(8936002)(2906002)(229853002)(81166006)(81156014)(2900100001)(53546011)(6506007)(76176011)(68736007)(7696005)(59450400001)(97736004)(6116002)(3846002)(186003)(102836004)(26005)(53936002)(486006)(3660700001)(99286004)(5660300001)(14454004)(9686003)(86362001)(446003)(476003)(11346002)(6246003)(478600001)(309714004); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR05MB3229; H:VI1PR05MB1678.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: M6Fwarxi9YVvBgJ0NXUZJuuH/YKtI+Mf9hXAUNwKU/HzRhooHwO/nvpMWqEhR8hR9phrS0FHQtDDIX56eCvrH+uh+nfDISNvMM4yayWp9F5d4Xi/YEOvLScZbM4T8RlzKfrSevTJRZopm8pY/FAqTeyc/JAgREhPHaYF49nlzE4v+WL79viGnOnZ7NmFHXBa spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: f04d8611-7d86-4ec7-3652-08d5cec1732a X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: f04d8611-7d86-4ec7-3652-08d5cec1732a X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Jun 2018 11:00:59.8078 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB3229 Subject: Re: [dpdk-dev] [PATCH 2/7] net/mlx5: remove redundant objects in probe code 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: , X-List-Received-Date: Sun, 10 Jun 2018 11:01:01 -0000 QWNrLiBUcml2aWFsIGlzc3VlIHJlbGF0ZWQgdG8gb3RoZXIgcGF0Y2ggZm91bmQgLCBub3Qgc3Vy ZSB3aGV0aGVyIGl0IGdvb2QgdG8gZml4IGl0IGhlcmUuDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNz YWdlLS0tLS0NCj4gRnJvbTogZGV2IDxkZXYtYm91bmNlc0BkcGRrLm9yZz4gT24gQmVoYWxmIE9m IEFkcmllbiBNYXphcmd1aWwNCj4gU2VudDogU2F0dXJkYXksIE1heSAyNiwgMjAxOCAxMjozNSBB TQ0KPiBUbzogU2hhaGFmIFNodWxlciA8c2hhaGFmc0BtZWxsYW5veC5jb20+DQo+IENjOiBkZXZA ZHBkay5vcmcNCj4gU3ViamVjdDogW2RwZGstZGV2XSBbUEFUQ0ggMi83XSBuZXQvbWx4NTogcmVt b3ZlIHJlZHVuZGFudCBvYmplY3RzIGluIHByb2JlIGNvZGUNCj4gDQo+IFRoaXMgcGF0Y2ggZ2V0 cyByaWQgb2YgcmVkdW5kYW50IGNhbGxzIHRvIG9wZW4gdGhlIGRldmljZSBhbmQgcXVlcnkgaXRz IGF0dHJpYnV0ZXMgaW4gb3JkZXIgdG8NCj4gc2ltcGxpZnkgdGhlIGNvZGUuDQo+IA0KPiBTaWdu ZWQtb2ZmLWJ5OiBBZHJpZW4gTWF6YXJndWlsIDxhZHJpZW4ubWF6YXJndWlsQDZ3aW5kLmNvbT4N Cj4gLS0tDQo+ICBkcml2ZXJzL25ldC9tbHg1L21seDUuYyB8IDYwICsrKysrKysrKysrKysrKysr KysrKy0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tDQo+ICAxIGZpbGUgY2hhbmdlZCwgMjggaW5zZXJ0 aW9ucygrKSwgMzIgZGVsZXRpb25zKC0pDQo+IA0KPiBkaWZmIC0tZ2l0IGEv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