Skip to content

RFC net: Pad short frames to minimum size (60 bytes)

Bin Meng qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net: Pad short frames to minimum size (60 bytes)net/net.c+9 -04 replies
2/3Revert "e1000: Pad short frames to minimum size (60 bytes)"hw/net/e1000.c+1 -90 replies
3/3Revert "vmxnet3: Pad short frames to minimum size (60 bytes)"hw/net/vmxnet3.c+0 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/3] net: Pad short frames to minimum size (60 bytes)

From: Bin Meng <[email protected]>

The minimum Ethernet frame length is 60 bytes, and we should pad frames whose length is smaller to the minimum size.

This commit fixes the issue as seen with various ethernet models, that ARP requests get dropped, preventing the guest from becoming visible on the network.

The following 2 commits that attempted to workaround this issue in e1000 and vmxenet3 before, should be reverted.

commit 78aeb23eded2 ("e1000: Pad short frames to minimum size (60 bytes)") commit 40a87c6c9b11 ("vmxnet3: Pad short frames to minimum size (60 bytes)")

Bin Meng (3):
net: Pad short frames to minimum size (60 bytes) Revert "e1000: Pad short frames to minimum size (60 bytes)" Revert "vmxnet3: Pad short frames to minimum size (60 bytes)"

 hw/net/e1000.c   | 10 +---------
 hw/net/vmxnet3.c | 10 ----------
 net/net.c        |  9 +++++++++
 3 files changed, 10 insertions(+), 19 deletions(-)
Signature · 1 line
2.7.4