Skip to content

: TCP: The Road to Super TSO

David S. Miller netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9: TCP: The Road to Super TSOinclude/net/sock.h net/ipv4/tcp.c+7 -130 replies
2/9: TCP: The Road to Super TSOinclude/net/tcp.h net/ipv4/tcp_output.c+12 -70 replies
3/9: TCP: The Road to Super TSOinclude/net/tcp.h net/ipv4/tcp_output.c+132 -1310 replies
4/9: TCP: The Road to Super TSOinclude/net/tcp.h net/ipv4/tcp_input.c net/ipv4/tcp_output.c+11 -100 replies
5/9: TCP: The Road to Super TSOnet/ipv4/tcp_output.c+1 -00 replies
6/9: TCP: The Road to Super TSOinclude/net/tcp.h net/ipv4/tcp_output.c+52 -530 replies
7/9: TCP: The Road to Super TSOnet/ipv4/tcp_output.c+34 -340 replies
8/9: TCP: The Road to Super TSOinclude/net/tcp.h net/ipv4/tcp_output.c+5 -130 replies
9/9: TCP: The Road to Super TSOinclude/net/tcp.h net/ipv4/tcp_input.c net/ipv4/tcp_output.c+8 -250 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/9]: TCP: The Road to Super TSO

Some folks, notable the S2IO guys, get performance degradation from the Super TSO v2 patch (they get it from the first version as well). It's a real pain to spot what causes such things in such a huge patch... so I started splitting things up in a very fine grained manner so we can catch regressions more precisely.

There are several bugs spotted by this first set of 9 patches, and I'd really appreciate good high-quality testing reports. Please do not mail such reports privately to me, as some have done, always include [email protected], thanks a lot.

Herbert, I'm CC:'ing you because one of the bugs fixed here has to do with the TSO header COW'ing stuff you did. You missed one case where a skb_header_release() call was needed, namely tcp_fragment() where it does it's __skb_append().

John, I'm CC:'ing you because there are several cwnd handling related cures in here. I did _not_ fix the TSO cwnd growth bug yet in these patches, but it is at the very top of my TODO list for my next batch of work on this stuff. The most notable fix here is the bogus extra cwnd validation done by __tcp_push_pending_frames(). That validation should only occur if we _do_ send some packets, and tcp_write_xmit() takes care of that just fine. The other one is that the 'nonagle' argument to __tcp_push_pending_frames() is clobbered by it's tcp_skb_is_last() logic, causing TCP_NAGLE_PUSH to be used for all packets processed by tcp_write_xmit(), whoops...

Please help me review this stuff, thanks.

The patches will show up as followups to this email.