From: Ben Hutchings Subject: Re: inconsistency of ethtool feature names for get vs. set Date: Thu, 2 Jan 2014 18:41:54 +0000 Message-ID: <1388688114.9947.30.camel@bwh-desktop.uk.level5networks.com> References: <52C535B9.7080208@mellanox.com> <1388675034.1607.9.camel@bwh-desktop.uk.level5networks.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: netdev To: Or Gerlitz Return-path: Received: from webmail.solarflare.com ([12.187.104.25]:47729 "EHLO webmail.solarflare.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751136AbaABSl6 (ORCPT ); Thu, 2 Jan 2014 13:41:58 -0500 In-Reply-To: <1388675034.1607.9.camel@bwh-desktop.uk.level5networks.com> Sender: netdev-owner@vger.kernel.org List-ID: On Thu, 2014-01-02 at 15:03 +0000, Ben Hutchings wrote: > On Thu, 2014-01-02 at 11:47 +0200, Or Gerlitz wrote: [...] > > $ 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. By 'new feature names' I mean names for features that weren't previously exposed through ethtool. [...] > > 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? Just to be clear, I do see that there's a problem here but the fix may have to be mostly or entirely in documentation rather than code. 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.