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 494FDA04F9; Fri, 10 Jan 2020 08:27:41 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F36081E8AD; Fri, 10 Jan 2020 08:27:40 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 921111E8AB for ; Fri, 10 Jan 2020 08:27:39 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Jan 2020 23:27:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,415,1571727600"; d="scan'208";a="223646245" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga006.jf.intel.com with ESMTP; 09 Jan 2020 23:27:38 -0800 Received: from fmsmsx153.amr.corp.intel.com (10.18.125.6) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 9 Jan 2020 23:27:38 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX153.amr.corp.intel.com (10.18.125.6) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 9 Jan 2020 23:27:37 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.30]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.197]) with mapi id 14.03.0439.000; Fri, 10 Jan 2020 15:27:36 +0800 From: "Tu, Lijuan" To: "Ma, LihongX" , "dts@dpdk.org" CC: "Ma, LihongX" Thread-Topic: [dts] [PATCH V1] dep/vxlan: use the latest vxlan version instead old Thread-Index: AQHVx3fDpRzu84AlsUqQxjVWDXM45Kfjf+dg Date: Fri, 10 Jan 2020 07:27:35 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBA54AF@SHSMSX101.ccr.corp.intel.com> References: <1578607678-18918-1-git-send-email-lihongx.ma@intel.com> In-Reply-To: <1578607678-18918-1-git-send-email-lihongx.ma@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] dep/vxlan: use the latest vxlan version instead old X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" applied > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong > Sent: Friday, January 10, 2020 6:08 AM > To: dts@dpdk.org > Cc: Ma, LihongX > Subject: [dts] [PATCH V1] dep/vxlan: use the latest vxlan version instead= old >=20 > Signed-off-by: lihong > --- > dep/vxlan.py | 30 +++++++++++++++++++++--------- > 1 file changed, 21 insertions(+), 9 deletions(-) >=20 > diff --git a/dep/vxlan.py b/dep/vxlan.py index f60f2a1..0683b42 100644 > --- a/dep/vxlan.py > +++ b/dep/vxlan.py > @@ -12,7 +12,6 @@ from scapy.layers.l2 import Ether >=20 > vxlanmagic =3D "0x8" >=20 > -VXLAN_PORT=3D4789 > _GP_FLAGS =3D ["R", "R", "R", "A", "R", "R", "D", "R"] >=20 > class VXLAN(Packet): > @@ -67,13 +66,26 @@ class VXLAN(Packet): > else: > return Packet.guess_payload_class(self, payload) >=20 > -split_layers(UDP, DNS, sport=3D53) > -bind_layers(UDP, VXLAN, dport=3D4789) # RFC standard port > +bind_layers(UDP, VXLAN, dport=3D4789) # RFC standard vxlan port > +bind_layers(UDP, VXLAN, dport=3D4790) # RFC standard vxlan-gpe port > bind_layers(UDP, VXLAN, dport=3D6633) # New IANA assigned port for use > with NSH bind_layers(UDP, VXLAN, dport=3D8472) # Linux implementation > port -bind_layers(VXLAN, Ether, {'flags': 0x8}) -bind_layers(VXLAN, Ether= , > {'flags': 0x88}) -bind_layers(VXLAN, Ether, {'flags': 0xC, 'NextProtocol'= : 0}, > NextProtocol=3D0) -bind_layers(VXLAN, IP, {'flags': 0xC, 'NextProtocol': = 1}, > NextProtocol=3D1) -bind_layers(VXLAN, IPv6, {'flags': 0xC, 'NextProtocol'= : 2}, > NextProtocol=3D2) -bind_layers(VXLAN, Ether, {'flags': 0xC, 'NextProtocol= ': 3}, > NextProtocol=3D3) > +bind_layers(UDP, VXLAN, dport=3D48879) # Cisco ACI bind_layers(UDP, > +VXLAN, sport=3D4789) bind_layers(UDP, VXLAN, sport=3D4790) bind_layers(U= DP, > +VXLAN, sport=3D6633) bind_layers(UDP, VXLAN, sport=3D8472) # By default, > +set both ports to the RFC standard bind_layers(UDP, VXLAN, sport=3D4789, > +dport=3D4789) > + > +# Dissection > +bind_bottom_up(VXLAN, Ether, NextProtocol=3D0) bind_bottom_up(VXLAN, > IP, > +NextProtocol=3D1) bind_bottom_up(VXLAN, IPv6, NextProtocol=3D2) > +bind_bottom_up(VXLAN, Ether, NextProtocol=3D3) bind_bottom_up(VXLAN, > +Ether, NextProtocol=3DNone) # Build bind_top_down(VXLAN, Ether, flags=3D= 12, > +NextProtocol=3D0) bind_top_down(VXLAN, IP, flags=3D12, NextProtocol=3D1) > +bind_top_down(VXLAN, IPv6, flags=3D12, NextProtocol=3D2) > +bind_top_down(VXLAN, Ether, flags=3D12, NextProtocol=3D3) > -- > 2.7.4