[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAG88wWYtS39eMQq73dK8Ca+OVwvE6Sc1wsjK3UpZf6Mc_UZwAw@mail.gmail.com>
Date: Tue, 23 Aug 2016 11:21:30 -0700
From: David Decotigny <decot@...glers.com>
To: Vidya Sagar Ravipati <vidya@...ulusnetworks.com>
Cc: linville@...driver.com,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"David S. Miller" <davem@...emloft.net>, bkenward@...arflare.com,
daniel@...earbox.net, Gal Pressman <galp@...lanox.com>,
Roopa Prabhu <roopa@...ulusnetworks.com>,
gospo@...ulusnetworks.com, dustin@...ulusnetworks.com,
Ben Hutchings <ben@...adent.org.uk>
Subject: Re: [ethtool PATCH v4 4/4] ethtool: Enhancing link mode bits to
support 25G/50G/100G
On Tue, Aug 23, 2016 at 6:30 AM, Vidya Sagar Ravipati
<vidya@...ulusnetworks.com> wrote:
> From: Vidya Sagar Ravipati <vidya@...ulusnetworks.com>
>
> Enhancing link mode bits to support 25G/50G/100G
> for supported and advertised speed mode bits
>
> Signed-off-by: Vidya Sagar Ravipati <vidya@...ulusnetworks.com>
> Acked-By: David Decotigny <decot@...glers.com>
> ---
> ethtool.c | 30 ++++++++++++++++++++++++++++++
> 1 file changed, 30 insertions(+)
>
> diff --git a/ethtool.c b/ethtool.c
> index 1d6564e..ab58c7f 100644
> --- a/ethtool.c
> +++ b/ethtool.c
> @@ -512,6 +512,16 @@ static void init_global_link_mode_masks(void)
> ETHTOOL_LINK_MODE_56000baseCR4_Full_BIT,
> ETHTOOL_LINK_MODE_56000baseSR4_Full_BIT,
> ETHTOOL_LINK_MODE_56000baseLR4_Full_BIT,
> + ETHTOOL_LINK_MODE_25000baseCR_Full_BIT,
> + ETHTOOL_LINK_MODE_25000baseKR_Full_BIT,
> + ETHTOOL_LINK_MODE_25000baseSR_Full_BIT,
> + ETHTOOL_LINK_MODE_50000baseCR2_Full_BIT,
> + ETHTOOL_LINK_MODE_50000baseKR2_Full_BIT,
> + ETHTOOL_LINK_MODE_100000baseKR4_Full_BIT,
> + ETHTOOL_LINK_MODE_100000baseSR4_Full_BIT,
> + ETHTOOL_LINK_MODE_100000baseCR4_Full_BIT,
> + ETHTOOL_LINK_MODE_100000baseLR4_ER4_Full_BIT,
> + ETHTOOL_LINK_MODE_50000baseSR2_Full_BIT,
> };
> static const enum ethtool_link_mode_bit_indices
> additional_advertised_flags_bits[] = {
> @@ -632,6 +642,26 @@ static void dump_link_caps(const char *prefix, const char *an_prefix,
> "56000baseSR4/Full" },
> { 0, ETHTOOL_LINK_MODE_56000baseLR4_Full_BIT,
> "56000baseLR4/Full" },
> + { 0, ETHTOOL_LINK_MODE_25000baseCR_Full_BIT,
> + "25000baseCR/Full" },
> + { 0, ETHTOOL_LINK_MODE_25000baseKR_Full_BIT,
> + "25000baseKR/Full" },
> + { 0, ETHTOOL_LINK_MODE_25000baseSR_Full_BIT,
> + "25000baseSR/Full" },
> + { 0, ETHTOOL_LINK_MODE_50000baseCR2_Full_BIT,
> + "50000baseCR2/Full" },
> + { 0, ETHTOOL_LINK_MODE_50000baseKR2_Full_BIT,
> + "50000baseKR2/Full" },
> + { 0, ETHTOOL_LINK_MODE_100000baseKR4_Full_BIT,
> + "100000baseKR4/Full" },
> + { 0, ETHTOOL_LINK_MODE_100000baseSR4_Full_BIT,
> + "100000baseSR4/Full" },
> + { 0, ETHTOOL_LINK_MODE_100000baseCR4_Full_BIT,
> + "100000baseCR4/Full" },
> + { 0, ETHTOOL_LINK_MODE_100000baseLR4_ER4_Full_BIT,
> + "100000baseLR4_ER4/Full" },
> + { 0, ETHTOOL_LINK_MODE_50000baseSR2_Full_BIT,
> + "50000baseSR2/Full" },
> };
> int indent;
> int did1, new_line_pend, i;
> --
> 2.1.4
>
Acked-By: David Decotigny <decot@...glers.com>
Powered by blists - more mailing lists