<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/include/linux/ethtool.h, branch linux-2.6.35.y</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=linux-2.6.35.y</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=linux-2.6.35.y'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2010-06-29T08:00:29+00:00</updated>
<entry>
<title>ethtool: Fix potential user buffer overflow for ETHTOOL_{G, S}RXFH</title>
<updated>2010-06-29T08:00:29+00:00</updated>
<author>
<name>Ben Hutchings</name>
<email>bhutchings@solarflare.com</email>
</author>
<published>2010-06-28T08:45:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=bf988435bd5b53529f4408a8efb1f433f6ddfda9'/>
<id>urn:sha1:bf988435bd5b53529f4408a8efb1f433f6ddfda9</id>
<content type='text'>
struct ethtool_rxnfc was originally defined in 2.6.27 for the
ETHTOOL_{G,S}RXFH command with only the cmd, flow_type and data
fields.  It was then extended in 2.6.30 to support various additional
commands.  These commands should have been defined to use a new
structure, but it is too late to change that now.

Since user-space may still be using the old structure definition
for the ETHTOOL_{G,S}RXFH commands, and since they do not need the
additional fields, only copy the originally defined fields to and
from user-space.

Signed-off-by: Ben Hutchings &lt;bhutchings@solarflare.com&gt;
Cc: stable@kernel.org
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: fix ethtool coding style errors and warnings</title>
<updated>2010-04-08T04:54:42+00:00</updated>
<author>
<name>chavey</name>
<email>chavey@google.com</email>
</author>
<published>2010-04-08T04:54:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=97f8aefbbfb5aa5c9944e5fa8149f1fdaf71c7b6'/>
<id>urn:sha1:97f8aefbbfb5aa5c9944e5fa8149f1fdaf71c7b6</id>
<content type='text'>
Fix coding style errors and warnings output while running checkpatch.pl
on the files net/core/ethtool.c and include/linux/ethtool.h

Signed-off-by: chavey &lt;chavey@google.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>netdev: ethtool RXHASH flag</title>
<updated>2010-03-31T06:51:08+00:00</updated>
<author>
<name>stephen hemminger</name>
<email>shemminger@vyatta.com</email>
</author>
<published>2010-03-29T14:47:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=b00fabb4020d17bda4bea59507e09fadf573088d'/>
<id>urn:sha1:b00fabb4020d17bda4bea59507e09fadf573088d</id>
<content type='text'>
This adds ethtool and device feature flag to allow control
of receive hashing offload.

Signed-off-by: Stephen Hemminger &lt;shemminger@vyatta.com&gt;
Acked-by: Jeff Garzik &lt;jgarzik@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>ethtool: Add direct access to ops-&gt;get_sset_count</title>
<updated>2010-03-05T22:00:17+00:00</updated>
<author>
<name>Jeff Garzik</name>
<email>jeff@garzik.org</email>
</author>
<published>2010-03-04T08:21:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=d17792ebdf90289c9fd1bce888076d3d60ecd53b'/>
<id>urn:sha1:d17792ebdf90289c9fd1bce888076d3d60ecd53b</id>
<content type='text'>
On 03/04/2010 09:26 AM, Ben Hutchings wrote:
&gt; On Thu, 2010-03-04 at 00:51 -0800, Jeff Kirsher wrote:
&gt;&gt; From: Jeff Garzik&lt;jgarzik@redhat.com&gt;
&gt;&gt;
&gt;&gt; This patch is an alternative approach for accessing string
&gt;&gt; counts, vs. the drvinfo indirect approach.  This way the drvinfo
&gt;&gt; space doesn't run out, and we don't break ABI later.
&gt; [...]
&gt;&gt; --- a/net/core/ethtool.c
&gt;&gt; +++ b/net/core/ethtool.c
&gt;&gt; @@ -214,6 +214,10 @@ static noinline int ethtool_get_drvinfo(struct net_device *dev, void __user *use
&gt;&gt;   	info.cmd = ETHTOOL_GDRVINFO;
&gt;&gt;   	ops-&gt;get_drvinfo(dev,&amp;info);
&gt;&gt;
&gt;&gt; +	/*
&gt;&gt; +	 * this method of obtaining string set info is deprecated;
&gt;&gt; +	 * consider using ETHTOOL_GSSET_INFO instead
&gt;&gt; +	 */
&gt;
&gt; This comment belongs on the interface (ethtool.h) not the
&gt; implementation.

Debatable -- the current comment is located at the callsite of
ops-&gt;get_sset_count(), which is where an implementor might think to add
a new call.  Not all the numeric fields in ethtool_drvinfo are obtained
from -&gt;get_sset_count().

Hence the "some" in the attached patch to include/linux/ethtool.h,
addressing your comment.

&gt; [...]
&gt;&gt; +static noinline int ethtool_get_sset_info(struct net_device *dev,
&gt;&gt; +                                          void __user *useraddr)
&gt;&gt; +{
&gt; [...]
&gt;&gt; +	/* calculate size of return buffer */
&gt;&gt; +	for (i = 0; i&lt;  64; i++)
&gt;&gt; +		if (sset_mask&amp;  (1ULL&lt;&lt;  i))
&gt;&gt; +			n_bits++;
&gt; [...]
&gt;
&gt; We have a function for this:
&gt;
&gt; 	n_bits = hweight64(sset_mask);

Agreed.

I've attached a follow-up patch, which should enable my/Jeff's kernel
patch to be applied, followed by this one.

Signed-off-by: Jeff Garzik &lt;jgarzik@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>ethtool: Add direct access to ops-&gt;get_sset_count</title>
<updated>2010-03-05T22:00:17+00:00</updated>
<author>
<name>Jeff Garzik</name>
<email>jgarzik@redhat.com</email>
</author>
<published>2010-03-03T22:51:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=723b2f57ad83ee7087acf9a95e8e289414b1f521'/>
<id>urn:sha1:723b2f57ad83ee7087acf9a95e8e289414b1f521</id>
<content type='text'>
This patch is an alternative approach for accessing string
counts, vs. the drvinfo indirect approach.  This way the drvinfo
space doesn't run out, and we don't break ABI later.

Signed-off-by: Jeff Garzik &lt;jgarzik@redhat.com&gt;
Signed-off-by: Peter P Waskiewicz Jr &lt;peter.p.waskiewicz.jr@intel.com&gt;
Signed-off-by: Jeff Kirsher &lt;jeffrey.t.kirsher@intel.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>Revert "ethtool: Add n-tuple string length to drvinfo and return it"</title>
<updated>2010-02-26T13:12:02+00:00</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2010-02-26T13:12:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=738b0343e73604750feb107e063c28b3ca36cb84'/>
<id>urn:sha1:738b0343e73604750feb107e063c28b3ca36cb84</id>
<content type='text'>
This reverts commit c79c5ffdce14abb4de3878c5aa8c3c6e5093c69b.

As Jeff points out we can't break the user visible interface
like this, we need to add this into the reserved[] thing.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>ethtool: Add n-tuple string length to drvinfo and return it</title>
<updated>2010-02-26T12:18:43+00:00</updated>
<author>
<name>Peter Waskiewicz</name>
<email>peter.p.waskiewicz.jr@intel.com</email>
</author>
<published>2010-02-26T01:54:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=c79c5ffdce14abb4de3878c5aa8c3c6e5093c69b'/>
<id>urn:sha1:c79c5ffdce14abb4de3878c5aa8c3c6e5093c69b</id>
<content type='text'>
The drvinfo struct should include the number of strings that
get_rx_ntuple will return.  It will be variable if an underlying
driver implements its own get_rx_ntuple routine, so userspace
needs to know how much data is coming.

Signed-off-by: Peter P Waskiewicz Jr &lt;peter.p.waskiewicz.jr@intel.com&gt;
Signed-off-by: Jeff Kirsher &lt;jeffrey.t.kirsher@intel.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>ethtool: Fix includes build break</title>
<updated>2010-02-15T06:38:54+00:00</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2010-02-15T06:38:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=a1467085dcad8214bbb1d7edafbaa295cbd8c0e7'/>
<id>urn:sha1:a1467085dcad8214bbb1d7edafbaa295cbd8c0e7</id>
<content type='text'>
Based upon a patch by Oliver Hartkopp &lt;oliver@hartkopp.net&gt;.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>ethtool: Introduce n-tuple filter programming support</title>
<updated>2010-02-11T04:03:05+00:00</updated>
<author>
<name>Peter P Waskiewicz Jr</name>
<email>peter.p.waskiewicz.jr@intel.com</email>
</author>
<published>2010-02-11T04:03:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=15682bc488d4af8c9bb998844a94281025e0a333'/>
<id>urn:sha1:15682bc488d4af8c9bb998844a94281025e0a333</id>
<content type='text'>
This patchset enables the ethtool layer to program n-tuple
filters to an underlying device.  The idea is to allow capable
hardware to have static rules applied that can assist steering
flows into appropriate queues.

Hardware that is known to support these types of filters today
are ixgbe and niu.

Signed-off-by: Peter P Waskiewicz Jr &lt;peter.p.waskiewicz.jr@intel.com&gt;
Signed-off-by: Jeff Kirsher &lt;jeffrey.t.kirsher@intel.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>tg3: Add some VPD preprocessor constants</title>
<updated>2009-12-03T21:18:04+00:00</updated>
<author>
<name>Matt Carlson</name>
<email>mcarlson@broadcom.com</email>
</author>
<published>2009-12-03T08:36:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=141518c95870228da4e050fbe31a8f0c9df82c72'/>
<id>urn:sha1:141518c95870228da4e050fbe31a8f0c9df82c72</id>
<content type='text'>
This patch cleans up the VPD code by creating preprocessor definitions
and using them in the place of hardcoded constants.

Signed-off-by: Matt Carlson &lt;mcarlson@broadcom.com&gt;
Reviewed-by: Michael Chan &lt;mchan@broadcom.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
