From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00073.outbound.protection.outlook.com [40.107.0.73]) by dpdk.org (Postfix) with ESMTP id DEE651B447 for ; Sat, 16 Jun 2018 10:37:15 +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=UKI8CC4gtHbREHXhDzaDaGfdtnCjcpXf0y5B+aWOgFw=; b=D1l19UZUkH77YxUIC/j/U14vy3piOcScOjPmLyid1HyDj4S0VDiZc+lTkKbRBy+DicEEpLUXGDoyMUL7ODDmUFGPyfz3n74gVnbkXiL4a/f8Hwgn3VZOwSKPbGSoJnM3OLO2JkamnsqtewvPhQq09wLgRTPWwruEfNvjNgab05E= Received: from AM5PR0501MB2420.eurprd05.prod.outlook.com (10.169.149.146) by AM5PR0501MB2388.eurprd05.prod.outlook.com (10.169.149.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.19; Sat, 16 Jun 2018 08:37:14 +0000 Received: from AM5PR0501MB2420.eurprd05.prod.outlook.com ([fe80::e852:af25:231c:79c1]) by AM5PR0501MB2420.eurprd05.prod.outlook.com ([fe80::e852:af25:231c:79c1%10]) with mapi id 15.20.0863.016; Sat, 16 Jun 2018 08:37:14 +0000 From: "Xueming(Steven) Li" To: Adrien Mazarguil , Shahaf Shuler CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2 5/7] net/mlx5: add port representor awareness Thread-Index: AQHUA7rAFo6OenlemkCXGRayAmHC56RiknMg Date: Sat, 16 Jun 2018 08:37:14 +0000 Message-ID: References: <20180525161814.13873-1-adrien.mazarguil@6wind.com> <20180614083047.10812-1-adrien.mazarguil@6wind.com> <20180614083047.10812-6-adrien.mazarguil@6wind.com> In-Reply-To: <20180614083047.10812-6-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; AM5PR0501MB2388; 7:MKlXvBDdsMTDmKVv+KF9DU1WAKxa0mtmrR10oj/U6ag6ENjh7nLPKt4CjWAoHuVXYvVGqb5IhqQqTh2FhcQA6+nCxa4qN4FRZgGUEGPhj14x3E8rZ04gjuQ/1TiQGYOMrfbTvb68ntVD7U942JeV77TqV1Z6pHVUaAr4ow+8wFnk+pCqC6PxDDv4RKo6Iozfy7QMqgrmp8W/t+lS/uKK2imxxhGpR1MuGNLmuRq929/47+cuAMbRWTkTAR7FfVfJ x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 7f6f6075-ef5b-4ad0-9c6e-08d5d3645c82 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(711020)(2017052603328)(7153060)(7193020); SRVR:AM5PR0501MB2388; x-ms-traffictypediagnostic: AM5PR0501MB2388: 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)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231254)(944501410)(52105095)(3002001)(6055026)(149027)(150027)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:AM5PR0501MB2388; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0501MB2388; x-forefront-prvs: 0705EB1700 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(39380400002)(346002)(376002)(39860400002)(366004)(199004)(189003)(13464003)(3846002)(99286004)(5660300001)(2900100001)(14454004)(3660700001)(3280700002)(66066001)(110136005)(7736002)(6116002)(316002)(6636002)(86362001)(74316002)(2906002)(305945005)(97736004)(59450400001)(186003)(486006)(476003)(11346002)(81166006)(8936002)(81156014)(8676002)(7696005)(26005)(68736007)(33656002)(446003)(76176011)(102836004)(6506007)(53546011)(4326008)(25786009)(478600001)(55016002)(229853002)(5250100002)(6246003)(53936002)(106356001)(105586002)(6436002)(9686003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR0501MB2388; H:AM5PR0501MB2420.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: Y5nigVoeCP3KcDGozwzPE7bws1pBY19maVkQtcDx8jDcWPo4kaZVYlzrbIaGFv1JyNLgZhSRT3756TiiVLMGq2bwB6YfLLqVtF+rCdDrVB/ZARIrtUdvaGFat941M58t3xi2f7SgppSMKMLBjoWkhvzvNz58C/9FpSdAI28manIq4VKAfeMrI6ZdnV3V2KAJ spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7f6f6075-ef5b-4ad0-9c6e-08d5d3645c82 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jun 2018 08:37:14.4486 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0501MB2388 Subject: Re: [dpdk-dev] [PATCH v2 5/7] net/mlx5: add port representor awareness 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: Sat, 16 Jun 2018 08:37:16 -0000 UmV2aWV3ZWQtYnk6IFh1ZW1pbmcgTGkgPHh1ZW1pbmdsQG1lbGxhbm94LmNvbT4NCg0KT25lIG1p bm9yIGlzc3VlIHdlIHNob3VsZCBiZSBhYmxlIHRvIGlnbm9yZS4NCg0KPiAtLS0tLU9yaWdpbmFs IE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBkZXYgPGRldi1ib3VuY2VzQGRwZGsub3JnPiBPbiBCZWhh bGYgT2YgQWRyaWVuIE1hemFyZ3VpbA0KPiBTZW50OiBUaHVyc2RheSwgSnVuZSAxNCwgMjAxOCA0 OjM1IFBNDQo+IFRvOiBTaGFoYWYgU2h1bGVyIDxzaGFoYWZzQG1lbGxhbm94LmNvbT4NCj4gQ2M6 IGRldkBkcGRrLm9yZw0KPiBTdWJqZWN0OiBbZHBkay1kZXZdIFtQQVRDSCB2MiA1LzddIG5ldC9t bHg1OiBhZGQgcG9ydCByZXByZXNlbnRvciBhd2FyZW5lc3MNCj4gDQo+IFRoZSBjdXJyZW50IFBD SSBwcm9iaW5nIG1ldGhvZCBpcyBub3QgYXdhcmUgb2YgVmVyYnMgcG9ydCByZXByZXNlbnRvcnMs IHdoaWNoIGFwcGVhciBhcyBzdGFuZGFyZCBWZXJicw0KPiBkZXZpY2VzIGJvdW5kIHRvIHRoZSBz YW1lIFBDSSBhZGRyZXNzIGFuZCBjYW5ub3QgYmUgZGlzdGluZ3Vpc2hlZC4NCj4gDQo+IFByb2Js ZW0gaXMgdGhhdCBtb3JlIG9mdGVuIHRoYW4gbm90LCB0aGUgd3JvbmcgVmVyYnMgZGV2aWNlIGlz IHVzZWQsIHJlc3VsdGluZyBpbiB1bmV4cGVjdGVkIHRyYWZmaWMuDQo+IA0KPiBUaGlzIHBhdGNo IGF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