]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1361eec431ff0c0c592d9f4fae46456749e1c7e8
tree0a998c4f56a581dc7809645d63fe41881470e9a0
parent7b5d58b41f9eb8aea502be14d9d382b20ff7e76f
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