gre: add collect_md mode to ERSPAN tunnel
authorWilliam Tu <u9012063@gmail.com>
Fri, 25 Aug 2017 16:21:28 +0000 (09:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Aug 2017 22:04:52 +0000 (15:04 -0700)
commit1a66a836da630cd70f3639208da549b549ce576b
tree8281c49c316b8dc061c40fca636f73960cb7c0eb
parent862a03c35ed76c50a562f7406ad23315f7862642
gre: add collect_md mode to ERSPAN tunnel

Similar to gre, vxlan, geneve, ipip tunnels, allow ERSPAN tunnels to
operate in 'collect metadata' mode.  bpf_skb_[gs]et_tunnel_key() helpers
can make use of it right away.  OVS can use it as well in the future.

Signed-off-by: William Tu <u9012063@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_tunnels.h
net/ipv4/ip_gre.c