summaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorMaxim Mikityanskiy <maximmi@mellanox.com>2019-12-02 15:48:25 +0200
committerSaeed Mahameed <saeedm@mellanox.com>2020-02-25 17:06:02 -0800
commitb9ab5d0ecf426a1bf16d706e7c284e00998d00be (patch)
tree8dc8f0d2c50c3f2f0b2104b4188a651ced2cc3e7 /virt
parent35a78ed4c351319e8840d99ba9032bf2d175e168 (diff)
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 'virt')
0 files changed, 0 insertions, 0 deletions