Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143107097
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
Tue, Jan 27, 1:42 AM (19 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28048045
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