]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd6390b9642520a5210f499932fb193d9b3055cef
tree918c67edbddce561eee16a11bbedb5eedc46367a
parentaae050c54718a53b9527dcb7f346912791c23eb2
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