mirror of https://github.com/acidanthera/audk.git
OvmfPkg/VirtioNetDxe: document Rx/Tx allocs and mappings on Init/Shutdown
Document the following actions on the EfiSimpleNetworkStarted <-> EfiSimpleNetworkInitialized state transitions: * from commit46b11f00ac
("OvmfPkg/VirtioNetDxe: alloc RxBuf using AllocateSharedPages()", 2017-09-14): VirtioNetInitRx -> { VirtIo->AllocateSharedPages, VirtioMapAllBytesInSharedBuffer } VirtioNetShutdownRx -> { VirtIo->UnmapSharedBuffer, VirtIo->FreeSharedPages } * from commit891f016c1b
("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]
|
||||
VirtioNetInitialize | | VirtioNetShutdown
|
||||
VirtioNetInitRing {Rx, Tx} | | VirtioNetShutdownRx [SnpSharedHelpers.c]
|
||||
VirtioRingInit | | VirtioNetShutdownTx [SnpSharedHelpers.c]
|
||||
VirtioRingMap | | VirtioNetUninitRing [SnpSharedHelpers.c]
|
||||
VirtioNetInitTx | | {Tx, Rx}
|
||||
VirtioNetInitRx | | VirtIo->UnmapSharedBuffer
|
||||
VirtioRingInit | | VirtIo->UnmapSharedBuffer
|
||||
VirtioRingMap | | VirtIo->FreeSharedPages
|
||||
VirtioNetInitTx | | VirtioNetShutdownTx [SnpSharedHelpers.c]
|
||||
VirtIo->AllocateShare... | | VirtIo->UnmapSharedBuffer
|
||||
VirtioMapAllBytesInSh... | | VirtIo->FreeSharedPages
|
||||
VirtioNetInitRx | | VirtioNetUninitRing [SnpSharedHelpers.c]
|
||||
VirtIo->AllocateShare... | | {Tx, Rx}
|
||||
VirtioMapAllBytesInSh... | | VirtIo->UnmapSharedBuffer
|
||||
| | VirtioRingUninit
|
||||
v |
|
||||
+-----------------------------+
|
||||
|
|
Loading…
Reference in New Issue