]> git.baikalelectronics.ru Git - kernel.git/commit
lwtunnel: rename ip lwtunnel attributes
authorJiri Benc <jbenc@redhat.com>
Fri, 14 Aug 2015 14:40:40 +0000 (16:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Aug 2015 21:07:15 +0000 (14:07 -0700)
commitc41ec546c6275153d6f16edf871cd29435043f93
tree5dfecd1a62471db38504511b8c9d79c150e8330f
parentabf2c483d300ecad53613746b8ffef91055a61c5
lwtunnel: rename ip lwtunnel attributes

We already have IFLA_IPTUN_ netlink attributes. The IP_TUN_ attributes look
very similar, yet they serve very different purpose. This is confusing for
anyone trying to implement a user space tool supporting lwt.

As the IP_TUN_ attributes are used only for the lightweight tunnels, prefix
them with LWTUNNEL_IP_ instead to make their purpose clear. Also, it's more
logical to have them in lwtunnel.h together with the encap enum.

Fixes: 86b6d2a3e321 ("route: Per route IP tunnel metadata via lightweight tunnel")
Signed-off-by: Jiri Benc <jbenc@redhat.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/lwtunnel.h
include/uapi/linux/rtnetlink.h
net/ipv4/ip_tunnel_core.c