]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Unify logic of MTU boundaries
authorTariq Toukan <tariqt@mellanox.com>
Tue, 22 Jan 2019 11:42:10 +0000 (13:42 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 5 Apr 2019 21:10:35 +0000 (14:10 -0700)
commitfea817753c55d1721c1643e9f6feee90c326d84b
tree1d67673631775485357c3bbacccf0bf2905bc3dc
parent1f296b8f7af457a36a6fbdb17c33b4db3bf75a9c
net/mlx5e: Unify logic of MTU boundaries

Expose a new helper that wraps the logic for setting the
netdevice's MTU boundaries.
Use it for the different components (Eth, rep, IPoIB).

Set the netdevice min MTU to ETH_MIN_MTU, and the max according
to both the FW capability and the kernel definition.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c