]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix minimum MTU
authorSaeed Mahameed <saeedm@mellanox.com>
Thu, 21 Apr 2016 21:33:04 +0000 (00:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Apr 2016 18:51:39 +0000 (14:51 -0400)
commite1523655a297cbb4c2010a5b0bf96365dbc04e22
treee247d44f5ec0219d36f91b6e89792869857eb9af
parent49de027c492c892c5da2e6204e4a1a9b7ca06628
net/mlx5e: Fix minimum MTU

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>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c