rtl8139: honor large send MSS value
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
- v3 Latest3 patches 13 repliesApplied
- v21 patch 0 repliesSuperseded
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | rtl8139: avoid clobbering tx descriptor bitshw/ | +10 | 3 replies | |
| 2/3 | rtl8139: keep Tx command mode 0 and 1 separatehw/ | +2 | 2 replies | |
| 3/3 | rtl8139: honor large send MSS valuehw/ | +12 | 6 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Philippe Mathieu-Daudé | Tobias Fiebig | Jason Wang |
|---|---|---|---|
| Series | T-b | ||
| 1/3 | R-b | A-b | |
| 2/3 | R-b | A-b | |
| 3/3 | R-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.
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