lwtunnel: add options setting and dumping for erspan
authorXin Long <lucien.xin@gmail.com>
Wed, 6 Nov 2019 09:01:07 +0000 (17:01 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Nov 2019 05:14:22 +0000 (21:14 -0800)
commitb0a21810bd5e1f92e3379899cc8ca9fe144ee8b3
tree28279fa15997adf99ac206826fbfb5d8cc88e6cf
parentedf31cbb1502481da181a09148adb33e12599185
lwtunnel: add options setting and dumping for erspan

Based on the code framework built on the last patch, to
support setting and dumping for vxlan, we only need to
add ip_tun_parse_opts_erspan() for .build_state and
ip_tun_fill_encap_opts_erspan() for .fill_encap and
if (tun_flags & TUNNEL_ERSPAN_OPT) for .get_encap_size.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/lwtunnel.h
net/ipv4/ip_tunnel_core.c