]> 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)
commita25efc68acb1f6afb89873099cbb22056cda224e
tree83b7e9c1f2c1c67ce89a9dfd8f061662256f80b7
parent3e9daf492d534247014eeb3c165330559e01c8a8
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