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

Function rack_alloc_full_limit

freebsd/netinet/tcp_stacks/rack.c:2204–2218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2202}
2203
2204static struct rack_sendmap *
2205rack_alloc_full_limit(struct tcp_rack *rack)
2206{
2207 if ((V_tcp_map_entries_limit > 0) &&
2208 (rack->do_detection == 0) &&
2209 (rack->r_ctl.rc_num_maps_alloced >= V_tcp_map_entries_limit)) {
2210 counter_u64_add(rack_to_alloc_limited, 1);
2211 if (!rack->alloc_limit_reported) {
2212 rack->alloc_limit_reported = 1;
2213 counter_u64_add(rack_alloc_limited_conns, 1);
2214 }
2215 return (NULL);
2216 }
2217 return (rack_alloc(rack));
2218}
2219
2220/* wrapper to allocate a sendmap entry, subject to a specific limit */
2221static struct rack_sendmap *

Callers 3

rack_timeout_tlpFunction · 0.85
rack_update_entryFunction · 0.85
rack_log_outputFunction · 0.85

Calls 2

rack_allocFunction · 0.85
counter_u64_addFunction · 0.50

Tested by

no test coverage detected