]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Remove the mlx5e_update_priv_params() function
authorAchiad Shochat <achiad@mellanox.com>
Wed, 29 Jul 2015 12:05:46 +0000 (15:05 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jul 2015 06:04:47 +0000 (23:04 -0700)
commit70b54b95f8b117ad7b99b017e43318f50719dce5
treeb5d896a8126b3a30386ab07e3f5cd57ffc93758e
parent3f5b9ae26b4ddcd1087cf57c2fdfe607d9534782
net/mlx5e: Remove the mlx5e_update_priv_params() function

It was used to update netdev priv parameters that require stopping
and re-opening the device in a generic way - it got the new
parameters and did: ndo_stop(), copy new parameters into current
parameters, ndo_open().

We chose to remove it for two reasons:
1) It requires additional instance of struct mlx5e_params on the
   stack and looking forward we expect this struct to grow.
2) Sometimes we want to do additional operations (besides
   just updating the priv parameters) while the netdev is stopped.
   For example, updating netdev->mtu @mlx5e_change_mtu() should
   be done while the netdev is stopped (done in this commit).

Signed-off-by: Achiad Shochat <achiad@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c