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

Function syncache_drop

freebsd/netinet/tcp_syncache.c:415–434  ·  view source on GitHub ↗

* Remove and free entry from syncache bucket row. * Expects locked syncache head. */

Source from the content-addressed store, hash-verified

413 * Expects locked syncache head.
414 */
415static void
416syncache_drop(struct syncache *sc, struct syncache_head *sch)
417{
418
419 SCH_LOCK_ASSERT(sch);
420
421 TCPSTATES_DEC(TCPS_SYN_RECEIVED);
422 TAILQ_REMOVE(&sch->sch_bucket, sc, sc_hash);
423 sch->sch_length--;
424
425#ifdef TCP_OFFLOAD
426 if (ADDED_BY_TOE(sc)) {
427 struct toedev *tod = sc->sc_tod;
428
429 tod->tod_syncache_removed(tod, sc->sc_todctx);
430 }
431#endif
432
433 syncache_free(sc);
434}
435
436/*
437 * Engage/reengage time on bucket row.

Callers 7

syncache_destroyFunction · 0.85
syncache_insertFunction · 0.85
syncache_timerFunction · 0.85
syncache_chkrstFunction · 0.85
syncache_badackFunction · 0.85
syncache_unreachFunction · 0.85
syncache_addFunction · 0.85

Calls 1

syncache_freeFunction · 0.85

Tested by

no test coverage detected