OSDN Git Service

lwtunnel: add options setting and dumping for vxlan
authorXin Long <lucien.xin@gmail.com>
Wed, 6 Nov 2019 09:01:06 +0000 (17:01 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Nov 2019 05:14:21 +0000 (21:14 -0800)
commitedf31cbb1502481da181a09148adb33e12599185
tree0a998c4f56a581dc7809645d63fe41881470e9a0
parent4ece477870774698e6e73d5821a3dd1605ca123b
lwtunnel: add options setting and dumping for vxlan

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_vxlan() for .build_state and
ip_tun_fill_encap_opts_vxlan() for .fill_encap and
if (tun_flags & TUNNEL_VXLAN_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