Lines Matching +full:static +full:- +full:beta
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2007-2008
6 * Copyright (c) 2009-2010 Lawrence Stewart <lstewart@freebsd.org>
114 refcount_acquire(&algo->cc_refcount);
121 refcount_release(&algo->cc_refcount);
152 static int
162 strlcpy(default_cc, CC_DEFAULT_ALGO()->name, sizeof(default_cc));
170 if (error != 0 || req->newptr == NULL)
177 if (strncmp(default_cc, funcs->name, sizeof(default_cc)))
179 if (funcs->flags & CC_MODULE_BEING_REMOVED) {
195 static int
217 linesz = snprintf(cp, bufsz, "\n%-16s%c %s\n", "CCmod", 'D',
220 bufsz -= linesz;
224 linesz = snprintf(cp, bufsz, "%-16s%c %u\n",
225 algo->name,
227 algo->cc_refcount);
233 bufsz -= linesz;
247 static int
259 strncmp(CC_DEFAULT_ALGO()->name,
260 remove_cc->name,
273 static void
281 * Returns non-zero on success, 0 on failure.
283 static int
299 KASSERT((remove_cc->flags & CC_MODULE_BEING_REMOVED),
304 if (remove_cc->cc_refcount != 0) {
313 * Returns non-zero on success, 0 on failure.
327 * Returns 0 on success, non-zero on failure.
344 strncmp(funcs->name, add_cc->name,
352 refcount_init(&add_cc->cc_refcount, 0);
360 if (strcmp(add_cc->name, CC_DEFAULT) == 0) {
371 static void
395 uint32_t mss = tcp_fixed_maxseg(ccv->tp);
405 pipe = tcp_compute_pipe(ccv->tp);
436 * not exit slow-start prematurely.
438 rw = tcp_compute_initwnd(tcp_fixed_maxseg(ccv->tp));
441 CCV(ccv, snd_cwnd)-(CCV(ccv, snd_cwnd)>>2));
473 mss = tcp_fixed_maxseg(ccv->tp);
498 pipe = tcp_compute_pipe(ccv->tp);
513 u_int incr = tcp_fixed_maxseg(ccv->tp);
519 * Regular in-order ACK, open the congestion window.
536 if (ccv->flags & CCF_ABC_SENTAWND)
537 ccv->flags &= ~CCF_ABC_SENTAWND;
553 u_int mss = tcp_fixed_maxseg(ccv->tp);
560 * Regular in-order ACK, open the congestion window.
575 * In slow-start with ABC enabled and no RTO in sight?
586 if (ccv->flags & CCF_USE_LOCAL_ABC)
587 abc_val = ccv->labc;
591 incr = min(ccv->bytes_this_ack,
592 ccv->nsegs * abc_val * mss);
594 incr = min(ccv->bytes_this_ack, mss);
607 (ccv->flags & CCF_CWND_LIMITED)) {
616 static int
625 algo->flags |= CC_MODULE_BEING_REMOVED;
631 * Handles kld related events. Returns 0 on success, non-zero on failure.
644 if ((algo->cc_data_sz == NULL) && (algo->cb_init != NULL)) {
653 if (algo->mod_init != NULL)
654 err = algo->mod_init();
670 /* Even with -f we can't unload if its the default */
677 * If -f was used and users are still attached to
682 if ((err == 0) && (algo->mod_destroy != NULL)) {
683 algo->mod_destroy();
747 "Enable draft-ietf-tcpm-alternativebackoff-ecn (TCP Alternative Backoff with ECN)");
752 "Apply standard beta instead of ABE-beta during ECN-signalled congestion "