| 3311 | } |
| 3312 | |
| 3313 | static struct bbr_sendmap * |
| 3314 | bbr_alloc_full_limit(struct tcp_bbr *bbr) |
| 3315 | { |
| 3316 | if ((V_tcp_map_entries_limit > 0) && |
| 3317 | (bbr->r_ctl.rc_num_maps_alloced >= V_tcp_map_entries_limit)) { |
| 3318 | BBR_STAT_INC(bbr_alloc_limited); |
| 3319 | if (!bbr->alloc_limit_reported) { |
| 3320 | bbr->alloc_limit_reported = 1; |
| 3321 | BBR_STAT_INC(bbr_alloc_limited_conns); |
| 3322 | } |
| 3323 | return (NULL); |
| 3324 | } |
| 3325 | return (bbr_alloc(bbr)); |
| 3326 | } |
| 3327 | |
| 3328 | /* wrapper to allocate a sendmap entry, subject to a specific limit */ |
| 3329 | static struct bbr_sendmap * |
no test coverage detected