select_sbcm_params(9)
π select_sbcm_params β Kernel API Manual π
okay so bestie, welcome to the Kernel API Manual entry for select_sbcm_params(9) β the little function that decides which shared buffer pool config you're getting. it's giving matchmaker energy, honestly π¦
β¨ NAME β¨
select_sbcm_params β literally the function that selects the shared buffer pool configuration. that's the whole job. she picks. π
πΈ SYNOPSIS πΈ
const struct mlx5_sbcm_params * select_sbcm_params (struct
mlx5e_bufferx_reg *buffer , u8 lossless_buff_count );
like, she takes two things and gives you back a const struct mlx5_sbcm_params *. no cap. β¨
π ARGUMENTS π
bufferβ <input> the port buffer you want to retrieve params of. it's the thing she's looking at, okay? π«Άlossless_buff_countβ <input> the number of lossless buffers in total. yes, all of them, counted together. π’
π¦ DESCRIPTION π¦
so the selection is based on the following rules, and honestly the way they're laid out just makes sense:
- If buffer size is
0, no shared buffer pool is used. that's it. nothing. empty. ghosted. π - If buffer is lossy, use the lossy shared buffer pool. periodt.
- If there are more than
1lossless buffers, use the lossless shared buffer pool with threshold. we love a threshold. π - If there is only
1lossless buffer, use the lossless shared buffer pool without threshold. no threshold needed, she's simple like that. πΈ
return const struct mlx5_sbcm_params* selected values β that's the return, bestie. the selected values come back to you as this pointer. π
β SEE ALSO β
- Kernel file
./drivers/net/ethernet/mellanox/mlx5/core/en/port_buffer.cβ go read her, she's iconic π₯ update_buffer_lossy(9)β the girlies that go together π«Ά
and that's the page, fr fr π compiled from ./drivers/net/ethernet/mellano..., dated October 2026 β like the whole vibe was stamped and sealed with a little select_sbcm_params(9) bow on top. mwah. ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms