]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Enable napi in channel's activation stage
authorTariq Toukan <tariqt@mellanox.com>
Mon, 30 Dec 2019 12:41:53 +0000 (14:41 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 2 Feb 2021 06:52:34 +0000 (22:52 -0800)
commitf59afcebb53111b258ffd72a91ec6e21bab664e6
tree6e0af1222ed57b59b64581d9fabd1a375927b186
parent8d5413838a18f42f18bef52494225ce25ac7fe92
net/mlx5e: Enable napi in channel's activation stage

The channel's napi is first needed upon activation, not creation.
Minimize its enabled scope by moving it from the channel's open/close
stage into the activate/deactivate stage.

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