]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_vhost/vhost_user/vhost-net-user.c
vhost: fix build with kernel < 3.8
[dpdk.git] / lib / librte_vhost / vhost_user / vhost-net-user.c
index f681676ef604424a002794406fcb0ce0320cdc1d..2dc054763ec80ac00178001b440ed699e3c9799f 100644 (file)
@@ -424,7 +424,7 @@ vserver_message_handler(int connfd, void *dat, int *remove)
                break;
 
        case VHOST_USER_GET_QUEUE_NUM:
-               msg.payload.u64 = VIRTIO_NET_CTRL_MQ_VQ_PAIRS_MAX;
+               msg.payload.u64 = VHOST_MAX_QUEUE_PAIRS;
                msg.size = sizeof(msg.payload.u64);
                send_vhost_message(connfd, &msg);
                break;