Re: [PATCH net-next v2 5/8] net: ip_gre: Add netns_atomic module parameter

From
Jakub Kicinski <kuba@kernel.org>
Date
2024-11-10 00:59:09
Also in
linux-kselftest
Reply to
Xiao Liang, 2024-11-08
On Fri, 8 Nov 2024 14:44:37 +0800 Xiao Liang wrote:
quoted
On Fri, 8 Nov 2024 00:53:55 +0800 Xiao Liang wrote:  
quoted
IMO, this is about driver capability, not about user requests.  
The bit is a driver capability, that's fine. But the question was how
to achieve backward compatibility. A flag in user request shifts the
responsibility of ensuring all services are compatible to whoever
spawns the interfaces. Which will probably be some network management
daemon.  
OK. So I think we can change the driver capability indicator in rtnl_ops
to a tristate field, say, "linkns_support".
If it is
  - not supported, then keep the old behavior
  - supported (vlan, macvlan, etc.), then change to the new behavior
  - compat-mode (ip_tunnel), default to old behavior and can be changed
    via an IFLA flag.
Is this reasonable?
Let's start with annotating the drivers which need the old behavior.
It seems like something that was done as a workaround for old drivers,
maybe there isn't that many of them and we can convert them all in one
series.
Thread (26 messages) 26 messages, 4 authors, last reply 2024-11-12
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help