|
@@ -507,6 +507,7 @@ VHostNetState *get_vhost_net(NetClientState *nc)
|
|
switch (nc->info->type) {
|
|
switch (nc->info->type) {
|
|
case NET_CLIENT_DRIVER_TAP:
|
|
case NET_CLIENT_DRIVER_TAP:
|
|
vhost_net = tap_get_vhost_net(nc);
|
|
vhost_net = tap_get_vhost_net(nc);
|
|
|
|
+ assert(vhost_net);
|
|
break;
|
|
break;
|
|
#ifdef CONFIG_VHOST_NET_USER
|
|
#ifdef CONFIG_VHOST_NET_USER
|
|
case NET_CLIENT_DRIVER_VHOST_USER:
|
|
case NET_CLIENT_DRIVER_VHOST_USER:
|