Home
last modified time | relevance | path

Searched refs:tbf_n_tok (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/uts/common/netinet/
H A Dip_mroute.h285 uint_t tbf_n_tok; /* no of tokens in bucket */ member
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip_mroute.c999 vifp->v_tbf->tbf_n_tok = 0; in add_vif()
2869 (ptrdiff_t)(vifp - ipst->ips_vifs), t->tbf_n_tok, p_len, in tbf_control()
2875 if (p_len <= t->tbf_n_tok) { in tbf_control()
2876 t->tbf_n_tok -= p_len; in tbf_control()
3000 if (len <= t->tbf_n_tok) { in tbf_process_q()
3005 t->tbf_n_tok -= len; in tbf_process_q()
3231 t->tbf_n_tok += (tm/1000) * vifp->v_rate_limit / 1024 / 8; in tbf_update_tokens()
3234 if (t->tbf_n_tok > MAX_BKT_SIZE) in tbf_update_tokens()
3235 t->tbf_n_tok = MAX_BKT_SIZE; in tbf_update_tokens()
3239 tm, t->tbf_n_tok, (ptrdiff_t)(vifp - ipst->ips_vifs)); in tbf_update_tokens()