[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <feb923c2-123c-22d0-038a-23fd1e8c4411@mellanox.com>
Date: Tue, 24 Mar 2020 17:38:11 +0200
From: Aya Levin <ayal@...lanox.com>
To: Michal Kubecek <mkubecek@...e.cz>,
Tariq Toukan <tariqt@...lanox.com>
Cc: "John W . Linville" <linville@...driver.com>,
netdev@...r.kernel.org, Eran Ben Elisha <eranbe@...lanox.com>
Subject: Re: [PATCH V2 ethtool] ethtool: Add support for Low Latency Reed
Solomon
On 3/24/2020 4:54 PM, Michal Kubecek wrote:
> On Tue, Mar 24, 2020 at 04:01:41PM +0200, Tariq Toukan wrote:
>> From: Aya Levin <ayal@...lanox.com>
>>
>> Introduce a new FEC mode LL-RS: Low Latency Reed Solomon, update print
>> and initialization functions accordingly. In addition, update related
>> man page.
>>
>> Signed-off-by: Aya Levin <ayal@...lanox.com>
>> Reviewed-by: Eran Ben Elisha <eranbe@...lanox.com>
>> Signed-off-by: Tariq Toukan <tariqt@...lanox.com>
>> ---
> [...]
>> @@ -754,6 +755,12 @@ static void dump_link_caps(const char *prefix, const char *an_prefix,
>> fprintf(stdout, " RS");
>> fecreported = 1;
>> }
>> + if (ethtool_link_mode_test_bit(ETHTOOL_LINK_MODE_FEC_LLRS_BIT,
>> + mask)) {
>> + fprintf(stdout, " LL-RS");
>> + fecreported = 1;
>> + }
>> +
>> if (!fecreported)
>> fprintf(stdout, " Not reported");
>> fprintf(stdout, "\n");
>
> Kernel uses "LLRS" for this bit since commit f623e5970501 ("ethtool: Add
> support for low latency RS FEC") so if you use "LL-RS" here, the output
> will differ between ioctl and netlink code paths.
>
> It's not necessary to use the same name also for --show-fec/--set-fec
> (string set and netlink support for these is still work in progress) but
> it would IMHO be better to be consistent.
Thanks for this comment, will re-spin shortly and lose the hyphen altogether
>
> Michal Kubecek
>
Powered by blists - more mailing lists