diff options
author | Liu Jiang <gerry@linux.alibaba.com> | 2020-12-09 00:14:56 +0800 |
---|---|---|
committer | Sergio Lopez <slp@sinrega.org> | 2020-12-14 12:15:40 +0100 |
commit | fec84606e5a1416c1ccb65e7ddba8c1ceeb8c8f3 (patch) | |
tree | 43b729de406a02b44b173581648d9641220b897f /src/vhost_kern | |
parent | a687687eb04a903371d868c29ac1389750ba84c6 (diff) | |
download | vmm_vhost-fec84606e5a1416c1ccb65e7ddba8c1ceeb8c8f3.tar.gz |
vhost-kern: fix a typo
vhost_SET_BACKEND should be VHOST_NET_SET_BACKEND.
Signed-off-by: Liu Jiang <gerry@linux.alibaba.com>
Diffstat (limited to 'src/vhost_kern')
-rw-r--r-- | src/vhost_kern/vhost_binding.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vhost_kern/vhost_binding.rs b/src/vhost_kern/vhost_binding.rs index 4860f2d..fdc5225 100644 --- a/src/vhost_kern/vhost_binding.rs +++ b/src/vhost_kern/vhost_binding.rs @@ -14,8 +14,8 @@ #![allow(non_snake_case)] #![allow(missing_docs)] +use crate::{Error, Result}; use std::os::raw; -use {Error, Result}; pub const VHOST: raw::c_uint = 0xaf; pub const VHOST_VRING_F_LOG: raw::c_uint = 0; @@ -49,7 +49,7 @@ ioctl_iowr_nr!(VHOST_GET_VRING_BASE, VHOST, 0x12, vhost_vring_state); ioctl_iow_nr!(VHOST_SET_VRING_KICK, VHOST, 0x20, vhost_vring_file); ioctl_iow_nr!(VHOST_SET_VRING_CALL, VHOST, 0x21, vhost_vring_file); ioctl_iow_nr!(VHOST_SET_VRING_ERR, VHOST, 0x22, vhost_vring_file); -ioctl_iow_nr!(vhost_SET_BACKEND, VHOST, 0x30, vhost_vring_file); +ioctl_iow_nr!(VHOST_NET_SET_BACKEND, VHOST, 0x30, vhost_vring_file); ioctl_iow_nr!(VHOST_SCSI_SET_ENDPOINT, VHOST, 0x40, vhost_scsi_target); ioctl_iow_nr!(VHOST_SCSI_CLEAR_ENDPOINT, VHOST, 0x41, vhost_scsi_target); ioctl_iow_nr!(VHOST_SCSI_GET_ABI_VERSION, VHOST, 0x42, raw::c_int); |