Skip to content

rtl8139: honor large send MSS value

Stefan Hajnoczi qemu-devel 3 versions – Applied

Status from this message: Thanks, applied to qemu.git/master!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 13 repliesApplied
  2. v21 patch 0 repliesSuperseded
  3. v11 patch 17 repliesSuperseded

Changes in v3 from the cover letter

- Add Patch 1 to avoid clobbering tx descriptor bits
- Add Patch 2 to avoid confusing tx command modes
- Exclude IP and TCP headers from large send MSS value

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/3rtl8139: avoid clobbering tx descriptor bitshw/net/rtl8139.c+10 -73 replies
2/3rtl8139: keep Tx command mode 0 and 1 separatehw/net/rtl8139.c+2 -22 replies
3/3rtl8139: honor large send MSS valuehw/net/rtl8139.c+12 -146 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-DaudéTobias FiebigJason Wang
SeriesT-b
1/3R-b A-b
2/3R-b A-b
3/3R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH for-7.2 v3 0/3] rtl8139: honor large send MSS value

v3:
- Add Patch 1 to avoid clobbering tx descriptor bits
- Add Patch 2 to avoid confusing tx command modes
- Exclude IP and TCP headers from large send MSS value

The rtl8139 large send offload currently does not honor the MSS value provided by the driver. This is a problem especially when the MTU is small because IP fragmentation occurs and leads to poor performance.

These patches make use of the large send MSS value.

I have done basic testing by running the following Python code inside the guest:

import socket
s = socket.socket()
s.connect(('10.0.2.2', 1234))
buf = b'A' * 4096
s.send(buf)

The device sees a 4150 byte tx descriptor that results in the transmission of 3 Ethernet frames with sizes of 1514, 1514, and 1230 bytes when the large send MSS value is 1460 bytes.

Stefan Hajnoczi (3):
rtl8139: avoid clobbering tx descriptor bits
rtl8139: keep Tx command mode 0 and 1 separate
rtl8139: honor large send MSS value

 hw/net/rtl8139.c | 47 ++++++++++++++++++++++++-----------------------
 1 file changed, 24 insertions(+), 23 deletions(-)
Signature · 1 line
2.38.1