diff options
| author | Akihiko Odaki <akihiko.odaki@daynix.com> | 2023-02-23 19:20:07 +0900 |
|---|---|---|
| committer | Jason Wang <jasowang@redhat.com> | 2023-03-10 15:35:38 +0800 |
| commit | aac8f89dba870bb263d05bb84c3d64e0204be092 (patch) | |
| tree | ccf964dfe26aa3d8f9de8f8e4b9eb69213a9bbcc /hw/net/net_tx_pkt.h | |
| parent | 55daf493f7659b512e668f61ce4561dc60a27302 (diff) | |
| download | focaccia-qemu-aac8f89dba870bb263d05bb84c3d64e0204be092.tar.gz focaccia-qemu-aac8f89dba870bb263d05bb84c3d64e0204be092.zip | |
hw/net/net_rx_pkt: Remove net_rx_pkt_has_virt_hdr
When virtio-net header is not set, net_rx_pkt_get_vhdr() returns zero-filled virtio_net_hdr, which is actually valid. In fact, tap device uses zero-filled virtio_net_hdr when virtio-net header is not provided by the peer. Therefore, we can just remove net_rx_pkt_has_virt_hdr() and always assume NetTxPkt has a valid virtio-net header. 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')
0 files changed, 0 insertions, 0 deletions