All of lore.kernel.org
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon@kernel.org>
To: "Jürgen Groß" <jgross@suse.com>
Cc: "Hsu, Chiahao" <andyhsu@amazon.com>, Andrew Lunn <andrew@lunn.ch>,
	netdev@vger.kernel.org, wei.liu@kernel.org, paul@xen.org,
	davem@davemloft.net, kuba@kernel.org,
	xen-devel@lists.xenproject.org
Subject: Re: [net-next 1/2] xen-netback: add module parameter to disable ctrl-ring
Date: Mon, 22 Mar 2021 08:48:35 +0200	[thread overview]
Message-ID: <YFg9w980NkZzEHmb@unreal> (raw)
In-Reply-To: <c7b2a12d-bf81-3d5f-40ae-f70e6cfa1637@suse.com>

On Mon, Mar 22, 2021 at 06:58:34AM +0100, Jürgen Groß wrote:
> On 22.03.21 06:39, Leon Romanovsky wrote:
> > On Sun, Mar 21, 2021 at 06:54:52PM +0100, Hsu, Chiahao wrote:
> > > 
> > 
> > <...>
> > 
> > > > > Typically there should be one VM running netback on each host,
> > > > > and having control over what interfaces or features it exposes is also
> > > > > important for stability.
> > > > > How about we create a 'feature flags' modparam, each bits is specified for
> > > > > different new features?
> > > > At the end, it will be more granular module parameter that user still
> > > > will need to guess.
> > > I believe users always need to know any parameter or any tool's flag before
> > > they use it.
> > > For example, before user try to set/clear this ctrl_ring_enabled, they
> > > should already have basic knowledge about this feature,
> > > or else they shouldn't use it (the default value is same as before), and
> > > that's also why we use the 'ctrl_ring_enabled' as parameter name.
> > 
> > It solves only forward migration flow. Move from machine A with no
> > option X to machine B with option X. It doesn't work for backward
> > flow. Move from machine B to A back will probably break.
> > 
> > In your flow, you want that users will set all module parameters for
> > every upgrade and keep those parameters differently per-version.
> 
> I think the flag should be a per guest config item. Adding this item to
> the backend Xenstore nodes for netback to consume it should be rather
> easy.
> 
> Yes, this would need a change in Xen tools, too, but it is the most
> flexible way to handle it. And in case of migration the information
> would be just migrated to the new host with the guest's config data.

Yes, it will overcome global nature of module parameters, but how does
it solve backward compatibility concern?

Thanks

> 
> 
> Juergen






  reply	other threads:[~2021-03-22  6:49 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-11 22:59 [net-next 1/2] xen-netback: add module parameter to disable ctrl-ring ChiaHao Hsu
2021-03-12  7:32 ` Paul Durrant
2021-03-12 14:52 ` Andrew Lunn
2021-03-12 15:18   ` Hsu, Chiahao
2021-03-12 20:36     ` Andrew Lunn
2021-03-14 10:04       ` Leon Romanovsky
2021-03-16 15:22         ` Hsu, Chiahao
2021-03-17 17:22           ` Leon Romanovsky
2021-03-21 16:31             ` Hsu, Chiahao
2021-03-21 17:22               ` Leon Romanovsky
2021-03-21 17:54                 ` Hsu, Chiahao
2021-03-21 20:29                   ` Andrew Lunn
2021-03-21 21:00                     ` Hsu, Chiahao
2021-03-22  5:39                   ` Leon Romanovsky
2021-03-22  5:58                     ` Jürgen Groß
2021-03-22  6:48                       ` Leon Romanovsky [this message]
2021-03-22  7:01                         ` Jürgen Groß
2021-03-22  7:13                           ` Leon Romanovsky
2021-03-28 20:46                             ` Hsu, Chiahao
2021-03-29  5:03                               ` Juergen Gross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YFg9w980NkZzEHmb@unreal \
    --to=leon@kernel.org \
    --cc=andrew@lunn.ch \
    --cc=andyhsu@amazon.com \
    --cc=davem@davemloft.net \
    --cc=jgross@suse.com \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=paul@xen.org \
    --cc=wei.liu@kernel.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.