netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ben Hutchings <bhutchings@solarflare.com>
To: Or Gerlitz <ogerlitz@mellanox.com>
Cc: netdev <netdev@vger.kernel.org>
Subject: Re: inconsistency of ethtool feature names for get vs. set
Date: Thu, 2 Jan 2014 15:03:54 +0000	[thread overview]
Message-ID: <1388675034.1607.9.camel@bwh-desktop.uk.level5networks.com> (raw)
In-Reply-To: <52C535B9.7080208@mellanox.com>

On Thu, 2014-01-02 at 11:47 +0200, Or Gerlitz wrote:
> Hi Ben,
> 
> I noticed some inconsistency of feature names with the ethtool 
> getting/setting of features mechanics -- the name of the feature you 
> need to set (through -K) isn't what displayed by the get (-k) directive, 
> here's an example:

All the feature names used to be in ethtool and they were not consistent
between -k/-K nor with the names that are now generated by the kernel.

> $ ethtool -k eth1  | grep generic-receive-offload
> generic-receive-offload: on
> 
> $ ethtool -K eth1  generic-receive-offload off
> ethtool: bad command line argument(s)
> For more information run ethtool -h
> 
> --> looking in the sources and realizing I need to use "rx-gro"

Or 'gro'.  All the old feature names that can be used with the -K option
are listed in the manual page.  All the new feature names are consistent
between -k/-K.

> $ ethtool -K eth1  rx-gro on
> 
> $ethtool -k eth1  | grep generic-receive-offload
> generic-receive-offload: on
> 
> same problem for rx checksum which is displayed as "rx-checksumming" by 
> the get (-k)
> but need to be "rx-checksum" for the set (-K) directive.
> 
> Basically, this can be resolved by fairly simple patch, but I wasn't 
> sure if you want it in user space, in the kernel or both...

How do you intend to resolve this, given the compatibility requirement
that the old names must still be reported by -k and accepted by -K?

Ben.

-- 
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.

  parent reply	other threads:[~2014-01-02 15:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-02  9:47 inconsistency of ethtool feature names for get vs. set Or Gerlitz
2014-01-02 12:40 ` Rami Rosen
2014-01-02 15:03 ` Ben Hutchings [this message]
2014-01-02 18:41   ` Ben Hutchings
2014-01-02 20:12     ` Or Gerlitz
2014-01-06 20:39       ` Ben Hutchings
2014-01-07  4:58     ` Bill Fink
2014-05-29 14:40       ` Spike White
2014-05-30  2:39         ` Bill Fink

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=1388675034.1607.9.camel@bwh-desktop.uk.level5networks.com \
    --to=bhutchings@solarflare.com \
    --cc=netdev@vger.kernel.org \
    --cc=ogerlitz@mellanox.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).