Searched refs:qdp (Results 1 – 3 of 3) sorted by relevance
71 struct hbm_vqueue *qdp; in _hbm_out_cg() local85 qdp = bpf_get_local_storage(&queue_state, 0); in _hbm_out_cg()86 if (!qdp) in _hbm_out_cg()88 else if (qdp->lasttime == 0) in _hbm_out_cg()89 hbm_init_vqueue(qdp, 1024); in _hbm_out_cg()94 bpf_spin_lock(&qdp->lock); in _hbm_out_cg()95 credit = qdp->credit; in _hbm_out_cg()96 delta = curtime - qdp->lasttime; in _hbm_out_cg()102 qdp->lasttime = curtime; in _hbm_out_cg()103 new_credit = credit + CREDIT_PER_NS(delta, qdp->rate); in _hbm_out_cg()[all …]
65 struct hbm_vqueue *qdp; in _hbm_out_cg() local83 qdp = bpf_get_local_storage(&queue_state, 0); in _hbm_out_cg()84 if (!qdp) in _hbm_out_cg()86 if (qdp->lasttime == 0) in _hbm_out_cg()87 hbm_init_edt_vqueue(qdp, 1024); in _hbm_out_cg()92 bpf_spin_lock(&qdp->lock); in _hbm_out_cg()93 delta = qdp->lasttime - curtime; in _hbm_out_cg()97 qdp->lasttime = curtime - BURST_SIZE_NS; in _hbm_out_cg()100 sendtime = qdp->lasttime; in _hbm_out_cg()101 delta_send = BYTES_TO_NS(len, qdp->rate); in _hbm_out_cg()[all …]
137 static __always_inline void hbm_init_vqueue(struct hbm_vqueue *qdp, int rate) in hbm_init_vqueue() argument140 qdp->lasttime = bpf_ktime_get_ns(); in hbm_init_vqueue()141 qdp->credit = INIT_CREDIT; in hbm_init_vqueue()142 qdp->rate = rate * 128; in hbm_init_vqueue()145 static __always_inline void hbm_init_edt_vqueue(struct hbm_vqueue *qdp, in hbm_init_edt_vqueue() argument152 qdp->lasttime = curtime - BURST_SIZE_NS; // support initial burst in hbm_init_edt_vqueue()153 qdp->credit = 0; // not used in hbm_init_edt_vqueue()154 qdp->rate = rate * 128; in hbm_init_edt_vqueue()