MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sballoc_ktls_rx

Function sballoc_ktls_rx

freebsd/kern/uipc_sockbuf.c:347–363  ·  view source on GitHub ↗

* Similar to sballoc/sbfree but does not adjust state associated with * the sb_mb chain such as sb_fnrdy or sb_sndptr*. Also assumes mbufs * are not ready. */

Source from the content-addressed store, hash-verified

345 * are not ready.
346 */
347void
348sballoc_ktls_rx(struct sockbuf *sb, struct mbuf *m)
349{
350
351 SOCKBUF_LOCK_ASSERT(sb);
352
353 sb->sb_ccc += m->m_len;
354 sb->sb_tlscc += m->m_len;
355
356 sb->sb_mbcnt += MSIZE;
357 sb->sb_mcnt += 1;
358
359 if (m->m_flags & M_EXT) {
360 sb->sb_mbcnt += m->m_ext.ext_size;
361 sb->sb_ccnt += 1;
362 }
363}
364
365void
366sbfree_ktls_rx(struct sockbuf *sb, struct mbuf *m)

Callers 2

ktls_detach_recordFunction · 0.85
sbcompress_ktls_rxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected