[PATCH] net/mlx5/hws: fix allocation of STCs

Raslan Darawsheh rasland at nvidia.com
Wed Nov 13 14:37:09 CET 2024


Hi,

From: Itamar Gozlan <igozlan at nvidia.com>
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: dev at dpdk.org; stable at dpdk.org
Subject: [PATCH] net/mlx5/hws: fix allocation of STCs

From: Erez Shitrit <erezsh at nvidia.com>

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: stable at dpdk.org

Signed-off-by: Erez Shitrit <erezsh at nvidia.com>
Signed-off-by: Bing Zhao <bingz at nvidia.com>
Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>


Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh


More information about the stable mailing list