netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] ethtool: Add 20G bit definitions
@ 2011-05-03  7:30 Yaniv Rosner
  2011-05-08 22:43 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Yaniv Rosner @ 2011-05-03  7:30 UTC (permalink / raw)
  To: davem; +Cc: netdev, eilong, bhutchings

Add 20G supported and advertising bit definitions.
20G will be supported with the 57840 chips.


Signed-off-by: Yaniv Rosner <yanivr@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
------
 include/linux/ethtool.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h
index 9de3127..620a96a 100644
--- a/include/linux/ethtool.h
+++ b/include/linux/ethtool.h
@@ -1024,6 +1024,8 @@ struct ethtool_ops {
 #define SUPPORTED_10000baseKX4_Full	(1 << 18)
 #define SUPPORTED_10000baseKR_Full	(1 << 19)
 #define SUPPORTED_10000baseR_FEC	(1 << 20)
+#define SUPPORTED_20000baseMLD2_Full	(1 << 21)
+#define SUPPORTED_20000baseKR2_Full	(1 << 22)
 
 /* Indicates what features are advertised by the interface. */
 #define ADVERTISED_10baseT_Half		(1 << 0)
@@ -1047,6 +1049,8 @@ struct ethtool_ops {
 #define ADVERTISED_10000baseKX4_Full	(1 << 18)
 #define ADVERTISED_10000baseKR_Full	(1 << 19)
 #define ADVERTISED_10000baseR_FEC	(1 << 20)
+#define ADVERTISED_20000baseMLD2_Full	(1 << 21)
+#define ADVERTISED_20000baseKR2_Full	(1 << 22)
 
 /* The following are all involved in forcing a particular link
  * mode for the device for setting things.  When getting the
-- 
1.7.1







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

* Re: [PATCH net-next] ethtool: Add 20G bit definitions
  2011-05-03  7:30 [PATCH net-next] ethtool: Add 20G bit definitions Yaniv Rosner
@ 2011-05-08 22:43 ` David Miller
  2011-05-09 10:16   ` Yaniv Rosner
  0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2011-05-08 22:43 UTC (permalink / raw)
  To: yanivr; +Cc: netdev, eilong, bhutchings

From: "Yaniv Rosner" <yanivr@broadcom.com>
Date: Tue, 3 May 2011 10:30:08 +0300

> Add 20G supported and advertising bit definitions.
> 20G will be supported with the 57840 chips.
> 
> 
> Signed-off-by: Yaniv Rosner <yanivr@broadcom.com>
> Signed-off-by: Eilon Greenstein <eilong@broadcom.com>

Applied to net-next-2.6, thanks.

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

* Re: [PATCH net-next] ethtool: Add 20G bit definitions
  2011-05-08 22:43 ` David Miller
@ 2011-05-09 10:16   ` Yaniv Rosner
  2011-05-09 12:50     ` Ben Hutchings
  0 siblings, 1 reply; 4+ messages in thread
From: Yaniv Rosner @ 2011-05-09 10:16 UTC (permalink / raw)
  To: David Miller, bhutchings@solarflare.com
  Cc: Yaniv Rosner, netdev@vger.kernel.org, Eilon Greenstein

On Sun, 2011-05-08 at 15:43 -0700, David Miller wrote:
> From: "Yaniv Rosner" <yanivr@broadcom.com>
> Date: Tue, 3 May 2011 10:30:08 +0300
> 
> > Add 20G supported and advertising bit definitions.
> > 20G will be supported with the 57840 chips.
> > 
> > 
> > Signed-off-by: Yaniv Rosner <yanivr@broadcom.com>
> > Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
> 
> Applied to net-next-2.6, thanks.
> 
Ben,
Please note that I haven't added new definition for 20000 link speed because my understanding is that it no longer required.
Let me know if you think it is required, mainly for the speed extension in the ethtool application.

Yaniv



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

* Re: [PATCH net-next] ethtool: Add 20G bit definitions
  2011-05-09 10:16   ` Yaniv Rosner
@ 2011-05-09 12:50     ` Ben Hutchings
  0 siblings, 0 replies; 4+ messages in thread
From: Ben Hutchings @ 2011-05-09 12:50 UTC (permalink / raw)
  To: Yaniv Rosner
  Cc: David Miller, Yaniv Rosner, netdev@vger.kernel.org,
	Eilon Greenstein

On Mon, 2011-05-09 at 13:16 +0300, Yaniv Rosner wrote:
> On Sun, 2011-05-08 at 15:43 -0700, David Miller wrote:
> > From: "Yaniv Rosner" <yanivr@broadcom.com>
> > Date: Tue, 3 May 2011 10:30:08 +0300
> > 
> > > Add 20G supported and advertising bit definitions.
> > > 20G will be supported with the 57840 chips.
> > > 
> > > 
> > > Signed-off-by: Yaniv Rosner <yanivr@broadcom.com>
> > > Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
> > 
> > Applied to net-next-2.6, thanks.
> > 
> Ben,
> Please note that I haven't added new definition for 20000 link speed
> because my understanding is that it no longer required.
> Let me know if you think it is required, mainly for the speed
> extension in the ethtool application.

There is no need (yet) for specific support of the speed.  However you
should provide a patch for ethtool to make it report these flags in the
advertised/lp_advertised/supported masks.

Ben.

-- 
Ben Hutchings, Senior Software 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.


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

end of thread, other threads:[~2011-05-09 12:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-03  7:30 [PATCH net-next] ethtool: Add 20G bit definitions Yaniv Rosner
2011-05-08 22:43 ` David Miller
2011-05-09 10:16   ` Yaniv Rosner
2011-05-09 12:50     ` Ben Hutchings

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