netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: jacob.e.keller@intel.com
Cc: netdev@vger.kernel.org, Lendacky@vger.kernel.org,
	Thomas.Lendacky@amd.com, yuvalmin@broadcom.com,
	mchan@broadcom.com, mcarlson@broadcom.com, sgoutham@cavium.com,
	hariprasad@chelsio.com, _govind@gmx.com,
	kalesh.purayil@emulex.com, andrew@lunn.ch,
	shannon.nelson@intel.com, mitch.a.williams@intel.com,
	carolyn.wyborny@intel.com, emil.s.tantilov@intel.com,
	thomas.petazzoni@free-electrons.com, amirv@mellanox.com,
	achiad@mellanox.com, bhutchings@solarflare.com,
	mirq-linux@rere.qmqm.pl, aduyck@mirantis.com
Subject: Re: [PATCH 1/2] ethtool: add dynamic flag to ETHTOOL_{GS}RXFH commands
Date: Thu, 04 Feb 2016 17:53:26 -0500 (EST)	[thread overview]
Message-ID: <20160204.175326.492457129636004051.davem@davemloft.net> (raw)
In-Reply-To: <1454455328-706-2-git-send-email-jacob.e.keller@intel.com>

From: Jacob Keller <jacob.e.keller@intel.com>
Date: Tue,  2 Feb 2016 15:22:06 -0800

> Ethtool supports a few operations for modifying and controlling
> a device's RSS table. Sometimes, changes in other features of the device
> may require (or desire) changes to the RSS table. Currently there is no
> method to indicate to the driver whether the current RSS table settings
> should be maintained or overridden.

Yes, there certainly is a way to indicate this.

If the user asks for the change in the number of queues, and you
cannot retain the user's requested RSS settings, then you must fail
the queue setting change.

And vice versa.

You can't say to the user "I can adhere to your requested configuration
change, but I might undo it for some unspecified reason"

That's unacceptable behavior, and that's exactly what this dynamic
flag means.

If you cannot give the user what he asks for, precisely and reliably,
you fail the operation with an error.

There is no way I am adding code which allows these "maybe" kind of
configuration operations.  Either you can or you can't, and you tell
the user when you can't by erroring out on the operation that
invalidates the requirements.

  reply	other threads:[~2016-02-04 22:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-02 23:22 [PATCH] ethtool: add dynamic flag to {SG}RXFH Jacob Keller
2016-02-02 23:22 ` [PATCH 1/2] ethtool: add dynamic flag to ETHTOOL_{GS}RXFH commands Jacob Keller
2016-02-04 22:53   ` David Miller [this message]
2016-02-04 23:09     ` Keller, Jacob E
2016-02-05  0:30       ` David Miller
2016-02-05 16:42         ` Keller, Jacob E
2016-02-02 23:22 ` [PATCH 2/2] fm10k: support dynamic mode for RSS table control Jacob Keller
2016-02-02 23:22 ` [PATCH] ethtool: add support for dynamic mode in {SG}RXFH commands Jacob Keller

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=20160204.175326.492457129636004051.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=Lendacky@vger.kernel.org \
    --cc=Thomas.Lendacky@amd.com \
    --cc=_govind@gmx.com \
    --cc=achiad@mellanox.com \
    --cc=aduyck@mirantis.com \
    --cc=amirv@mellanox.com \
    --cc=andrew@lunn.ch \
    --cc=bhutchings@solarflare.com \
    --cc=carolyn.wyborny@intel.com \
    --cc=emil.s.tantilov@intel.com \
    --cc=hariprasad@chelsio.com \
    --cc=jacob.e.keller@intel.com \
    --cc=kalesh.purayil@emulex.com \
    --cc=mcarlson@broadcom.com \
    --cc=mchan@broadcom.com \
    --cc=mirq-linux@rere.qmqm.pl \
    --cc=mitch.a.williams@intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=sgoutham@cavium.com \
    --cc=shannon.nelson@intel.com \
    --cc=thomas.petazzoni@free-electrons.com \
    --cc=yuvalmin@broadcom.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).