geneve: add ttl inherit support
authorHangbin Liu <liuhangbin@gmail.com>
Wed, 12 Sep 2018 02:04:21 +0000 (10:04 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Sep 2018 03:38:22 +0000 (20:38 -0700)
commit52d0d404d39dd9eac71a181615d6ca15e23d8e38
tree62220ddc43800919ba0a6693633f373312905005
parentd700ec4118f9d5e88db8f678e7342f28c93037b9
geneve: add ttl inherit support

Similar with commit 72f6d71e491e6 ("vxlan: add ttl inherit support"),
currently ttl == 0 means "use whatever default value" on geneve instead
of inherit inner ttl. To respect compatibility with old behavior, let's
add a new IFLA_GENEVE_TTL_INHERIT for geneve ttl inherit support.

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