Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145617700
D26008.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
865 B
Referenced Files
None
Subscribers
None
D26008.id.diff
View Options
Index: head/sys/netinet/tcp_syncache.c
===================================================================
--- head/sys/netinet/tcp_syncache.c
+++ head/sys/netinet/tcp_syncache.c
@@ -510,6 +510,9 @@
sch->sch_nextc = sc->sc_rxttime;
continue;
}
+ if (sc->sc_rxmits > V_tcp_ecn_maxretries) {
+ sc->sc_flags &= ~SCF_ECN;
+ }
if (sc->sc_rxmits > V_tcp_syncache.rexmt_limit) {
if ((s = tcp_log_addrs(&sc->sc_inc, NULL, NULL, NULL))) {
log(LOG_DEBUG, "%s; %s: Retransmits exhausted, "
@@ -1505,6 +1508,13 @@
sc->sc_tsreflect = to->to_tsval;
else
sc->sc_flags &= ~SCF_TIMESTAMP;
+ /*
+ * Disable ECN if needed.
+ */
+ if ((sc->sc_flags & SCF_ECN) &&
+ ((th->th_flags & (TH_ECE|TH_CWR)) != (TH_ECE|TH_CWR))) {
+ sc->sc_flags &= ~SCF_ECN;
+ }
#ifdef MAC
/*
* Since we have already unconditionally allocated label
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 23, 6:05 AM (20 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28951861
Default Alt Text
D26008.id.diff (865 B)
Attached To
Mode
D26008: Improve ECN negotiation when using the TCP SYN-cache
Attached
Detach File
Event Timeline
Log In to Comment