projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36bdcf3
)
vdpa/mlx5: Fix failure to bring link up
author
Eli Cohen
<elic@nvidia.com>
Thu, 17 Sep 2020 12:15:40 +0000
(15:15 +0300)
committer
Michael S. Tsirkin
<mst@redhat.com>
Wed, 21 Oct 2020 14:34:07 +0000
(10:34 -0400)
Set VIRTIO_NET_S_LINK_UP in config status to allow the get the bring the
net device's link up.
Fixes:
1a86b377aa21
("vdpa/mlx5: Add VDPA driver for supported mlx5 devices")
Signed-off-by: Eli Cohen <elic@nvidia.com>
Link:
https://lore.kernel.org/r/20200917121540.GA98184@mtl-vdi-166.wap.labs.mlnx
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/vdpa/mlx5/net/mlx5_vnet.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/vdpa/mlx5/net/mlx5_vnet.c
b/drivers/vdpa/mlx5/net/mlx5_vnet.c
index 56228467d7ec6482f8433fe1ae7bc27c3c3a97c2..5ca309473c03d6de37a4dffbcf6f8c53467a5323 100644
(file)
--- a/
drivers/vdpa/mlx5/net/mlx5_vnet.c
+++ b/
drivers/vdpa/mlx5/net/mlx5_vnet.c
@@
-1541,6
+1541,7
@@
static int mlx5_vdpa_set_features(struct vdpa_device *vdev, u64 features)
ndev->mvdev.actual_features = features & ndev->mvdev.mlx_features;
ndev->config.mtu = cpu_to_mlx5vdpa16(mvdev, ndev->mtu);
+ ndev->config.status |= cpu_to_mlx5vdpa16(mvdev, VIRTIO_NET_S_LINK_UP);
return err;
}