]> 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)
commit52d3786b0925ebef94b504184805a2278ad78a09
treee247d44f5ec0219d36f91b6e89792869857eb9af
parentcd3af8d3e6b491f4ab384e9a94ed713c5b816065
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