From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH v4 1/5] net: Introduce new feature setting ops Date: Mon, 07 Feb 2011 12:55:46 -0800 (PST) Message-ID: <20110207.125546.104068723.davem@davemloft.net> References: <9327efbf43fadeadd7017926962c65c95288d50e.1296741561.git.mirq-linux@rere.qmqm.pl> <1297107597.4077.8.camel@bwh-desktop> <20110207.125120.71110722.davem@davemloft.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset=euc-kr Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: mirq-linux@rere.qmqm.pl, netdev@vger.kernel.org To: bhutchings@solarflare.com Return-path: Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:47863 "EHLO sunset.davemloft.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751798Ab1BGUzL (ORCPT ); Mon, 7 Feb 2011 15:55:11 -0500 In-Reply-To: <20110207.125120.71110722.davem@davemloft.net> Sender: netdev-owner@vger.kernel.org List-ID: =46rom: David Miller Date: Mon, 07 Feb 2011 12:51:20 -0800 (PST) > From: Ben Hutchings > Date: Mon, 07 Feb 2011 19:39:57 +0000 >=20 >> On Thu, 2011-02-03 at 15:21 +0100, Micha=A9=A9 Miros=A9=A9aw wrote: >>> This introduces a new framework to handle device features setting. >>> It consists of: >>> - new fields in struct net_device: >>> + hw_features - features that hw/driver supports toggling >>> + wanted_features - features that user wants enabled, when possibl= e >>> - new netdev_ops: >>> + feat =3D ndo_fix_features(dev, feat) - API checking constraints = for >>> enabling features or their combinations >>> + ndo_set_features(dev) - API updating hardware state to match >>> changed dev->features >>> - new ethtool commands: >>> + ETHTOOL_GFEATURES/ETHTOOL_SFEATURES: get/set dev->wanted_feature= s >>> and trigger device reconfiguration if resulting dev->features >>> changed >>> + ETHTOOL_GSTRINGS(ETH_SS_FEATURES): get feature bits names (meani= ng) >>>=20 >>> Signed-off-by: Micha=A9=A9 Miros=A9=A9aw >> Reviewed-by: Ben Hutchings >=20 > Applied, thanks. I had to make a fix to this patch, there were duplicate EXPORT_SYMBOL() lines in net/core/ethtool.c for ethtool_op_set_tx_csum() after your changes. How did this build successfully for you?