diff options
| author | Chiara Meiohas <[email protected]> | 2025-02-26 13:01:07 +0000 |
|---|---|---|
| committer | Leon Romanovsky <[email protected]> | 2025-03-08 18:22:42 +0000 |
| commit | f9deed0980fe29c57488f395528fe3d923c91b1f (patch) | |
| tree | 6d533b06cce02aa7b04a6e23964cce5239676d6a /net/switchdev/switchdev.c | |
| parent | net/mlx5: Allow the throttle mechanism to be more dynamic (diff) | |
| download | kernel-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
