net: erspan: introduce erspan v2 for ip_gre
authorWilliam Tu <u9012063@gmail.com>
Thu, 14 Dec 2017 00:38:56 +0000 (16:38 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Dec 2017 17:34:00 +0000 (12:34 -0500)
commitf551c91de262ba36b20c3ac19538afb4f4507441
treeb8f61c416c07b251d64e0780999243482b2b7b99
parent1d7e2ed22f8d9171fa8b629754022f22115b3f03
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>
include/net/erspan.h
include/net/ip_tunnels.h
include/uapi/linux/if_ether.h
include/uapi/linux/if_tunnel.h
net/ipv4/ip_gre.c