OSDN Git Service

net/mlx5e: Wrap the open and apply of channels in one fail-safe function
authorTariq Toukan <tariqt@mellanox.com>
Mon, 26 Nov 2018 15:22:16 +0000 (17:22 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 19 Feb 2019 22:15:03 +0000 (14:15 -0800)
commit877662e27276f345ea07e49f153aa88e9a1e313c
treed23bb543418a5f5bdce9ce105e98ef0a96e2c7b0
parent6a897372417e8c9e0e03c4c438fc1f48dd096ea9
net/mlx5e: Wrap the open and apply of channels in one fail-safe function

Take into a function the common code structure of opening
a side set of channels followed by a call to apply them.

Signed-off-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_dcbnl.c
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c