]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/net: virtio-net: Initialize nc->do_not_pad to true
authorBin Meng <bmeng.cn@gmail.com>
Wed, 17 Mar 2021 06:26:30 +0000 (14:26 +0800)
committerJason Wang <jasowang@redhat.com>
Mon, 22 Mar 2021 09:34:31 +0000 (17:34 +0800)
commitd4c6293041ee7941191a91e4ca2d2af4b0959599
tree6aa161b648eb629e2cae8ceffad5a1a198c45f6d
parent969e50b61a285b0cc8dea6d4d2ade3f758d5ecc7
hw/net: virtio-net: Initialize nc->do_not_pad to true

For virtio-net, there is no need to pad the Ethernet frame size to
60 bytes before sending to it.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/virtio-net.c