vhost_rs: The vhost user version we support

The vhost user version should be same with backend.
define VHOST_USER_VERSION    (0x1)

Signed-off-by: Yang Zhong <yang.zhong@intel.com>
This commit is contained in:
Yang Zhong 2019-07-19 20:10:58 +08:00 committed by Sebastien Boeuf
parent 6fb7c3bbc2
commit e05de4514d

View File

@ -603,7 +603,7 @@ impl MasterInternal {
#[inline]
fn new_request_header(request: MasterReq, size: u32) -> VhostUserMsgHeader<MasterReq> {
// TODO: handle NEED_REPLY flag
VhostUserMsgHeader::new(request, 0, size)
VhostUserMsgHeader::new(request, 0x1, size)
}
}