From mboxrd@z Thu Jan 1 00:00:00 1970 From: Phil Sutter Subject: Re: [PATCH net-next] geneve: fix ttl inherit type Date: Mon, 1 Oct 2018 12:56:04 +0200 Message-ID: <20181001105604.GK14666@orbyte.nwl.cc> References: <1538096998-20937-1-git-send-email-liuhangbin@gmail.com> <20180928234619.GA17323@unicorn.suse.cz> <20180929091605.GH24677@leo.usersys.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Michal Kubecek , netdev@vger.kernel.org, David Miller , Stephen Hemminger , David Ahern To: Hangbin Liu Return-path: Received: from orbyte.nwl.cc ([151.80.46.58]:35842 "EHLO orbyte.nwl.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728921AbeJARdV (ORCPT ); Mon, 1 Oct 2018 13:33:21 -0400 Content-Disposition: inline In-Reply-To: <20180929091605.GH24677@leo.usersys.redhat.com> Sender: netdev-owner@vger.kernel.org List-ID: Hangbin, On Sat, Sep 29, 2018 at 05:16:05PM +0800, Hangbin Liu wrote: [...] > > Is it desirable to switch to a flag? If I read geneve_changelink() and > > geneve_nl2info() correctly, it allows you to set the ttl_inherit flag > > for an existing device but doesn't allow you to clear it. With NLA_U8, > > you could distinguish three cases: set the flag (non-zero value), clear > > the flag (zero value) and preserve current state (attribute not > > present). > > I re-read geneve_changelink() and I agree with you. Since we can change ttl > number, we should also be able to set/unset ttl inherit. > > Phil, what do you think? All fine with me. I'm not familiar with either of VXLAN or Geneve, you're the experts here. I was just the random guy wondering why things are done one way and not the other. :) Thanks for your diligent efforts at clearing up the mysteries! Cheers, Phil