virtio-devices: fix documentation formatting

Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
Wei Liu
2024-06-12 15:30:14 +00:00
committed by Bo Chen
parent 9cd214b0a1
commit b3a73d6634
3 changed files with 20 additions and 16 deletions

View File

@@ -7,6 +7,7 @@
//! virtio queue:
//! - the packet header; and
//! - the packet data/buffer.
//!
//! There is a 1:1 relation between descriptor chains and packets: the first (chain head) holds
//! the header, and an optional second descriptor holds the data. The second descriptor is only
//! present for data packets (VSOCK_OP_RW).

View File

@@ -71,6 +71,7 @@ impl MuxerRxQ {
/// A push will fail when:
/// - trying to push a connection key onto an out-of-sync, or full queue; or
/// - trying to push an RST onto a queue already full of RSTs.
///
/// RSTs take precedence over connections, because connections can always be queried for
/// pending RX data later. Aside from this queue, there is no other storage for RSTs, so
/// failing to push one means that we have to drop the packet.