aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorChiara Meiohas <[email protected]>2025-02-26 13:01:06 +0000
committerLeon Romanovsky <[email protected]>2025-03-08 18:22:36 +0000
commit0a34fad1bed45ff2245ab8c315bc3d4c6471af46 (patch)
treea662d163cc67536143fe68e75d0bf0595abd7922 /net/switchdev/switchdev.c
parentnet/mlx5: Add RDMA_CTRL HW capabilities (diff)
downloadkernel-0a34fad1bed45ff2245ab8c315bc3d4c6471af46.tar.gz
kernel-0a34fad1bed45ff2245ab8c315bc3d4c6471af46.zip
net/mlx5: Allow the throttle mechanism to be more dynamic
Previously, throttle commands were identified and limited based on opcode. These commands were limited to half the command slots using a semaphore, and callback commands checked the opcode to determine semaphore release. To allow exceptions, we introduce a variable to indicate when the throttle lock is held. This allows scenarios where throttle commands are not limited. Callback functions use this variable to determine if the throttle semaphore needs to be released. This patch contains no functional changes. It's a preparation for the next patch. Signed-off-by: Chiara Meiohas <[email protected]> Reviewed-by: Tariq Toukan <[email protected]> Reviewed-by: Moshe Shemesh <[email protected]> Link: https://patch.msgid.link/055d975edeb816ac4c0fd1e665c6157d11947d26.1740574103.git.leon@kernel.org Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions