tap: Remove qemu_using_vnet_hdr()
commit4b52d63249a508dd927222ffac1a868d38681fc5
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Sun, 28 Apr 2024 07:00:45 +0000 (28 16:00 +0900)
committerJason Wang <jasowang@redhat.com>
Tue, 4 Jun 2024 07:14:25 +0000 (4 15:14 +0800)
tree5f19fc43f34d0b1029d1cee2aaa4a1b3bc28a051
parent52a7ff526964e7810ec1ccc71efbdd60952dd20b
tap: Remove qemu_using_vnet_hdr()

Since qemu_set_vnet_hdr_len() is always called when
qemu_using_vnet_hdr() is called, we can merge them and save some code.

For consistency, express that the virtio-net header is not in use by
returning 0 with qemu_get_vnet_hdr_len() instead of having a dedicated
function, qemu_get_using_vnet_hdr().

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/e1000e.c
hw/net/igb.c
hw/net/net_tx_pkt.c
hw/net/virtio-net.c
hw/net/vmxnet3.c
include/net/net.h
net/dump.c
net/net.c
net/netmap.c
net/tap.c