Home
last modified time | relevance | path

Searched refs:credit (Results 1 – 3 of 3) sorted by relevance

/samples/bpf/
A Dhbm_out_kern.c64 int credit; in _hbm_out_cg() local
95 credit = qdp->credit; in _hbm_out_cg()
105 credit = MAX_CREDIT; in _hbm_out_cg()
107 credit = new_credit; in _hbm_out_cg()
109 credit -= len; in _hbm_out_cg()
110 qdp->credit = credit; in _hbm_out_cg()
124 if (credit < -DROP_THRESH || in _hbm_out_cg()
132 } else if (credit < 0) { in _hbm_out_cg()
135 if (credit < -MARK_THRESH) in _hbm_out_cg()
151 if (-credit >= MARK_THRESH + in _hbm_out_cg()
[all …]
A Dhbm.h15 int credit; /* In bytes */ member
A Dhbm_kern.h139 qdp->credit = INIT_CREDIT; in hbm_init_vqueue()
151 qdp->credit = 0; // not used in hbm_init_edt_vqueue()
163 int credit) in hbm_update_stats() argument
195 __sync_add_and_fetch(&(qsp->sum_credit), credit); in hbm_update_stats()

Completed in 4 milliseconds