linux/drivers/vdpa
Si-Wei Liu d084d996aa vdpa/mlx5: should exclude header length and fcs from mtu
When feature VIRTIO_NET_F_MTU is negotiated on mlx5_vdpa,
22 extra bytes worth of MTU length is shown in guest.
This is because the mlx5_query_port_max_mtu API returns
the "hardware" MTU value, which does not just contain the
 Ethernet payload, but includes extra lengths starting
from the Ethernet header up to the FCS altogether.

Fix the MTU so packets won't get dropped silently.

Fixes: 1a86b377aa ("vdpa/mlx5: Add VDPA driver for supported mlx5 devices")
Signed-off-by: Si-Wei Liu <si-wei.liu@oracle.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Acked-by: Eli Cohen <elic@nvidia.com>
Link: https://lore.kernel.org/r/20210408091047.4269-2-elic@nvidia.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2021-04-09 12:08:27 -04:00
..
ifcvf vdpa: set the virtqueue num during register 2021-02-25 14:26:00 -05:00
mlx5 vdpa/mlx5: should exclude header length and fcs from mtu 2021-04-09 12:08:27 -04:00
vdpa_sim vdpa_sim: Skip typecasting from void* 2021-03-14 04:37:36 -04:00
Kconfig vdpa: Define vdpa mgmt device, ops and a netlink interface 2021-02-23 07:52:56 -05:00
Makefile vdpa/mlx5: Add support library for mlx5 VDPA implementation 2020-08-05 19:00:23 -04:00
vdpa.c vdpa: set the virtqueue num during register 2021-02-25 14:26:00 -05:00