]> 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)
commitdca147b3dce5abb5284ff747211960fd2db5ec2e
tree83b7e9c1f2c1c67ce89a9dfd8f061662256f80b7
parentc2c95271f9f39ea9b34db2301b3b6c5105cdb447
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