Hi, From: Itamar Gozlan <[email protected]> Sent: Tuesday, October 29, 2024 3:24 PM To: Itamar Gozlan; Erez Shitrit; Bing Zhao; NBU-Contact-Thomas Monjalon (EXTERNAL); Suanming Mou; Dariusz Sosnowski; Slava Ovsiienko; Ori Kam; Matan Azrad; Alex Vesker Cc: [email protected]; [email protected] Subject: [PATCH] net/mlx5/hws: fix allocation of STCs
From: Erez Shitrit <[email protected]> STC is a limited resource of the HW, and might get consumed till no more contexts can be opened. So, let the user to define the size of how many STCs to allocate per context. In case the user has many representors, no need to allocate per each of them the default value of STCs, otherwise after a certain numbers of representors no more STC's will remain in the system. Fixes: b0290e56dd08 ("net/mlx5/hws: add context object") Cc: [email protected] Signed-off-by: Erez Shitrit <[email protected]> Signed-off-by: Bing Zhao <[email protected]> Acked-by: Dariusz Sosnowski <[email protected]> Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh

