Page MenuHomeFreeBSD

D31536.diff
No OneTemporary

D31536.diff

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

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)

Event Timeline