From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 7DBAFF72 for ; Mon, 11 Jan 2016 09:28:25 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP; 11 Jan 2016 00:28:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,551,1444719600"; d="scan'208,217";a="724500197" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga003.jf.intel.com with ESMTP; 11 Jan 2016 00:28:24 -0800 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 11 Jan 2016 00:28:23 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 11 Jan 2016 00:28:23 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.220]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.201]) with mapi id 14.03.0248.002; Mon, 11 Jan 2016 16:28:21 +0800 From: "Lu, Wenzhuo" To: Vincent JARDIN Thread-Topic: [dpdk-dev] [PATCH 1/4] ixgbe: support UDP tunnel add/del Thread-Index: AQHRTD7Bd8nYadIt2UyXfG1/UUQlJJ71aDSAgACRpgA= Date: Mon, 11 Jan 2016 08:28:20 +0000 Message-ID: <6A0DE07E22DDAD4C9103DF62FEBC090902A7D323@SHSMSX103.ccr.corp.intel.com> References: <1452496044-17524-1-git-send-email-wenzhuo.lu@intel.com> <1452496044-17524-2-git-send-email-wenzhuo.lu@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMjg0MDgyNDgtNzUyZi00ZGE3LWJlMzctODJmZWQyMzZiMTZjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjQuMTAuMTkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiTUVadktlT1RPdUxTR0VQa0Y1ZlVjQnBnaEJPb1wveFFLV21cLzYwYWZwakRBPSJ9 x-ctpclassification: CTP_IC x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH 1/4] ixgbe: support UDP tunnel add/del X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jan 2016 08:28:26 -0000 SGkgVmluY2VudCwNCg0KRnJvbTogVmluY2VudCBKQVJESU4gW21haWx0bzp2aW5jZW50LmphcmRp bkA2d2luZC5jb21dDQpTZW50OiBNb25kYXksIEphbnVhcnkgMTEsIDIwMTYgMzo0MSBQTQ0KVG86 IEx1LCBXZW56aHVvIDx3ZW56aHVvLmx1QGludGVsLmNvbT4NCkNjOiBkZXZAZHBkay5vcmcNClN1 YmplY3Q6IFJlOiBbZHBkay1kZXZdIFtQQVRDSCAxLzRdIGl4Z2JlOiBzdXBwb3J0IFVEUCB0dW5u ZWwgYWRkL2RlbA0KDQoNCnNlZSBpbmxpbmUNCg0KTGUgMTEgamFudi4gMjAxNiAwODowOCwgIldl bnpodW8gTHUiIDx3ZW56aHVvLmx1QG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TsNCj4gKw0KPiArICAgICAgIHJldHVybiAw Ow0KPiArfQ0KPiArDQo+ICsvKiBBZGQgVURQIHR1bm5lbGluZyBwb3J0ICovDQo+ICtzdGF0aWMg aW50DQo+ICtpeGdiZV9kZXZfdWRwX3R1bm5lbF9hZGQoc3RydWN0IHJ0ZV9ldGhfZGV2ICpkZXYs DQo+ICsgICAgICAgICAgICAgICAgICAgICAgICBzdHJ1Y3QgcnRlX2V0aF91ZHBfdHVubmVsICp1 ZHBfdHVubmVsKQ0KPiArew0KPiArICAgICAgIGludCByZXQgPSAwOw0KPiArICAgICAgIHN0cnVj dCBpeGdiZV9odyAqaHcgPSBJWEdCRV9ERVZfUFJJVkFURV9UT19IVyhkZXYtPmRhdGEtPmRldl9w cml2YXRlKTsNCj4gKw0KPiArICAgICAgIGlmIChody0+bWFjLnR5cGUgIT0gaXhnYmVfbWFjX1g1 NTAgJiYNCj4gKyAgICAgICAgICAgaHctPm1hYy50eXBlICE9IGl4Z2JlX21hY19YNTUwRU1feCkg ew0KPiArICAgICAgICAgICAgICAgcmV0dXJuIC1FTk9UU1VQOw0KPiArICAgICAgIH0NCj4gKw0K PiArICAgICAgIGlmICh1ZHBfdHVubmVsID09IE5VTEwpDQo+ICsgICAgICAgICAgICAgICByZXR1 cm4gLUVJTlZBTDsNCj4gKw0KPiArICAgICAgIHN3aXRjaCAodWRwX3R1bm5lbC0+cHJvdF90eXBl KSB7DQo+ICsgICAgICAgY2FzZSBSVEVfVFVOTkVMX1RZUEVfVlhMQU46DQo+ICsgICAgICAgICAg ICAgICAvKiBjYW5ub3QgYWRkIGEgcG9ydCwgdXBkYXRlIHRoZSBwb3J0IHZhbHVlICovDQo+ICsg ICAgICAgICAgICAgICByZXQgPSBpeGdiZV91cGRhdGVfdnhsYW5fcG9ydChodywgdWRwX3R1bm5l bC0+dWRwX3BvcnQpOw0KPiArICAgICAgICAgICAgICAgYnJlYWs7DQo+ICsNCj4gKyAgICAgICBj YXNlIFJURV9UVU5ORUxf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ArDQo+ICsgICAgICAgaWYgKGh3LT5t YWMudHlwZSAhPSBpeGdiZV9tYWNfWDU1MCAmJg0KPiArICAgICAgICAgICBody0+bWFjLnR5cGUg IT0gaXhnYmVfbWFjX1g1NTBFTV94KSB7DQo+ICsgICAgICAgICAgICAgICByZXR1cm4gLUVOT1RT VVA7DQo+ICsgICAgICAgfQ0KPiArDQo+ICsgICAgICAgaWYgKHVkcF90dW5uZWwgPT0gTlVMTCkN Cj4gKyAgICAgICAgICAgICAgIHJldHVybiAtRUlOVkFMOw0KPiArDQo+ICsgICAgICAgc3dpdGNo ICh1ZHBfdHVubmVsLT5wcm90X3R5cGUpIHsNCj4gKyAgICAgICBjYXNlIFJURV9UVU5ORUxfVFlQ RV9WWExBTjoNCj4gKyAgICAgICAgICAgICAgIC8qIGNhbm5vdCBkZWwgdGhlIHBvcnQsIHJlc2V0 IGl0IHRvIGRlZmF1bHQgKi8NCj4gKyAgICAgICAgICAgICAgIHJldCA9IGl4Z2JlX3VwZGF0ZV92 eGxhbl9wb3J0KGh3LCBERUZBVUxUX1ZYTEFOX1BPUlQpOw0KPiArICAgICAgICAgICAgICAgYnJl YWs7DQo+ICsgICAgICAgY2FzZSBSVEVfVFVOTkVMX1RZUEVfR0VORVZFOg0KPiArICAgICAgIGNh c2UgUlRFX1RVTk5FTF9UWVBFX1RFUkVETzoNCj4gKyAgICAgICAgICAgICAgIFBNRF9EUlZfTE9H KEVSUiwgIlR1bm5lbCB0eXBlIGlzIG5vdCBzdXBwb3J0ZWQgbm93LiIpOw0KPiArICAgICAgICAg ICAgICAgcmV0ID0gLTE7DQo+ICsgICAgICAgICAgICAgICBicmVhazsNCj4gKyAgICAgICBkZWZh dWx0Og0KPiArICAgICAgICAgICAgICAgUE1EX0RSVl9MT0coRVJSLCAiSW52YWxpZCB0dW5uZWwg dHlwZSIpOw0KPiArICAgICAgICAgICAgICAgcmV0ID0gLTE7DQo+ICsgICAgICAgICAgICAgICBi cmVhazsNCj4gKyAgICAgICB9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