From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50044.outbound.protection.outlook.com [40.107.5.44]) by dpdk.org (Postfix) with ESMTP id 7164B1B5DB for ; Sat, 16 Jun 2018 10:59:45 +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=LFSrj71s0h8dGuoqXAUewEuaV86zJZye4GYrrDRWGgI=; b=BbHEbcEgBIR950eAsnu0RNoecP8xdaJL8orr9VwOa/km5vXvVSlLsUX2UJJP7MXfCSQ5GVb4m9suCRllxML5Z8iGsWLFmo/F28UdCZGniA9mS/MPzQsDFuRA/Gdas7KTeElFaMbCggpeitJQMI1sz/HwWxwImVWbfMjnnQnbMv0= Received: from AM5PR0501MB2420.eurprd05.prod.outlook.com (10.169.149.146) by AM5PR0501MB2065.eurprd05.prod.outlook.com (10.167.214.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.16; Sat, 16 Jun 2018 08:59:44 +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:59:44 +0000 From: "Xueming(Steven) Li" To: Adrien Mazarguil , Shahaf Shuler CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2 7/7] net/mlx5: add parameter for port representors Thread-Index: AQHUA7rPrngI+k3vmE21e2YQmY3uVaRimTiQ Date: Sat, 16 Jun 2018 08:59:43 +0000 Message-ID: References: <20180525161814.13873-1-adrien.mazarguil@6wind.com> <20180614083047.10812-1-adrien.mazarguil@6wind.com> <20180614083047.10812-8-adrien.mazarguil@6wind.com> In-Reply-To: <20180614083047.10812-8-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; AM5PR0501MB2065; 7:LYEXToAKXtOlDMR5Ax4lwMOGD/UQ/4rnCj4hPQ6qF8bMXpFNWIbYDGIohtSPyuFd8svo5jONAJXc34VhwCGLcuWMPJcy+I59H3c9vT1sQqRB8pvTDS9yrSF9NNkAyX4zcxtRim7kPhP/pKAW91gDklTrVD6rPqAnixZKD0urg6RS86aOQi6X7AnEGwy6Z/Bhp+jt0JsyPeIe01UpAxW4rLrspqxVl+GZJ753R5GtnG2K1gO7rSia4BGHLDPEnYyi x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 4924e2d9-8cde-45eb-8a4a-08d5d36780e5 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(711020)(2017052603328)(7153060)(7193020); SRVR:AM5PR0501MB2065; x-ms-traffictypediagnostic: AM5PR0501MB2065: 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)(10201501046)(3231254)(944501410)(52105095)(3002001)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:AM5PR0501MB2065; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0501MB2065; x-forefront-prvs: 0705EB1700 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(346002)(39380400002)(39860400002)(366004)(376002)(199004)(13464003)(189003)(76176011)(81166006)(97736004)(478600001)(81156014)(186003)(305945005)(6636002)(110136005)(4326008)(105586002)(3280700002)(66066001)(8936002)(106356001)(6246003)(33656002)(229853002)(74316002)(3660700001)(446003)(14454004)(25786009)(59450400001)(68736007)(86362001)(102836004)(2900100001)(486006)(55016002)(2906002)(9686003)(53546011)(99286004)(7696005)(6506007)(6436002)(5660300001)(3846002)(26005)(575784001)(53936002)(6116002)(476003)(7736002)(316002)(11346002)(5250100002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR0501MB2065; 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: NgDbjamJuzL+OwNvUG9atF8R5TVyQhEZBS7bkooE/yGEqrUzTZ2EdayGNuAV+iKYNEb3a4OuenTadlXotgR09yO/2ghPnnI9C3K9CvrIZofdhhUO7zkHMf1GhHLcIyLe+XzhwqHDBalCkJ5+7KOEAGTkp1hocYAxNz46YR0kJcLTTU2OrNYXkVpNrztyACNu 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: 4924e2d9-8cde-45eb-8a4a-08d5d36780e5 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jun 2018 08:59:43.9631 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0501MB2065 Subject: Re: [dpdk-dev] [PATCH v2 7/7] net/mlx5: add parameter for port representors 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:59:45 -0000 UmV2aWV3ZWQtYnk6IFh1ZW1pbmcgTGkgPHh1ZW1pbmdsQG1lbGxhbm94LmNvbT4NCg0KPiAtLS0t LU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBkZXYgPGRldi1ib3VuY2VzQGRwZGsub3Jn PiBPbiBCZWhhbGYgT2YgQWRyaWVuIE1hemFyZ3VpbA0KPiBTZW50OiBUaHVyc2RheSwgSnVuZSAx NCwgMjAxOCA0OjM1IFBNDQo+IFRvOiBTaGFoYWYgU2h1bGVyIDxzaGFoYWZzQG1lbGxhbm94LmNv bT4NCj4gQ2M6IGRldkBkcGRrLm9yZw0KPiBTdWJqZWN0OiBbZHBkay1kZXZdIFtQQVRDSCB2MiA3 LzddIG5ldC9tbHg1OiBhZGQgcGFyYW1ldGVyIGZvciBwb3J0IHJlcHJlc2VudG9ycw0KPiANCj4g UHJpb3IgdG8gdGhpcyBwYXRjaCwgYWxsIHBvcnQgcmVwcmVzZW50b3JzIGRldGVjdGVkIG9uIGEg Z2l2ZW4gZGV2aWNlIHdlcmUgcHJvYmVkIGFuZCBFdGhlcm5ldCBkZXZpY2VzDQo+IGluc3RhbnRp YXRlZCBmb3IgZWFjaCBvZiB0aGVtLg0KPiANCj4gVGhpcyBwYXRjaCBhZGRzIHN1cHBvcnQgZm9y IHRoZSBzdGFuZGFyZCAicmVwcmVzZW50b3IiIHBhcmFtZXRlciwgd2hpY2ggaW1wbGllcyB0aGF0 IHBvcnQgcmVwcmVzZW50b3JzDQo+IGFyZSBub3QgcHJvYmVkIGJ5IGRlZmF1bHQgYW55bW9yZSwg ZXhjZXB0IGZvciB0aGUgbGlzdCBwcm92aWRlZCB0aHJvdWdoIGRldmljZSBhcmd1bWVudHMuDQo+ IA0KPi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