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 C502DA056F; Tue, 3 Mar 2020 03:01:24 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 975DF1BFF2; Tue, 3 Mar 2020 03:01:24 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 8D52D1BFF0; Tue, 3 Mar 2020 03:01:22 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2020 18:01:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,509,1574150400"; d="scan'208";a="239882249" Received: from irsmsx106.ger.corp.intel.com ([163.33.3.31]) by orsmga003.jf.intel.com with ESMTP; 02 Mar 2020 18:01:20 -0800 Received: from irsmsx606.ger.corp.intel.com (163.33.146.139) by IRSMSX106.ger.corp.intel.com (163.33.3.31) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 3 Mar 2020 02:01:19 +0000 Received: from shsmsx602.ccr.corp.intel.com (10.109.6.142) by IRSMSX606.ger.corp.intel.com (163.33.146.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 3 Mar 2020 02:01:18 +0000 Received: from shsmsx602.ccr.corp.intel.com ([10.109.6.142]) by SHSMSX602.ccr.corp.intel.com ([10.109.6.142]) with mapi id 15.01.1713.004; Tue, 3 Mar 2020 10:01:16 +0800 From: "Zhang, Xiao" To: "Yigit, Ferruh" , "dev@dpdk.org" CC: "Xing, Beilei" , "Zhang, Qi Z" , "stable@dpdk.org" Thread-Topic: [dpdk-dev] net/i40e: add promiscuous configure unsupported check Thread-Index: AQHV7edIhkmV9oC/skK099klVLtFL6g0gn+AgAGcoxA= Date: Tue, 3 Mar 2020 02:01:16 +0000 Message-ID: References: <1582860124-48237-1-git-send-email-xiao.zhang@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] net/i40e: add promiscuous configure unsupported check 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" SGkgRmVycnVoLA0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IFlpZ2l0 LCBGZXJydWgNCj4gU2VudDogTW9uZGF5LCBNYXJjaCAyLCAyMDIwIDU6MDkgUE0NCj4gVG86IFpo YW5nLCBYaWFvIDx4aWFvLnpoYW5nQGludGVsLmNvbT47IGRldkBkcGRrLm9yZw0KPiBDYzogWGlu ZywgQmVpbGVpIDxiZWlsZWkueGluZ0BpbnRlbC5jb20+OyBaaGFuZywgUWkgWiA8cWkuei56aGFu Z0BpbnRlbC5jb20+Ow0KPiBzdGFibGVAZHBkay5vcmcNCj4gU3ViamVjdDogUmU6IFtkcGRrLWRl dl0gbmV0L2k0MGU6IGFkZCBwcm9taXNjdW91cyBjb25maWd1cmUgdW5zdXBwb3J0ZWQgY2hlY2sN Cj4gDQo+IE9uIDIvMjgvMjAyMCAzOjIyIEFNLCBYaWFvIFpoYW5nIHdyb3RlOg0KPiA+IFJldHVy biBFTk9UU1VQIGVycm9yIGNvZGUgd2hlbiBjb25maWd1cmluZyBpNDBldmYgcHJvbWlzY3VvdXMg bW9kZSB0bw0KPiA+IGZpeCBwb3J0IHN0YXJ0IGhhbmcgaXNzdWUg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JldCA9IGV0 aF9lcnIocG9ydF9pZCwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICgqZGV2LT5kZXZf b3BzLT5wcm9taXNjdW91c19lbmFibGUpKGRldikpOw0KICAgICAgICAgICAgICAgIGlmIChyZXQg IT0gMCAmJiByZXQgIT0gLUVOT1RTVVApIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIFJURV9F VEhERVZfTE9HKEVSUiwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkZhaWxlZCB0 byBlbmFibGUgcHJvbWlzY3VvdXMgbW9kZSBmb3IgZGV2aWNlIChwb3J0ICV1KTogJXNcbiIsDQog ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBvcnRfaWQsIHJ0ZV9zdHJlcnJvcigtcmV0 KSk7DQogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gcmV0Ow0KICAgICAgICAgICAgICAg IH0NCiAgICAgICAgfSBlbHNlIGlmIChydGVfZXRoX3Byb21pc2N1b3VzX2dldChwb3J0X2lkKSA9 PSAwICYmDQogICAgICAgICAgICAgICAgICAgKmRldi0+ZGV2X29wcy0+cHJvbWlzY3VvdXNfZGlz YWJsZSAhPSBOVUxMKSB7DQogICAgICAgICAgICAgICAgcmV0ID0gZXRoX2Vycihwb3J0X2lkLA0K ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKCpkZXYtPmRldl9vcHMtPnByb21pc2N1b3Vz X2Rpc2FibGUpKGRldikpOw0KICAgICAgICAgICAgICAgIGlmIChyZXQgIT0gMCAmJiByZXQgIT0g LUVOT1RTVVApIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIFJURV9FVEhERVZfTE9HKEVSUiwN CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkZhaWxlZCB0byBkaXNhYmxlIHByb21p c2N1b3VzIG1vZGUgZm9yIGRldmljZSAocG9ydCAldSk6ICVzXG4iLA0KICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgIC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