select_sbcm_params(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

  1. If buffer size is 0, no shared buffer pool is used. that's it. nothing. empty. ghosted. πŸ’€
  2. If buffer is lossy, use the lossy shared buffer pool. periodt.
  3. If there are more than 1 lossless buffers, use the lossless shared buffer pool with threshold. we love a threshold. πŸ‘‘
  4. If there is only 1 lossless 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