qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] net: Pad short frames to minimum size (60 bytes)
@ 2021-02-26 10:03 Bin Meng
  2021-02-26 10:03 ` [RFC PATCH 1/3] " Bin Meng
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Bin Meng @ 2021-02-26 10:03 UTC (permalink / raw)
  To: Jason Wang, Philippe Mathieu-Daudé, Peter Maydell,
	qemu-devel; +Cc: Bin Meng

From: Bin Meng <bin.meng@windriver.com>

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(-)

-- 
2.7.4



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-02-27  2:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-26 10:03 [RFC PATCH 0/3] net: Pad short frames to minimum size (60 bytes) Bin Meng
2021-02-26 10:03 ` [RFC PATCH 1/3] " Bin Meng
2021-02-26 10:29   ` Philippe Mathieu-Daudé
2021-02-26 11:51     ` Mark Cave-Ayland
2021-02-26 18:57   ` Peter Maydell
2021-02-27  2:00     ` Bin Meng
2021-02-26 10:03 ` [RFC PATCH 2/3] Revert "e1000: Pad short frames to minimum size (60 bytes)" Bin Meng
2021-02-26 10:03 ` [RFC PATCH 3/3] Revert "vmxnet3: " Bin Meng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).