| 2202 | } |
| 2203 | |
| 2204 | static struct rack_sendmap * |
| 2205 | rack_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 */ |
| 2221 | static struct rack_sendmap * |
no test coverage detected