netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon@kernel.org>
To: Michal Kubecek <mkubecek@suse.cz>
Cc: Jakub Kicinski <kuba@kernel.org>,
	Sudheer Mogilappagari <sudheer.mogilappagari@intel.com>,
	netdev@vger.kernel.org, andrew@lunn.ch, corbet@lwn.net,
	sridhar.samudrala@intel.com, anthony.l.nguyen@intel.com
Subject: Re: [PATCH net-next v7] ethtool: add netlink based get rss support
Date: Wed, 7 Dec 2022 10:42:38 +0200	[thread overview]
Message-ID: <Y5BR/n7/rqQ+q8gm@unreal> (raw)
In-Reply-To: <20221206161441.ziprba72sfydmjrk@lion.mk-sys.cz>

On Tue, Dec 06, 2022 at 05:14:41PM +0100, Michal Kubecek wrote:
> On Mon, Dec 05, 2022 at 09:45:07AM +0200, Leon Romanovsky wrote:
> > On Sun, Dec 04, 2022 at 03:38:50PM -0800, Jakub Kicinski wrote:
> > > Conversion to netlink stands on its own.
> > 
> > It doesn't answer on my question. The answer is "we do, just because
> > we can" is nice but doesn't remove my worries that such "future"
> > extension will work with real future feature. From my experience, many
> > UAPI designs without real use case in hand will require adaptions and
> > won't work out-of-box.
> > 
> > IMHO, it is the same sin as premature optimization.
> 
> Extensibility is likely the most obvious benefit of the netlink
> interface but it's not the only one, even without an immediate need to
> add a new feature, there are other benefits, e.g.
> 
>   - avoiding the inherently racy get/modify/set cycle

How? IMHO, it is achieved in netlink by holding relevant locks, it can
be rtnl lock or specific to that netlink interface lock (devl). You cam
and should have same locking protection for legacy flow as well.

>   - more detailed error reporting thanks to extack

This is extremely good argument. 

>   - notifications (ethtool --monitor)
> 
> And I'm pretty sure the list is not complete. Thus I believe converting
> the ioctl UAPI to netlink is useful even without waiting until we need
> to add new features that would require it.

Thanks

> 
> Michal

  reply	other threads:[~2022-12-07  8:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-02  0:25 [PATCH net-next v7] ethtool: add netlink based get rss support Sudheer Mogilappagari
2022-12-04 12:17 ` Leon Romanovsky
2022-12-04 23:38   ` Jakub Kicinski
2022-12-05  7:45     ` Leon Romanovsky
2022-12-06  1:33       ` Jakub Kicinski
2022-12-06 16:14       ` Michal Kubecek
2022-12-07  8:42         ` Leon Romanovsky [this message]
2022-12-07  9:32           ` Michal Kubecek
2022-12-08  8:22             ` Leon Romanovsky
2022-12-06  1:40 ` patchwork-bot+netdevbpf

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=Y5BR/n7/rqQ+q8gm@unreal \
    --to=leon@kernel.org \
    --cc=andrew@lunn.ch \
    --cc=anthony.l.nguyen@intel.com \
    --cc=corbet@lwn.net \
    --cc=kuba@kernel.org \
    --cc=mkubecek@suse.cz \
    --cc=netdev@vger.kernel.org \
    --cc=sridhar.samudrala@intel.com \
    --cc=sudheer.mogilappagari@intel.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).