Re: [PATCH] net/vmnet: Pad short Ethernet frames

2024-01-09 Thread William Hooper
On Mon, Jan 8, 2024 at 7:36 AM Philippe Mathieu-Daudé wrote: > Don't we want to initialize min_pktsz here ... > >min_pktsz = sizeof(min_pkt); > > > +if (eth_pad_short_frame(min_pkt, _pktsz, pkt, pktsz)) { > > ... because eth_pad_short_frame() update it? Thanks for the

[PATCH] net/vmnet: Pad short Ethernet frames

2024-01-06 Thread William Hooper
atch calls eth_pad_short_frame() to add padding, as in net/tap.c and net/slirp.c. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2058 Signed-off-by: William Hooper --- net/vmnet-common.m | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/net/vmnet-common.m b