diff options
author | William Tu <u9012063@gmail.com> | 2017-12-14 03:38:56 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-15 20:34:00 +0300 |
commit | f551c91de262ba36b20c3ac19538afb4f4507441 (patch) | |
tree | b8f61c416c07b251d64e0780999243482b2b7b99 /include/net/ip_tunnels.h | |
parent | 1d7e2ed22f8d9171fa8b629754022f22115b3f03 (diff) | |
download | linux-f551c91de262ba36b20c3ac19538afb4f4507441.tar.xz |
net: erspan: introduce erspan v2 for ip_gre
The patch adds support for erspan version 2. Not all features are
supported in this patch. The SGT (security group tag), GRA (timestamp
granularity), FT (frame type) are set to fixed value. Only hardware
ID and direction are configurable. Optional subheader is also not
supported.
Signed-off-by: William Tu <u9012063@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ip_tunnels.h')
-rw-r--r-- | include/net/ip_tunnels.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/net/ip_tunnels.h b/include/net/ip_tunnels.h index 24628f6b09bf..1f16773cfd76 100644 --- a/include/net/ip_tunnels.h +++ b/include/net/ip_tunnels.h @@ -116,8 +116,11 @@ struct ip_tunnel { u32 o_seqno; /* The last output seqno */ int tun_hlen; /* Precalculated header length */ - /* This field used only by ERSPAN */ + /* These four fields used only by ERSPAN */ u32 index; /* ERSPAN type II index */ + u8 erspan_ver; /* ERSPAN version */ + u8 dir; /* ERSPAN direction */ + u16 hwid; /* ERSPAN hardware ID */ struct dst_cache dst_cache; |