diff options
| author | Maxim Mikityanskiy <maximmi@mellanox.com> | 2019-12-02 15:48:25 +0200 |
|---|---|---|
| committer | Saeed Mahameed <saeedm@mellanox.com> | 2020-02-25 17:06:02 -0800 |
| commit | b9ab5d0ecf426a1bf16d706e7c284e00998d00be (patch) | |
| tree | 8dc8f0d2c50c3f2f0b2104b4188a651ced2cc3e7 /scripts/stackusage | |
| parent | net/mlx5e: Allow mlx5e_switch_priv_channels to fail and recover (diff) | |
| download | linux-b9ab5d0ecf426a1bf16d706e7c284e00998d00be.tar.gz linux-b9ab5d0ecf426a1bf16d706e7c284e00998d00be.zip | |
net/mlx5e: Add context to the preactivate hook
Sometimes the preactivate hook of mlx5e_safe_switch_channels needs more
parameters than just struct mlx5e_priv *. For such cases, a new
parameter (void *context) is added to preactivate hooks.
Some of the existing normal functions are currently used as preactivate
callbacks. To avoid adding an extra unused parameter, they are wrapped
in an automatic way using the MLX5E_DEFINE_PREACTIVATE_WRAPPER_CTX
macro.
Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
