aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorChiara Meiohas <[email protected]>2025-02-26 13:01:07 +0000
committerLeon Romanovsky <[email protected]>2025-03-08 18:22:42 +0000
commitf9deed0980fe29c57488f395528fe3d923c91b1f (patch)
tree6d533b06cce02aa7b04a6e23964cce5239676d6a /net/switchdev/switchdev.c
parentnet/mlx5: Allow the throttle mechanism to be more dynamic (diff)
downloadkernel-f9deed0980fe29c57488f395528fe3d923c91b1f.tar.gz
kernel-f9deed0980fe29c57488f395528fe3d923c91b1f.zip
net/mlx5: Limit non-privileged commands
Limit non-privileged UID commands to half of the available command slots when privileged UIDs are present. Privileged throttle commands will not be limited. Use an xarray to store privileged UIDs. Add insert and remove functions for privileged UIDs management. Non-user commands (with uid 0) are not limited. Signed-off-by: Chiara Meiohas <[email protected]> Reviewed-by: Moshe Shemesh <[email protected]> Reviewed-by: Tariq Toukan <[email protected]> Link: https://patch.msgid.link/d2f3dd9a0dbad3c9f2b4bb0723837995e4e06de2.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