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

Function __tcp_set_hpts

freebsd/netinet/tcp_hpts.c:1788–1808  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1786}
1787
1788void
1789__tcp_set_hpts(struct inpcb *inp, int32_t line)
1790{
1791 struct tcp_hpts_entry *hpts;
1792
1793 INP_WLOCK_ASSERT(inp);
1794 hpts = tcp_hpts_lock(inp);
1795 if ((inp->inp_in_hpts == 0) &&
1796 (inp->inp_hpts_cpu_set == 0)) {
1797 inp->inp_hpts_cpu = hpts_cpuid(inp);
1798 inp->inp_hpts_cpu_set = 1;
1799 }
1800 mtx_unlock(&hpts->p_mtx);
1801 hpts = tcp_input_lock(inp);
1802 if ((inp->inp_input_cpu_set == 0) &&
1803 (inp->inp_in_input == 0)) {
1804 inp->inp_input_cpu = hpts_cpuid(inp);
1805 inp->inp_input_cpu_set = 1;
1806 }
1807 mtx_unlock(&hpts->p_mtx);
1808}
1809
1810uint16_t
1811tcp_hpts_delayedby(struct inpcb *inp){

Callers

nothing calls this directly

Calls 4

tcp_hpts_lockFunction · 0.85
hpts_cpuidFunction · 0.85
tcp_input_lockFunction · 0.85
mtx_unlockFunction · 0.50

Tested by

no test coverage detected