]> 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)
commit86249945dacaf4d5b913b6fe0dcc455136861477
tree918c67edbddce561eee16a11bbedb5eedc46367a
parent951c4801c62d7a9e3ec97d824c100b93afefe17e
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