test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Tu, Lijuan" <lijuan.tu@intel.com>
To: "Ma, LihongX" <lihongx.ma@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Ma, LihongX" <lihongx.ma@intel.com>
Subject: Re: [dts] [PATCH V1] dep/vxlan: use the latest vxlan version instead old
Date: Fri, 10 Jan 2020 07:27:35 +0000	[thread overview]
Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBA54AF@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <1578607678-18918-1-git-send-email-lihongx.ma@intel.com>

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 <lihongx.ma@intel.com>
> Subject: [dts] [PATCH V1] dep/vxlan: use the latest vxlan version instead old
> 
> Signed-off-by: lihong <lihongx.ma@intel.com>
> ---
>  dep/vxlan.py | 30 +++++++++++++++++++++---------
>  1 file changed, 21 insertions(+), 9 deletions(-)
> 
> 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
> 
>  vxlanmagic = "0x8"
> 
> -VXLAN_PORT=4789
>  _GP_FLAGS = ["R", "R", "R", "A", "R", "R", "D", "R"]
> 
>  class VXLAN(Packet):
> @@ -67,13 +66,26 @@ class VXLAN(Packet):
>          else:
>              return Packet.guess_payload_class(self, payload)
> 
> -split_layers(UDP, DNS, sport=53)
> -bind_layers(UDP, VXLAN, dport=4789)  # RFC standard port
> +bind_layers(UDP, VXLAN, dport=4789)  # RFC standard vxlan port
> +bind_layers(UDP, VXLAN, dport=4790)  # RFC standard vxlan-gpe port
>  bind_layers(UDP, VXLAN, dport=6633)  # New IANA assigned port for use
> with NSH  bind_layers(UDP, VXLAN, dport=8472)  # Linux implementation
> port -bind_layers(VXLAN, Ether, {'flags': 0x8}) -bind_layers(VXLAN, Ether,
> {'flags': 0x88}) -bind_layers(VXLAN, Ether, {'flags': 0xC, 'NextProtocol': 0},
> NextProtocol=0) -bind_layers(VXLAN, IP, {'flags': 0xC, 'NextProtocol': 1},
> NextProtocol=1) -bind_layers(VXLAN, IPv6, {'flags': 0xC, 'NextProtocol': 2},
> NextProtocol=2) -bind_layers(VXLAN, Ether, {'flags': 0xC, 'NextProtocol': 3},
> NextProtocol=3)
> +bind_layers(UDP, VXLAN, dport=48879)  # Cisco ACI bind_layers(UDP,
> +VXLAN, sport=4789) bind_layers(UDP, VXLAN, sport=4790) bind_layers(UDP,
> +VXLAN, sport=6633) bind_layers(UDP, VXLAN, sport=8472) # By default,
> +set both ports to the RFC standard bind_layers(UDP, VXLAN, sport=4789,
> +dport=4789)
> +
> +# Dissection
> +bind_bottom_up(VXLAN, Ether, NextProtocol=0) bind_bottom_up(VXLAN,
> IP,
> +NextProtocol=1) bind_bottom_up(VXLAN, IPv6, NextProtocol=2)
> +bind_bottom_up(VXLAN, Ether, NextProtocol=3) bind_bottom_up(VXLAN,
> +Ether, NextProtocol=None) # Build bind_top_down(VXLAN, Ether, flags=12,
> +NextProtocol=0) bind_top_down(VXLAN, IP, flags=12, NextProtocol=1)
> +bind_top_down(VXLAN, IPv6, flags=12, NextProtocol=2)
> +bind_top_down(VXLAN, Ether, flags=12, NextProtocol=3)
> --
> 2.7.4


      reply	other threads:[~2020-01-10  7:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-09 22:07 lihong
2020-01-10  7:27 ` Tu, Lijuan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8CE3E05A3F976642AAB0F4675D0AD20E0BBA54AF@SHSMSX101.ccr.corp.intel.com \
    --to=lijuan.tu@intel.com \
    --cc=dts@dpdk.org \
    --cc=lihongx.ma@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).