On Wed, 13 Dec 2017 16:38:54 -0800
William Tu <u9012...@gmail.com> wrote:

> ERSPAN has two versions, v1 (type II) and v2 (type III).  This patch
> series add support for erspan v2 based on existing erspan v1
> implementation.  The first patch refactors the existing erspan v1's
> header structure, making it extensible to put additional v2's header.
> The second and third patch introduces erspan v2's implementation to
> ipv4 and ipv6 erspan, for both native mode and collect metadata mode.
> Finally, test cases are added under the samples/bpf.
> 
> Note:
> ERSPAN version 2 has many features and this patch does not implement
> all.  One major use case of version 2 over version 1 is its timestamp
> and direction.  So the traffic collector is able to distinguish the
> mirrorred traffic better.  Other features such as SGT (security group
> tag), FT (frame type) for carrying non-ethernet packet, and optional
> subheader are not implemented yet.
> 
> Example commandline for ERSPAN version 2:
> ip link add dev ip6erspan11 type ip6erspan seq key 102 \ 
>       local fc00:100::2 remote fc00:100::1 \        
>       erspan_ver 2 erspan_dir 1 erspan_hwid 17
> 
> The corresponding iproute2 patch:
> https://marc.info/?l=linux-netdev&m=151321141525106&w=2


If this is accepted to net-next you will need to
resubmit the iproute2 patch.

Reply via email to