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

Function bbr_alloc_full_limit

freebsd/netinet/tcp_stacks/bbr.c:3313–3326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3311}
3312
3313static struct bbr_sendmap *
3314bbr_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 */
3329static struct bbr_sendmap *

Callers 4

bbr_timeout_tlpFunction · 0.85
bbr_update_entryFunction · 0.85
bbr_log_outputFunction · 0.85
bbr_proc_sack_blkFunction · 0.85

Calls 1

bbr_allocFunction · 0.85

Tested by

no test coverage detected