mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 16:44:10 +02:00
OvmfPkg/VirtioNetDxe: document Rx/Tx allocs and mappings on Init/Shutdown
Document the following actions on the EfiSimpleNetworkStarted <-> EfiSimpleNetworkInitialized state transitions: * from commit 46b11f00ac70 ("OvmfPkg/VirtioNetDxe: alloc RxBuf using AllocateSharedPages()", 2017-09-14): VirtioNetInitRx -> { VirtIo->AllocateSharedPages, VirtioMapAllBytesInSharedBuffer } VirtioNetShutdownRx -> { VirtIo->UnmapSharedBuffer, VirtIo->FreeSharedPages } * from commit 891f016c1b99 ("OvmfPkg/VirtioNetDxe: dynamically alloc transmit header", 2017-09-14): VirtioNetInitTx -> { VirtIo->AllocateSharedPages, VirtioMapAllBytesInSharedBuffer } VirtioNetShutdownTx -> { VirtIo->UnmapSharedBuffer, VirtIo->FreeSharedPages } Cc: Brijesh Singh <brijesh.singh@amd.com> Cc: Jordan Justen <jordan.l.justen@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Brijesh Singh <brijesh.singh@amd.com>
This commit is contained in:
parent
f9c59fa44a
commit
53b55831e0
@ -69,10 +69,14 @@ faithfully indented) that implement the transition.
|
|||||||
[SnpInitialize.c] | | [SnpShutdown.c]
|
[SnpInitialize.c] | | [SnpShutdown.c]
|
||||||
VirtioNetInitialize | | VirtioNetShutdown
|
VirtioNetInitialize | | VirtioNetShutdown
|
||||||
VirtioNetInitRing {Rx, Tx} | | VirtioNetShutdownRx [SnpSharedHelpers.c]
|
VirtioNetInitRing {Rx, Tx} | | VirtioNetShutdownRx [SnpSharedHelpers.c]
|
||||||
VirtioRingInit | | VirtioNetShutdownTx [SnpSharedHelpers.c]
|
VirtioRingInit | | VirtIo->UnmapSharedBuffer
|
||||||
VirtioRingMap | | VirtioNetUninitRing [SnpSharedHelpers.c]
|
VirtioRingMap | | VirtIo->FreeSharedPages
|
||||||
VirtioNetInitTx | | {Tx, Rx}
|
VirtioNetInitTx | | VirtioNetShutdownTx [SnpSharedHelpers.c]
|
||||||
VirtioNetInitRx | | VirtIo->UnmapSharedBuffer
|
VirtIo->AllocateShare... | | VirtIo->UnmapSharedBuffer
|
||||||
|
VirtioMapAllBytesInSh... | | VirtIo->FreeSharedPages
|
||||||
|
VirtioNetInitRx | | VirtioNetUninitRing [SnpSharedHelpers.c]
|
||||||
|
VirtIo->AllocateShare... | | {Tx, Rx}
|
||||||
|
VirtioMapAllBytesInSh... | | VirtIo->UnmapSharedBuffer
|
||||||
| | VirtioRingUninit
|
| | VirtioRingUninit
|
||||||
v |
|
v |
|
||||||
+-----------------------------+
|
+-----------------------------+
|
||||||
|
Loading…
x
Reference in New Issue
Block a user