diff options
author | Liu Jiang <gerry@linux.alibaba.com> | 2020-12-09 09:27:14 +0800 |
---|---|---|
committer | Sergio Lopez <slp@sinrega.org> | 2020-12-14 12:15:40 +0100 |
commit | 6ccc681e7e1808e0d9d2536eb90ef203511ab359 (patch) | |
tree | 3de374f999b8891ae8aaa5e0e126771c7b808e4c /src/vhost_user | |
parent | fec84606e5a1416c1ccb65e7ddba8c1ceeb8c8f3 (diff) | |
download | vmm_vhost-6ccc681e7e1808e0d9d2536eb90ef203511ab359.tar.gz |
vhost-user: enlarge supported number of vrings
Enlarge VHOST_USER_MAX_VRINGS from 0xff to 0x8000, there's devices
needing more vrings than 0xff.
Signed-off-by: Liu Jiang <gerry@linux.alibaba.com>
Diffstat (limited to 'src/vhost_user')
-rw-r--r-- | src/vhost_user/message.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vhost_user/message.rs b/src/vhost_user/message.rs index c2e9127..4109b61 100644 --- a/src/vhost_user/message.rs +++ b/src/vhost_user/message.rs @@ -11,7 +11,7 @@ use std::fmt::Debug; use std::marker::PhantomData; -use VringConfigData; +use crate::VringConfigData; /// The vhost-user specification uses a field of u32 to store message length. /// On the other hand, preallocated buffers are needed to receive messages from the Unix domain @@ -37,7 +37,7 @@ pub const VHOST_USER_CONFIG_OFFSET: u32 = 0x100; pub const VHOST_USER_CONFIG_SIZE: u32 = 0x1000; /// Maximum number of vrings supported. -pub const VHOST_USER_MAX_VRINGS: u64 = 0xFFu64; +pub const VHOST_USER_MAX_VRINGS: u64 = 0x8000u64; pub(super) trait Req: Clone + Copy + Debug + PartialEq + Eq + PartialOrd + Ord + Into<u32> |