Remove parse_iotlb_msg from VhostIotlbBackend
This function is not used and possible users can call directly `parse` on structures implementing VhostIotlbMsgParser trait. Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
This commit is contained in:
parent
2535efd9aa
commit
1215bae8a9
2 changed files with 0 additions and 24 deletions
|
|
@ -162,17 +162,6 @@ pub trait VhostIotlbBackend: std::marker::Sized {
|
|||
/// # Arguments
|
||||
/// * `msg` - IOTLB message to send.
|
||||
fn send_iotlb_msg(&self, msg: &VhostIotlbMsg) -> Result<()>;
|
||||
|
||||
/// Parse a buffer received from the vhost-based backend and fill a VhostIotlbMsg.
|
||||
///
|
||||
/// # Arguments
|
||||
/// * `buffer` - Buffer containing the raw data received from the vhost-based backend.
|
||||
/// * `msg` - IOTLB message parsed.
|
||||
fn parse_iotlb_msg<T: Sized + VhostIotlbMsgParser>(
|
||||
&self,
|
||||
buffer: &T,
|
||||
msg: &mut VhostIotlbMsg,
|
||||
) -> Result<()>;
|
||||
}
|
||||
|
||||
/// An interface for setting up vhost-based backend drivers with interior mutability.
|
||||
|
|
|
|||
|
|
@ -381,19 +381,6 @@ impl<I: VhostKernBackend + VhostKernFeatures> VhostIotlbBackend for I {
|
|||
|
||||
io_result(ret, ())
|
||||
}
|
||||
|
||||
/// Parse a buffer received from the in-kernel vhost backend and fill a VhostIotlbMsg.
|
||||
///
|
||||
/// # Arguments
|
||||
/// * `buffer` - Buffer containing the raw data received from the in-kernel vhost backend.
|
||||
/// * `msg` - IOTLB message parsed.
|
||||
fn parse_iotlb_msg<T: Sized + VhostIotlbMsgParser>(
|
||||
&self,
|
||||
buffer: &T,
|
||||
msg: &mut VhostIotlbMsg,
|
||||
) -> Result<()> {
|
||||
buffer.parse(msg)
|
||||
}
|
||||
}
|
||||
|
||||
impl VhostIotlbMsgParser for vhost_msg {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue