net/mlx5e: Fix minimum MTU
authorSaeed Mahameed <saeedm@mellanox.com>
Thu, 21 Apr 2016 21:33:04 +0000 (00:33 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 May 2016 00:06:36 +0000 (17:06 -0700)
commitda465bd9391efca3649ab34c3575a2b27ac384e3
treec6738907a9e900206d752b5426688760bce4be45
parent3032b09874a4709f8529d620dd270e14a56eb61d
net/mlx5e: Fix minimum MTU

[ Upstream commit d8edd2469ace550db707798180d1c84d81f93bca ]

Minimum MTU that can be set in Connectx4 device is 68.

This fixes the case where a user wants to set invalid MTU,
the driver will fail to satisfy this request and the interface
will stay down.

It is better to report an error and continue working with old
mtu.

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