From: Phil Sutter Subject: Re: [PATCH iproute2-next] geneve: fix ttl inherit behavior Date: Thu, 27 Sep 2018 11:08:36 +0200 Message-ID: <20180927090835.GU14666@orbyte.nwl.cc> References: <1538033257-32244-1-git-send-email-liuhangbin@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org, Stephen Hemminger , David Ahern To: Hangbin Liu Return-path: Received: from orbyte.nwl.cc ([151.80.46.58]:50848 "EHLO orbyte.nwl.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727214AbeI0PZv (ORCPT ); Thu, 27 Sep 2018 11:25:51 -0400 Content-Disposition: inline In-Reply-To: <1538033257-32244-1-git-send-email-liuhangbin@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: On Thu, Sep 27, 2018 at 03:27:37PM +0800, Hangbin Liu wrote: > Currently when we add geneve with "ttl inherit", we set ttl to 0, which > is actually use whatever default value instead of inherit the inner > protocol's ttl value. > > To respect compatibility with old behavior and make a difference between > 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. > > Reported-by: Jianlin Shi > Signed-off-by: Hangbin Liu Acked-by: Phil Sutter