Re: [PATCH net-next v3 4/4] net/mlx5e: Report RS-FEC histogram statistics via ethtool

From
Jakub Kicinski <kuba@kernel.org>
Date
2025-09-18 14:40:46
Also in
intel-wired-lan
Reply to
Vadim Fedorenko, 2025-09-18
On Thu, 18 Sep 2025 15:32:51 +0100 Vadim Fedorenko wrote:
On 18/09/2025 01:48, Jakub Kicinski wrote:
quoted
On Tue, 16 Sep 2025 19:12:57 +0000 Vadim Fedorenko wrote:  
quoted
+	for (int i = 0; i < num_of_bins; i++) {  
brackets unnecessary

in the other patch you picked u8 for i, good to be consistent
(int is better)
  
quoted
+		hist->values[i].bin_value = MLX5_GET64(rs_histogram_cntrs,
+						       rs_histogram_cntrs,
+						       hist[i]);  
could also be written as:

		hist->values[i].bin_value =
			MLX5_GET64(rs_histogram_cntrs, rs_histogram_cntrs, hist[i]);  
this doesn't actually fit into 80 chars (84 chars long)... unless we are
not too strict in the drivers..
Thought it did, ignore the suggestion, then
Thread (25 messages) 25 messages, 5 authors, last reply 2025-09-19
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