<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/include/linux/ethtool.h, branch v2.6.35-rc3</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<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.toradex.cn/cgit/linux-toradex.git/commit/?id=97f8aefbbfb5aa5c9944e5fa8149f1fdaf71c7b6'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</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.toradex.cn/cgit/linux-toradex.git/commit/?id=b00fabb4020d17bda4bea59507e09fadf573088d'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</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.toradex.cn/cgit/linux-toradex.git/commit/?id=d17792ebdf90289c9fd1bce888076d3d60ecd53b'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</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.toradex.cn/cgit/linux-toradex.git/commit/?id=723b2f57ad83ee7087acf9a95e8e289414b1f521'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</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.toradex.cn/cgit/linux-toradex.git/commit/?id=738b0343e73604750feb107e063c28b3ca36cb84'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</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.toradex.cn/cgit/linux-toradex.git/commit/?id=c79c5ffdce14abb4de3878c5aa8c3c6e5093c69b'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</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.toradex.cn/cgit/linux-toradex.git/commit/?id=a1467085dcad8214bbb1d7edafbaa295cbd8c0e7'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Based upon a patch by Oliver Hartkopp &lt;oliver@hartkopp.net&gt;.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</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.toradex.cn/cgit/linux-toradex.git/commit/?id=15682bc488d4af8c9bb998844a94281025e0a333'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</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.toradex.cn/cgit/linux-toradex.git/commit/?id=141518c95870228da4e050fbe31a8f0c9df82c72'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</content>
</entry>
<entry>
<title>ethtool: Add Direct Attach support to connector port reporting</title>
<updated>2009-11-29T08:34:00+00:00</updated>
<author>
<name>PJ Waskiewicz</name>
<email>peter.p.waskiewicz.jr@intel.com</email>
</author>
<published>2009-11-25T00:11:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=5789d290cda6854b03986031df02b965572279df'/>
<id>5789d290cda6854b03986031df02b965572279df</id>
<content type='text'>
This patch allows a base driver to specify Direct Attach as the
type of port through the ethtool interface.

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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch allows a base driver to specify Direct Attach as the
type of port through the ethtool interface.

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;
</pre>
</div>
</content>
</entry>
</feed>
