]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit08c0b234acee062d99d08aa885fdaedc8fec7c01
tree8281c49c316b8dc061c40fca636f73960cb7c0eb
parentc647d5c0381f76542aaea65fbd535ad428f5ecea
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