| 1786 | } |
| 1787 | |
| 1788 | void |
| 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 | |
| 1810 | uint16_t |
| 1811 | tcp_hpts_delayedby(struct inpcb *inp){ |
nothing calls this directly
no test coverage detected