net/mlx5e: Set port MTU on netdev creation rather on open
authorSaeed Mahameed <saeedm@mellanox.com>
Thu, 18 Aug 2016 18:09:02 +0000 (21:09 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Aug 2016 23:09:55 +0000 (16:09 -0700)
commit13f9bba7cd4f1665e4091143950a54e3f2984b07
treef76ff42184aaa414b92cb4d767c46e03f4855a17
parent98a384eca9c147f890b5ea31ae91da3769e47e07
net/mlx5e: Set port MTU on netdev creation rather on open

Port mtu shouldn't be written to hardware on every single interface
open.
Here we set it only when needed, on change_mtu and netdevice creation.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c