Re: [RFC PATCH v4] ethtool: add FEC bins histogramm report

From
Jakub Kicinski <kuba@kernel.org>
Date
2025-08-11 16:21:43
Also in
intel-wired-lan
Reply to
Vadim Fedorenko, 2025-08-11
On Mon, 11 Aug 2025 17:08:34 +0100 Vadim Fedorenko wrote:
On 11/08/2025 16:41, Jakub Kicinski wrote:
quoted
On Sun, 10 Aug 2025 11:52:55 +0100 Vadim Fedorenko wrote:  
quoted
Well, the current implementation is straight forward. Do you propose to
have drivers fill in the amount of lanes they have histogram for, or
should we always put array of ETHTOOL_MAX_LANES values and let
user-space to figure out what to show?  
Similar logic to what you have, you can move the put outside of the
loop, let the loop break or exit, and then @j will tell you how many
entries to fill..  
I see. Fair, I can do it. After this change there will be no need to
change the code in the reply size calculation, right?
I think you need to split in two, one for the normal val and one for
the array.
Thread (6 messages) 6 messages, 3 authors, last reply 2025-08-11
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help