Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
Pull virtio updates from Michael Tsirkin: - IRQ bypass support for vdpa and IFC - MLX5 vdpa driver - Endianness fixes for virtio drivers - Misc other fixes * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost: (71 commits) vdpa/mlx5: fix up endian-ness for mtu vdpa: Fix pointer math bug in vdpasim_get_config() vdpa/mlx5: Fix pointer math in mlx5_vdpa_get_config() vdpa/mlx5: fix memory allocation failure checks vdpa/mlx5: Fix uninitialised variable in core/mr.c vdpa_sim: init iommu lock virtio_config: fix up warnings on parisc vdpa/mlx5: Add VDPA driver for supported mlx5 devices vdpa/mlx5: Add shared memory registration code vdpa/mlx5: Add support library for mlx5 VDPA implementation vdpa/mlx5: Add hardware descriptive header file vdpa: Modify get_vq_state() to return error code net/vdpa: Use struct for set/get vq state vdpa: remove hard coded virtq num vdpasim: support batch updating vhost-vdpa: support IOTLB batching hints vhost-vdpa: support get/set backend features vhost: generialize backend features setting/getting vhost-vdpa: refine ioctl pre-processing vDPA: dont change vq irq after DRIVER_OK ...
This commit is contained in:
@@ -625,7 +625,10 @@ static void mlxbf_tmfifo_rxtx_header(struct mlxbf_tmfifo_vring *vring,
|
||||
vdev_id = VIRTIO_ID_NET;
|
||||
hdr_len = sizeof(struct virtio_net_hdr);
|
||||
config = &fifo->vdev[vdev_id]->config.net;
|
||||
if (ntohs(hdr.len) > config->mtu +
|
||||
/* A legacy-only interface for now. */
|
||||
if (ntohs(hdr.len) >
|
||||
__virtio16_to_cpu(virtio_legacy_is_little_endian(),
|
||||
config->mtu) +
|
||||
MLXBF_TMFIFO_NET_L2_OVERHEAD)
|
||||
return;
|
||||
} else {
|
||||
@@ -1231,8 +1234,12 @@ static int mlxbf_tmfifo_probe(struct platform_device *pdev)
|
||||
|
||||
/* Create the network vdev. */
|
||||
memset(&net_config, 0, sizeof(net_config));
|
||||
net_config.mtu = ETH_DATA_LEN;
|
||||
net_config.status = VIRTIO_NET_S_LINK_UP;
|
||||
|
||||
/* A legacy-only interface for now. */
|
||||
net_config.mtu = __cpu_to_virtio16(virtio_legacy_is_little_endian(),
|
||||
ETH_DATA_LEN);
|
||||
net_config.status = __cpu_to_virtio16(virtio_legacy_is_little_endian(),
|
||||
VIRTIO_NET_S_LINK_UP);
|
||||
mlxbf_tmfifo_get_cfg_mac(net_config.mac);
|
||||
rc = mlxbf_tmfifo_create_vdev(dev, fifo, VIRTIO_ID_NET,
|
||||
MLXBF_TMFIFO_NET_FEATURES, &net_config,
|
||||
|
Reference in New Issue
Block a user