From: Ben Hutchings <ben@decadent.org.uk>
To: Amir Vadai <amirv@mellanox.com>
Cc: netdev@vger.kernel.org, Or Gerlitz <ogerlitz@mellanox.com>,
Yevgeny Petrilin <yevgenyp@mellanox.com>,
Saeed Mahameed <saeedm@mellanox.com>,
Eyal Perry <eyalpe@mellanox.com>,
Eyal Grossman <eyalgr@mellanox.com>
Subject: Re: [PATCH ethtool 2/5] ethtool: Add missing Advertised speeds
Date: Sun, 05 Apr 2015 02:37:44 +0100 [thread overview]
Message-ID: <1428197864.11260.121.camel@decadent.org.uk> (raw)
In-Reply-To: <1422193883-30504-3-git-send-email-amirv@mellanox.com>
[-- Attachment #1: Type: text/plain, Size: 2512 bytes --]
On Sun, 2015-01-25 at 15:51 +0200, Amir Vadai wrote:
> From: Eyal Grossman <eyalgr@mellanox.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@mellanox.com>
> Signed-off-by: Amir Vadai <amirv@mellanox.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.
Ben.
> { 0, ADVERTISED_20000baseMLD2_Full, "20000baseMLD2/Full" },
> { 0, ADVERTISED_20000baseKR2_Full, "20000baseKR2/Full" },
> { 0, ADVERTISED_40000baseKR4_Full, "40000baseKR4/Full" },
> { 0, ADVERTISED_40000baseCR4_Full, "40000baseCR4/Full" },
> { 0, ADVERTISED_40000baseSR4_Full, "40000baseSR4/Full" },
> { 0, ADVERTISED_40000baseLR4_Full, "40000baseLR4/Full" },
> + { 0, ADVERTISED_56000baseKR4_Full, "56000baseKR4/Full" },
> + { 0, ADVERTISED_56000baseCR4_Full, "56000baseCR4/Full" },
> + { 0, ADVERTISED_56000baseSR4_Full, "56000baseSR4/Full" },
> + { 0, ADVERTISED_56000baseLR4_Full, "56000baseLR4/Full" },
> };
> int indent;
> int did1, new_line_pend, i;
--
Ben Hutchings
Quantity is no substitute for quality, but it's the only one we've got.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 811 bytes --]
next prev parent reply other threads:[~2015-04-05 1:37 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-25 13:51 [PATCH ethtool 0/5] RSS improvements + new speeds Amir Vadai
2015-01-25 13:51 ` [PATCH ethtool 1/5] ethtool-copy.h: sync with net Amir Vadai
2015-04-05 1:00 ` Ben Hutchings
2015-04-08 18:40 ` Amir Vadai
2015-04-14 14:34 ` Amir Vadai
2015-04-14 14:58 ` Ben Hutchings
2015-01-25 13:51 ` [PATCH ethtool 2/5] ethtool: Add missing Advertised speeds Amir Vadai
2015-04-05 1:37 ` Ben Hutchings [this message]
2015-04-05 2:13 ` Ben Hutchings
2015-04-05 2:29 ` Ben Hutchings
2015-01-25 13:51 ` [PATCH ethtool 3/5] ethtool: Return bad status when send_ioctl fails Amir Vadai
2015-04-05 1:48 ` Ben Hutchings
2015-01-25 13:51 ` [PATCH ethtool 4/5] ethtool: Prettify RX flow hash indirection table print Amir Vadai
2015-04-05 2:00 ` Ben Hutchings
2015-04-05 2:14 ` [PATCH ethtool] Fix formatting of RX flow hash indirection table when size % 8 != 0 Ben Hutchings
2015-04-19 10:40 ` Amir Vadai
2015-01-25 13:51 ` [PATCH ethtool 5/5] ethtool: Support for configurable RSS hash function Amir Vadai
2015-04-05 2:55 ` Ben Hutchings
2015-04-14 15:37 ` Amir Vadai
2015-03-19 14:17 ` [PATCH ethtool 0/5] RSS improvements + new speeds Or Gerlitz
2015-03-26 9:56 ` Amir Vadai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1428197864.11260.121.camel@decadent.org.uk \
--to=ben@decadent.org.uk \
--cc=amirv@mellanox.com \
--cc=eyalgr@mellanox.com \
--cc=eyalpe@mellanox.com \
--cc=netdev@vger.kernel.org \
--cc=ogerlitz@mellanox.com \
--cc=saeedm@mellanox.com \
--cc=yevgenyp@mellanox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).