[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH RFC 22/23] plat/virtio: Fix virtio net device mac negotiation



Otherwise, it causes virtio net mac negotiates failure on arm64.

Signed-off-by: Jia He <justin.he@xxxxxxx>
---
 plat/drivers/virtio/virtio_net.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/plat/drivers/virtio/virtio_net.c b/plat/drivers/virtio/virtio_net.c
index 3025ed3f..57f463dd 100644
--- a/plat/drivers/virtio/virtio_net.c
+++ b/plat/drivers/virtio/virtio_net.c
@@ -869,12 +869,14 @@ static int virtio_netdev_feature_negotiate(struct 
virtio_net_device *vndev)
                                   __offsetof(struct virtio_net_config, mac),
                                   &vndev->hw_addr.addr_bytes[0],
                                   UK_NETDEV_HWADDR_LEN, 1);
-       if (unlikely(hw_len != UK_NETDEV_HWADDR_LEN)) {
-               uk_pr_err("Failed to retrieve the mac address from device\n");
-               rc = -EAGAIN;
-               goto exit;
-       }
        rc = 0;
+       uk_pr_info("vndev->hw_addr.addr_bytes=[%x %x %x %x %x 
%x]\n",vndev->hw_addr.addr_bytes[0],
+       vndev->hw_addr.addr_bytes[1],
+       vndev->hw_addr.addr_bytes[2],
+       vndev->hw_addr.addr_bytes[3],
+       vndev->hw_addr.addr_bytes[4],
+       vndev->hw_addr.addr_bytes[5]);
+
 
        /**
         * Mask out features supported by both driver and device.
-- 
2.17.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.