diff options
| author | Akihiko Odaki <akihiko.odaki@daynix.com> | 2023-02-23 19:20:06 +0900 |
|---|---|---|
| committer | Jason Wang <jasowang@redhat.com> | 2023-03-10 15:35:38 +0800 |
| commit | 55daf493f7659b512e668f61ce4561dc60a27302 (patch) | |
| tree | c69718bbea9a39bfb0f63f05ccd493adcfd5c10f /hw/net/net_tx_pkt.h | |
| parent | 481c52320a26e2e3a3c8a1cdac3d1460b9b15d13 (diff) | |
| download | focaccia-qemu-55daf493f7659b512e668f61ce4561dc60a27302.tar.gz focaccia-qemu-55daf493f7659b512e668f61ce4561dc60a27302.zip | |
hw/net/net_tx_pkt: Automatically determine if virtio-net header is used
The new function qemu_get_using_vnet_hdr() allows to automatically determine if virtio-net header is used. 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 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/net/net_tx_pkt.h b/hw/net/net_tx_pkt.h index 2e38a5fa69..8d3faa42fb 100644 --- a/hw/net/net_tx_pkt.h +++ b/hw/net/net_tx_pkt.h @@ -32,10 +32,9 @@ struct NetTxPkt; * @pkt: packet pointer * @pci_dev: PCI device processing this packet * @max_frags: max tx ip fragments - * @has_virt_hdr: device uses virtio header. */ void net_tx_pkt_init(struct NetTxPkt **pkt, PCIDevice *pci_dev, - uint32_t max_frags, bool has_virt_hdr); + uint32_t max_frags); /** * Clean all tx packet resources. |