aboutsummaryrefslogtreecommitdiff
path: root/pc-bios/s390-ccw/libc.c
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki@daynix.com>2023-02-23 19:20:07 +0900
committerJason Wang <jasowang@redhat.com>2023-03-10 15:35:38 +0800
commitaac8f89dba870bb263d05bb84c3d64e0204be092 (patch)
treeccf964dfe26aa3d8f9de8f8e4b9eb69213a9bbcc /pc-bios/s390-ccw/libc.c
parent55daf493f7659b512e668f61ce4561dc60a27302 (diff)
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 'pc-bios/s390-ccw/libc.c')
0 files changed, 0 insertions, 0 deletions