freebsd-nq/sys/dev/mlx5/mlx5_en
Hans Petter Selasky 1eb09ad434 Use vport rather than physical-port MTU in mlx5en(4).
Set and report vport MTU rather than physical MTU,
The driver will set both vport and physical port mtu
and will rely on the query of vport mtu.

SRIOV VFs have to report their MTU to their vport manager (PF),
and this will allow them to work with any MTU they need
without failing the request.

Also for some cases where the PF is not a port owner, PF can
work with MTU less than the physical port mtu if set physical
port mtu didn't take effect.

Based on Linux upstream commit:
cd255efff9baadd654d6160e52d17ae7c568c9d3

Submitted by:	Meny Yossefi <menyy@mellanox.com>
MFC after:	1 week
Sponsored by:	Mellanox Technologies
2018-03-08 15:47:17 +00:00
..
en.h Add support for per priority flow control, PFC, to mlx5en(4). 2018-03-08 11:40:39 +00:00
mlx5_en_ethtool.c Implement priority to traffic class mapping in mlx5core. 2018-03-07 15:23:07 +00:00
mlx5_en_flow_table.c Refactor the flowsteering APIs used by mlx5en(4). This change is needed by 2017-11-10 09:49:08 +00:00
mlx5_en_main.c Use vport rather than physical-port MTU in mlx5en(4). 2018-03-08 15:47:17 +00:00
mlx5_en_rx.c mlx5en: Avoid SFENCe on x86 2017-12-19 14:11:41 +00:00
mlx5_en_tx.c Make sure the doorbell lock is valid for the i386 version 2017-10-02 12:20:55 +00:00
mlx5_en_txrx.c mlx5en: Separate the sendqueue from using the mlx5e_channel structure. 2016-09-16 11:35:45 +00:00