net/mlx5e: Fail safe mtu and lro setting
authorSaeed Mahameed <saeedm@mellanox.com>
Sun, 12 Feb 2017 23:19:14 +0000 (01:19 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 27 Mar 2017 12:08:24 +0000 (15:08 +0300)
commit2e20a151205be8e7efa9644cdb942381e7bec787
tree918c67edbddce561eee16a11bbedb5eedc46367a
parent6f9485af4020a858ac91adc5286411b6dd3c2f06
net/mlx5e: Fail safe mtu and lro setting

Use the new fail-safe channels switch mechanism to set new
netdev mtu and lro settings.

MTU and lro settings demand some HW configuration changes after new
channels are created and ready for action. In order to unify switch
channels routine for LRO and MTU changes, and maybe future configuration
features, we now pass to it a modify HW function pointer to be
invoked directly after old channels are de-activated and before new
channels are activated.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
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