virtio-net: Shrink header byte swapping buffer
commit942f420e5cef8cba5daffd6827e6e55e2d17de76
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Sun, 28 Apr 2024 07:00:53 +0000 (28 16:00 +0900)
committerJason Wang <jasowang@redhat.com>
Tue, 4 Jun 2024 07:14:26 +0000 (4 15:14 +0800)
tree8134c940c3ef06df5240151be2bb334a357fac74
parentad57f700f469ba1b621274053973f76f8f97cf83
virtio-net: Shrink header byte swapping buffer

Byte swapping is only performed for the part of header shared with the
legacy standard and the buffer only needs to cover it.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/virtio-net.c