[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <b868dcf1-7c0d-4511-8016-89302e7cb9c4@openvpn.net>
Date: Mon, 2 Dec 2024 11:40:31 +0100
From: Antonio Quartulli <antonio@...nvpn.net>
To: Sergey Ryazanov <ryazanov.s.a@...il.com>
Cc: Andrew Lunn <andrew@...n.ch>, Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Donald Hunter <donald.hunter@...il.com>, Shuah Khan <shuah@...nel.org>,
sd@...asysnail.net, netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-kselftest@...r.kernel.org
Subject: Re: [PATCH net-next v11 05/23] ovpn: keep carrier always on
On 26/11/2024 09:17, Antonio Quartulli wrote:
[...]
>> It wasn't suggested to destroy the interface in case of interface
>> becoming non-operational. I apologize if something I wrote earlier
>> sounded like that. The interface existence stays unquestionable. It's
>> going to be solid persistent.
>>
>> Back to the proposed rephrasing. If the 'full picture' means forcing
>> the running state indication even when the netdev is not capable to
>> deliver packets, then it looks like an attempt to hide the control
>> knob of the misguiding feature somewhere else.
>>
>> And since the concept of on-purpose false indication is still here,
>> many words regarding the control plane and a full picture do not sound
>> good either.
>
Sergey,
I have played a bit with this and, if I understood your idea correctly,
the following should be an acceptable design for a P2P interface:
* iface created -> netif_carrier_off
* peer added -> netif_carrier_on
* peer deleted -> netif_carrier_off
* iface goes down -> peer deleted -> netif_carrier_off
* iface goes up -> carrier stays down until peer is added
P2MP interface behaviour is not changed: when interface is brought up
carrier goes on and it is never turned off.
How does it sound?
My main concern was about bringing the interface down, but this is
actually not happening. Correct me if I am wrong.
Thanks.
Regards,
--
Antonio Quartulli
OpenVPN Inc.
Powered by blists - more mailing lists