]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: add ttl inherit support
authorHangbin Liu <liuhangbin@gmail.com>
Tue, 17 Apr 2018 06:11:28 +0000 (14:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Apr 2018 17:53:13 +0000 (13:53 -0400)
commit3d9bdb2c9adca1ae5dae7e5e4ab99efa19380e79
tree4c129627eb0f9d267849bc98fe89862e20da6ce6
parentc583276e463a5982681ccd8063acac95a09724d2
vxlan: add ttl inherit support

Like tos inherit, ttl inherit should also means inherit the inner protocol's
ttl values, which actually not implemented in vxlan yet.

But we could not treat ttl == 0 as "use the inner TTL", because that would be
used also when the "ttl" option is not specified and that would be a behavior
change, and breaking real use cases.

So add a different attribute IFLA_VXLAN_TTL_INHERIT when "ttl inherit" is
specified with ip cmd.

Reported-by: Jianlin Shi <jishi@redhat.com>
Suggested-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c
include/net/ip_tunnels.h
include/net/vxlan.h
include/uapi/linux/if_link.h