Commit 59b0681
committed
feat(virtio): split
`Queue::add_used()` method first writes a Descriptor head in the used descriptor
ring buffer and then advances the index of this buffer to let the guest know we
used one or more Descriptors.
Carve out each one of these steps in their own function so that we can add multiple
descriptors in the used ring and advance the index only once we finish handling
descriptors in one step.
This will be useful when, in later commits, we will implement RX_MRGBUF for
the RX queue of the network device
Signed-off-by: Egor Lazarchuk <[email protected]>add_used() into 2 separate methods1 parent aa0dca9 commit 59b0681
1 file changed
+23
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
577 | | - | |
578 | | - | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
579 | 587 | | |
580 | 588 | | |
581 | 589 | | |
| |||
584 | 592 | | |
585 | 593 | | |
586 | 594 | | |
587 | | - | |
| 595 | + | |
588 | 596 | | |
589 | 597 | | |
590 | 598 | | |
| |||
594 | 602 | | |
595 | 603 | | |
596 | 604 | | |
| 605 | + | |
| 606 | + | |
597 | 607 | | |
598 | | - | |
599 | | - | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
600 | 612 | | |
601 | 613 | | |
602 | 614 | | |
603 | 615 | | |
604 | 616 | | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
605 | 623 | | |
606 | 624 | | |
607 | 625 | | |
| |||
0 commit comments