]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit - drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
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)
commit6d7ee2edaa54d676026b7f0d50ae472e62a84564
tree1d67673631775485357c3bbacccf0bf2905bc3dc
parent0b77f2305f38d63fbf0c501adfd342848d695718
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