netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* inconsistency of ethtool feature names for get vs. set
@ 2014-01-02  9:47 Or Gerlitz
  2014-01-02 12:40 ` Rami Rosen
  2014-01-02 15:03 ` Ben Hutchings
  0 siblings, 2 replies; 9+ messages in thread
From: Or Gerlitz @ 2014-01-02  9:47 UTC (permalink / raw)
  To: Ben Hutchings; +Cc: netdev

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:

$ 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"

$ 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...

Or.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-05-30  2:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).