]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Rename hw_modify to preactivate
authorMaxim Mikityanskiy <maximmi@mellanox.com>
Thu, 31 Oct 2019 07:39:34 +0000 (09:39 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 26 Feb 2020 01:05:47 +0000 (17:05 -0800)
commit6ff8ba850cb5edbbbe3dec2edeccddc7e349dc8b
tree83b7e9c1f2c1c67ce89a9dfd8f061662256f80b7
parent89e76ba85fbfe029534616f2f3b72eacdf2a7920
net/mlx5e: Rename hw_modify to preactivate

mlx5e_safe_switch_channels accepts a callback to be called before
activating new channels. It is intended to configure some hardware
parameters in cases where channels are recreated because some
configuration has changed.

Recently, this callback has started being used to update the driver's
internal MLX5E_STATE_XDP_OPEN flag, and the following patches also
intend to use this callback for software preparations. This patch
renames the hw_modify callback to preactivate, so that the name fits
better.

Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c