diff options
| author | Akihiko Odaki <akihiko.odaki@daynix.com> | 2023-05-23 11:42:52 +0900 |
|---|---|---|
| committer | Jason Wang <jasowang@redhat.com> | 2023-05-23 15:20:15 +0800 |
| commit | 163246e1ce9607251ed52df1131af25d608de782 (patch) | |
| tree | 26843ff64636460547896c2f17dc19e1250e0d30 /hw/net/net_tx_pkt.h | |
| parent | 8d689f6aae8be096b4a1859be07c1b083865f755 (diff) | |
| download | focaccia-qemu-163246e1ce9607251ed52df1131af25d608de782.tar.gz focaccia-qemu-163246e1ce9607251ed52df1131af25d608de782.zip | |
hw/net/net_tx_pkt: Decouple implementation from PCI
This is intended to be followed by another change for the interface.
It also fixes the leak of memory mapping when the specified memory is
partially mapped.
Fixes: e263cd49c7 ("Packet abstraction for VMWARE network devices")
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hw/net/net_tx_pkt.h')
| -rw-r--r-- | hw/net/net_tx_pkt.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/net/net_tx_pkt.h b/hw/net/net_tx_pkt.h index e5ce6f20bc..5eb123ef90 100644 --- a/hw/net/net_tx_pkt.h +++ b/hw/net/net_tx_pkt.h @@ -154,6 +154,15 @@ void net_tx_pkt_dump(struct NetTxPkt *pkt); void net_tx_pkt_reset(struct NetTxPkt *pkt, PCIDevice *dev); /** + * Unmap a fragment mapped from a PCI device. + * + * @context: PCI device owning fragment + * @base: pointer to fragment + * @len: length of fragment + */ +void net_tx_pkt_unmap_frag_pci(void *context, void *base, size_t len); + +/** * Send packet to qemu. handles sw offloads if vhdr is not supported. * * @pkt: packet |