Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107352076
D31536.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
755 B
Referenced Files
None
Subscribers
None
D31536.diff
View Options
diff --git a/sys/kern/uipc_ktls.c b/sys/kern/uipc_ktls.c
--- a/sys/kern/uipc_ktls.c
+++ b/sys/kern/uipc_ktls.c
@@ -1633,12 +1633,12 @@
*/
if (tls->mode == TCP_TLS_MODE_SW) {
m->m_flags |= M_NOTREADY;
- m->m_epg_nrdy = m->m_epg_npgs;
if (__predict_false(tls_len == 0)) {
/* TLS 1.0 empty fragment. */
- *enq_cnt += 1;
+ m->m_epg_nrdy = 1;
} else
- *enq_cnt += m->m_epg_npgs;
+ m->m_epg_nrdy = m->m_epg_npgs;
+ *enq_cnt += m->m_epg_nrdy;
}
}
}
@@ -2181,11 +2181,7 @@
break;
}
- if (__predict_false(m->m_epg_npgs == 0)) {
- /* TLS 1.0 empty fragment. */
- npages++;
- } else
- npages += m->m_epg_npgs;
+ npages += m->m_epg_nrdy;
/*
* Drop a reference to the session now that it is no
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 13, 10:05 PM (20 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15787850
Default Alt Text
D31536.diff (755 B)
Attached To
Mode
D31536: ktls: Fix accounting for TLS 1.0 empty fragments.
Attached
Detach File
Event Timeline
Log In to Comment