[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1428199999.11260.138.camel@decadent.org.uk>
Date: Sun, 05 Apr 2015 03:13:19 +0100
From: Ben Hutchings <ben@...adent.org.uk>
To: Amir Vadai <amirv@...lanox.com>
Cc: netdev@...r.kernel.org, Or Gerlitz <ogerlitz@...lanox.com>,
Yevgeny Petrilin <yevgenyp@...lanox.com>,
Saeed Mahameed <saeedm@...lanox.com>,
Eyal Perry <eyalpe@...lanox.com>,
Eyal Grossman <eyalgr@...lanox.com>
Subject: Re: [PATCH ethtool 2/5] ethtool: Add missing Advertised speeds
On Sun, 2015-04-05 at 02:37 +0100, Ben Hutchings wrote:
> On Sun, 2015-01-25 at 15:51 +0200, Amir Vadai wrote:
> > From: Eyal Grossman <eyalgr@...lanox.com>
> >
> > Added the following missing advertised speed modes:
> > - ADVERTISED_10000baseT_Full
> > - ADVERTISED_56000baseKR4_Full
> > - ADVERTISED_56000baseCR4_Full
> > - ADVERTISED_56000baseSR4_Full
> > - ADVERTISED_56000baseLR4_Full
> > - ADVERTISED_10000baseKX4_Full
> >
> > In order to reduce code duplication we added a macro to
> > ALL_ADVERTISED_FLAGS in line 88 ALL_ADVERTISED_MODES,
> > in addition the changed we made added speed that were
> > missing from ALL_ADVERTISED_MODES
> > (e.g. ADVERTISED_10000baseKX4_Full).
>
> Well spotted.
>
> > Added ADVERTISED_10000baseR_FEC to mode_defs.
> >
> > Signed-off-by: Eyal Grossman <eyalgr@...lanox.com>
> > Signed-off-by: Amir Vadai <amirv@...lanox.com>
> > ---
> [...]
> > @@ -527,15 +516,20 @@ dump_link_caps(const char *prefix, const char *an_prefix, u32 mask,
> > { 1, ADVERTISED_1000baseT_Full, "1000baseT/Full" },
> > { 0, ADVERTISED_1000baseKX_Full, "1000baseKX/Full" },
> > { 0, ADVERTISED_2500baseX_Full, "2500baseX/Full" },
> > - { 0, ADVERTISED_10000baseT_Full, "10000baseT/Full" },
> > + { 1, ADVERTISED_10000baseT_Full, "10000baseT/Full" },
>
> Why should this be on the same line as 2500baseX/Full?
>
> > { 0, ADVERTISED_10000baseKX4_Full, "10000baseKX4/Full" },
> > { 0, ADVERTISED_10000baseKR_Full, "10000baseKR/Full" },
> > + { 0, ADVERTISED_10000baseR_FEC, "10000baseR/FEC" },
>
> This is not a link mode, it's a separate capability that applies to all
> 10GBASE-R modes. It's also meaningful for 40G and 100G modes despite
> the way we've named the flags. Please put it in a separate section
> below the link modes.
I've applied this without the two bits I commented on.
Ben.
--
Ben Hutchings
Quantity is no substitute for quality, but it's the only one we've got.
Download attachment "signature.asc" of type "application/pgp-signature" (812 bytes)
Powered by blists - more mailing lists