[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <10f16bd0-ab34-eae2-0aa5-6b5fd3020a25@gmail.com>
Date: Tue, 23 Oct 2018 11:54:39 -0600
From: David Ahern <dsahern@...il.com>
To: Hangbin Liu <liuhangbin@...il.com>, netdev@...r.kernel.org
Cc: Stephen Hemminger <stephen@...workplumber.org>,
Phil Sutter <phil@....cc>, Michal Kubecek <mkubecek@...e.cz>
Subject: Re: [PATCHv3 iproute2-next] ip/geneve: fix ttl inherit behavior
On 10/22/18 1:46 AM, Hangbin Liu wrote:
> Currently when we add geneve with "ttl inherit", we only set ttl to 0, which
> is actually use whatever default value instead of inherit the inner protocol's
> ttl value.
>
> To make a difference with ttl inherit and ttl == 0, we add an attribute
> IFLA_GENEVE_TTL_INHERIT in kernel commit 52d0d404d39dd ("geneve: add ttl
> inherit support"). Now let's use "ttl inherit" to inherit the inner
> protocol's ttl, and use "ttl auto" to means "use whatever default value",
> the same behavior with ttl == 0.
>
> v2:
> 1) remove IFLA_GENEVE_TTL_INHERIT defination in if_link.h as it's already
> updated.
> 2) Still use addattr8() so we can enable/disable ttl inherit, as Michal
> suggested.
>
> v3: Update man page
>
> Reported-by: Jianlin Shi <jishi@...hat.com>
> Signed-off-by: Hangbin Liu <liuhangbin@...il.com>
> ---
> ip/iplink_geneve.c | 20 +++++++++++++-------
> man/man8/ip-link.8.in | 4 +++-
> 2 files changed, 16 insertions(+), 8 deletions(-)
>
applied to iproute2-next. Thanks
Powered by blists - more mailing lists