search for: mlx5_query_nic_vport_mtu

Displaying 2 results from an estimated 2 matches for "mlx5_query_nic_vport_mtu".

2020 Aug 10
0
[PATCH] vdpa/mlx5: fix up endian-ness for mtu
...tures; + ndev->config.mtu = __cpu_to_virtio16(mlx5_vdpa_is_little_endian(mvdev), + ndev->mtu); return err; } @@ -1925,7 +1935,7 @@ void *mlx5_vdpa_add_dev(struct mlx5_core_dev *mdev) init_mvqs(ndev); mutex_init(&ndev->reslock); config = &ndev->config; - err = mlx5_query_nic_vport_mtu(mdev, &config->mtu); + err = mlx5_query_nic_vport_mtu(mdev, &ndev->mtu); if (err) goto err_mtu; -- MST
2020 Jul 16
0
[PATCH vhost next 10/10] vdpa/mlx5: Add VDPA driver for supported mlx5 devices
...dpa_max_qps(max_vqs)); > + if (IS_ERR(ndev)) > + return ndev; > + > + ndev->mvdev.max_vqs = max_vqs; > + mvdev = &ndev->mvdev; > + mvdev->mdev = mdev; > + init_mvqs(ndev); > + mutex_init(&ndev->reslock); > + config = &ndev->config; > + err = mlx5_query_nic_vport_mtu(mdev, &config->mtu); > + if (err) > + goto err_mtu; > + > + err = mlx5_query_nic_vport_mac_address(mdev, 0, 0, config->mac); > + if (err) > + goto err_mtu; > + > + mvdev->vdev.dma_dev = mdev->device; > + err = mlx5_vdpa_alloc_resources(&ndev->mvde...