Re: [PATCH net-next v5 3/5] net/mlx5e: Add logic to read RS-FEC histogram bin ranges from PPHCR

From
Jakub Kicinski <kuba@kernel.org>
Date
2025-09-24 00:34:40
Also in
intel-wired-lan
Reply to
Vadim Fedorenko, 2025-09-22
On Mon, 22 Sep 2025 10:07:39 +0000 Vadim Fedorenko wrote:
+#define MLX5E_FEC_RS_HIST_MAX 16
I'm guessing you insist on the checks because 
struct mlx5_ifc_rs_histogram_cntrs_bits hardcodes the size of the hist array as 16.
Please make this define use ARRAY_SIZE() or some such, instead of this
random looking number.
Thread (8 messages) 8 messages, 2 authors, last reply 2025-09-24
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