]> git.proxmox.com Git - mirror_qemu.git/blobdiff - net/hub.c
vdpa: Add SetSteeringEBPF method for NetClientState
[mirror_qemu.git] / net / hub.c
index 67ca53485638796a2f928ac68e680979d0981335..4c8a469a50aa272bb2f8c9e1f168573ebd902383 100644 (file)
--- a/net/hub.c
+++ b/net/hub.c
@@ -274,7 +274,7 @@ int net_init_hubport(const Netdev *netdev, const char *name,
     assert(!peer);
     hubport = &netdev->u.hubport;
 
-    if (hubport->has_netdev) {
+    if (hubport->netdev) {
         hubpeer = qemu_find_netdev(hubport->netdev);
         if (!hubpeer) {
             error_setg(errp, "netdev '%s' not found", hubport->netdev);