Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164819414
D43470.id132859.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
893 B
Referenced Files
None
Subscribers
None
D43470.id132859.diff
View Options
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -330,6 +330,7 @@
__func__, off));
sack_rxmit = 1;
sendalot = 1;
+ len = min(len, 4 * tp->t_maxseg)
TCPSTAT_INC(tcps_sack_rexmits);
TCPSTAT_ADD(tcps_sack_rexmit_bytes,
min(len, tcp_maxseg(tp)));
@@ -554,11 +555,14 @@
ipoptlen += ipsec_optlen;
#endif
- if ((tp->t_flags & TF_TSO) && V_tcp_do_tso && len > tp->t_maxseg &&
+ if ((len > tp->t_maxseg) &&
+ (tp->t_flags & TF_TSO) &&
+ V_tcp_do_tso &&
(tp->t_port == 0) &&
- ((tp->t_flags & TF_SIGNATURE) == 0) &&
- tp->rcv_numsacks == 0 && sack_rxmit == 0 &&
- ipoptlen == 0 && !(flags & TH_SYN))
+ !(tp->t_flags & TF_SIGNATURE) &&
+ (tp->rcv_numsacks == 0) &&
+ (ipoptlen == 0) &&
+ !(flags & TH_SYN))
tso = 1;
if (sack_rxmit) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 5, 5:03 AM (16 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35997228
Default Alt Text
D43470.id132859.diff (893 B)
Attached To
Mode
D43470: tcp: refactor cwnd during SACK transmissions and enable TSO
Attached
Detach File
Event Timeline
Log In to Comment