[PATCH v6 5/8] hw/net: pcnet: Remove the logic of padding short frames in the receive path

2023-03-01 Thread bmeng . cn
From: Bin Meng Now that we have implemented unified short frames padding in the QEMU networking codes, remove the same logic in the NIC codes. Signed-off-by: Bin Meng Signed-off-by: Bin Meng --- hw/net/pcnet.c | 9 - 1 file changed, 9 deletions(-) diff --git a/hw/net/pcnet.c b/hw/ne

[PATCH v6 3/8] hw/net: i82596: Remove the logic of padding short frames in the receive path

2023-03-01 Thread bmeng . cn
From: Bin Meng Now that we have implemented unified short frames padding in the QEMU networking codes, remove the same logic in the NIC codes. Signed-off-by: Bin Meng Signed-off-by: Bin Meng --- hw/net/i82596.c | 18 -- 1 file changed, 18 deletions(-) diff --git a/hw/net/i82

[PATCH v6 6/8] hw/net: rtl8139: Remove the logic of padding short frames in the receive path

2023-03-01 Thread bmeng . cn
From: Bin Meng Now that we have implemented unified short frames padding in the QEMU networking codes, remove the same logic in the NIC codes. Signed-off-by: Bin Meng Signed-off-by: Bin Meng --- hw/net/rtl8139.c | 12 1 file changed, 12 deletions(-) diff --git a/hw/net/rtl8139.

[PATCH v6 2/8] hw/net: vmxnet3: Remove the logic of padding short frames in the receive path

2023-03-01 Thread bmeng . cn
From: Bin Meng Now that we have implemented unified short frames padding in the QEMU networking codes, remove the same logic in the NIC codes. This actually reverts commit 40a87c6c9b11ef9c14e0301f76abf0eb2582f08e. Signed-off-by: Bin Meng Signed-off-by: Bin Meng --- hw/net/vmxnet3.c | 10 ---

[PATCH v6 8/8] hw/net: sunhme: Remove the logic of padding short frames in the receive path

2023-03-01 Thread bmeng . cn
From: Bin Meng Now that we have implemented unified short frames padding in the QEMU networking codes, remove the same logic in the NIC codes. Signed-off-by: Bin Meng Signed-off-by: Bin Meng --- hw/net/sunhme.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/hw/net/sunhme.c b

[PATCH v6 0/8] net: Pad short frames for network backends

2023-03-01 Thread bmeng . cn
From: Bin Meng The minimum Ethernet frame length is 60 bytes. For short frames with smaller length like ARP packets (only 42 bytes), on a real world NIC it can choose either padding its length to the minimum required 60 bytes, or sending it out directly to the wire. Such behavior can be hardcoded

[PATCH v6 7/8] hw/net: sungem: Remove the logic of padding short frames in the receive path

2023-03-01 Thread bmeng . cn
From: Bin Meng Now that we have implemented unified short frames padding in the QEMU networking codes, remove the same logic in the NIC codes. Signed-off-by: Bin Meng Signed-off-by: Bin Meng --- hw/net/sungem.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/hw/net/sungem.

[PATCH v6 4/8] hw/net: ne2000: Remove the logic of padding short frames in the receive path

2023-03-01 Thread bmeng . cn
From: Bin Meng Now that we have implemented unified short frames padding in the QEMU networking codes, remove the same logic in the NIC codes. Signed-off-by: Bin Meng Signed-off-by: Bin Meng --- hw/net/ne2000.c | 12 1 file changed, 12 deletions(-) diff --git a/hw/net/ne2000.c

[PATCH v6 1/8] hw/net: e1000: Remove the logic of padding short frames in the receive path

2023-03-01 Thread bmeng . cn
From: Bin Meng Now that we have implemented unified short frames padding in the QEMU networking codes, remove the same logic in the NIC codes. This actually reverts commit 78aeb23eded2d0b765bf9145c71f80025b568acd. Signed-off-by: Bin Meng Signed-off-by: Bin Meng --- hw/net/e1000.c | 11 +