]> 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)
commit8c13801655f573061192cf66a41f7a95ce6049d5
tree1d67673631775485357c3bbacccf0bf2905bc3dc
parent7fe0c437cf8c55c97a219aa3b63f26375afdaa77
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