net/virtio: fix device configure without jumbo Rx offload
[dpdk.git] / drivers / net / virtio / virtio_user / vhost_user.c
index f8569f6..aec6664 100644 (file)
@@ -951,13 +951,15 @@ vhost_user_update_link_state(struct virtio_user_dev *dev)
                r = recv(data->vhostfd, buf, 128, MSG_PEEK);
                if (r == 0 || (r < 0 && errno != EAGAIN)) {
                        dev->net_status &= (~VIRTIO_NET_S_LINK_UP);
-                       PMD_DRV_LOG(ERR, "virtio-user port %u is down", dev->port_id);
+                       PMD_DRV_LOG(ERR, "virtio-user port %u is down", dev->hw.port_id);
 
                        /* This function could be called in the process
                         * of interrupt handling, callback cannot be
                         * unregistered here, set an alarm to do it.
                         */
-                       rte_eal_alarm_set(1, virtio_user_dev_delayed_handler, (void *)dev);
+                       rte_eal_alarm_set(1,
+                               virtio_user_dev_delayed_disconnect_handler,
+                               (void *)dev);
                } else {
                        dev->net_status |= VIRTIO_NET_S_LINK_UP;
                }