/kernel/linux/linux-5.10/samples/bpf/ |
H A D | hbm_out_kern.c | 36 * If the credit is below the drop threshold, the packet is dropped. If it 64 int credit; in _hbm_out_cg() local 95 credit = qdp->credit; in _hbm_out_cg() 99 * the new credit, so we should not add it ourselves in _hbm_out_cg() 103 new_credit = credit + CREDIT_PER_NS(delta, qdp->rate); 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 in _hbm_out_cg() [all...] |
H A D | hbm_kern.h | 141 qdp->credit = INIT_CREDIT; in hbm_init_vqueue() 153 qdp->credit = 0; // not used in hbm_init_edt_vqueue() 165 int credit) in hbm_update_stats() 197 __sync_add_and_fetch(&(qsp->sum_credit), credit); in hbm_update_stats() 157 hbm_update_stats(struct hbm_queue_stats *qsp, int len, unsigned long long curtime, bool congestion_flag, bool drop_flag, bool cwr_flag, bool ecn_ce_flag, struct hbm_pkt_info *pkti, int credit) hbm_update_stats() argument
|
/kernel/linux/linux-6.6/samples/bpf/ |
H A D | hbm_out_kern.c | 36 * If the credit is below the drop threshold, the packet is dropped. If it 64 int credit; in _hbm_out_cg() local 95 credit = qdp->credit; in _hbm_out_cg() 99 * the new credit, so we should not add it ourselves in _hbm_out_cg() 103 new_credit = credit + CREDIT_PER_NS(delta, qdp->rate); 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 in _hbm_out_cg() [all...] |
H A D | hbm_kern.h | 139 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() 195 __sync_add_and_fetch(&(qsp->sum_credit), credit); in hbm_update_stats() 155 hbm_update_stats(struct hbm_queue_stats *qsp, int len, unsigned long long curtime, bool congestion_flag, bool drop_flag, bool cwr_flag, bool ecn_ce_flag, struct hbm_pkt_info *pkti, int credit) hbm_update_stats() argument
|
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | xt_limit.c | 20 uint32_t credit; member 35 amount of credit `credit' and the most credit you can ever have 39 `prev' tracks the last packet hit: you gain one credit per jiffy. 40 If you get credit balance more than this, the extra credit is 72 priv->credit += (now - xchg(&priv->prev, now)) * CREDITS_PER_JIFFY; in limit_mt() 73 if (priv->credit > r->credit_cap) in limit_mt() 74 priv->credit in limit_mt() 143 u_int32_t credit; global() member [all...] |
H A D | xt_hashlimit.c | 101 u_int64_t credit; member 442 amount of credit `credit' and the most credit you can ever have 446 `prev' tracks the last packet hit: you gain one credit per jiffy. 447 If you get credit balance more than this, the extra credit is 556 u64 tmp = dh->rateinfo.credit; in rateinfo_recalc() 557 dh->rateinfo.credit += CREDITS_PER_JIFFY_BYTES * delta; in rateinfo_recalc() 559 if (tmp >= dh->rateinfo.credit) {/* overflo in rateinfo_recalc() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | test_spin_lock.c | 36 int credit; member 52 volatile int credit = 0, max_credit = 100, pkt_len = 64; in bpf_spin_lock_test() local 85 q->credit += CREDIT_PER_NS(curtime - q->lasttime, q->rate); in bpf_spin_lock_test() 87 if (q->credit > max_credit) in bpf_spin_lock_test() 88 q->credit = max_credit; in bpf_spin_lock_test() 89 q->credit -= pkt_len; in bpf_spin_lock_test() 90 credit = q->credit; in bpf_spin_lock_test() 93 __sink(credit); in bpf_spin_lock_test()
|
/kernel/linux/linux-5.10/drivers/xen/ |
H A D | balloon.c | 278 long credit; in reserve_additional_memory() local 283 credit = balloon_stats.target_pages + balloon_stats.target_unpopulated in reserve_additional_memory() 290 if (credit <= 0) in reserve_additional_memory() 293 balloon_hotplug = round_up(credit, PAGES_PER_SECTION); in reserve_additional_memory() 500 * needed, or if the credit has changed while state is not BP_DONE. 502 static bool balloon_thread_cond(long credit) in balloon_thread_cond() argument 505 credit = 0; in balloon_thread_cond() 507 return current_credit() != credit || kthread_should_stop(); in balloon_thread_cond() 518 long credit; in balloon_thread() local 536 credit in balloon_thread() 776 long credit, last_credit = 0; balloon_wait_finish() local [all...] |
/kernel/linux/linux-6.6/drivers/xen/ |
H A D | balloon.c | 262 long credit; in reserve_additional_memory() local 267 credit = balloon_stats.target_pages + balloon_stats.target_unpopulated in reserve_additional_memory() 274 if (credit <= 0) in reserve_additional_memory() 277 balloon_hotplug = round_up(credit, PAGES_PER_SECTION); in reserve_additional_memory() 484 * needed, or if the credit has changed while state is not BP_DONE. 486 static bool balloon_thread_cond(long credit) in balloon_thread_cond() argument 489 credit = 0; in balloon_thread_cond() 491 return current_credit() != credit || kthread_should_stop(); in balloon_thread_cond() 502 long credit; in balloon_thread() local 520 credit in balloon_thread() 752 long credit, last_credit = 0; balloon_wait_finish() local [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | test_spin_lock.c | 35 int credit; member 51 volatile int credit = 0, max_credit = 100, pkt_len = 64; in bpf_sping_lock_test() local 84 q->credit += CREDIT_PER_NS(curtime - q->lasttime, q->rate); in bpf_sping_lock_test() 86 if (q->credit > max_credit) in bpf_sping_lock_test() 87 q->credit = max_credit; in bpf_sping_lock_test() 88 q->credit -= pkt_len; in bpf_sping_lock_test() 89 credit = q->credit; in bpf_sping_lock_test()
|
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | xt_limit.c | 18 u32 credit; member 33 amount of credit `credit' and the most credit you can ever have 37 `prev' tracks the last packet hit: you gain one credit per jiffy. 38 If you get credit balance more than this, the extra credit is 72 if ((READ_ONCE(priv->credit) < r->cost) && (READ_ONCE(priv->prev) == jiffies)) in limit_mt() 78 old_credit = READ_ONCE(priv->credit); in limit_mt() 89 } while (cmpxchg(&priv->credit, old_credi in limit_mt() 149 u_int32_t credit; global() member [all...] |
H A D | xt_hashlimit.c | 101 u_int64_t credit; member 442 amount of credit `credit' and the most credit you can ever have 446 `prev' tracks the last packet hit: you gain one credit per jiffy. 447 If you get credit balance more than this, the extra credit is 556 u64 tmp = dh->rateinfo.credit; in rateinfo_recalc() 557 dh->rateinfo.credit += CREDITS_PER_JIFFY_BYTES * delta; in rateinfo_recalc() 559 if (tmp >= dh->rateinfo.credit) {/* overflo in rateinfo_recalc() [all...] |
/kernel/linux/linux-5.10/net/bridge/netfilter/ |
H A D | ebt_limit.c | 42 info->credit += (now - xchg(&info->prev, now)) * CREDITS_PER_JIFFY; in ebt_limit_mt() 43 if (info->credit > info->credit_cap) in ebt_limit_mt() 44 info->credit = info->credit_cap; in ebt_limit_mt() 46 if (info->credit >= info->cost) { in ebt_limit_mt() 48 info->credit -= info->cost; in ebt_limit_mt() 83 info->credit = user2credits(info->avg * info->burst); in ebt_limit_mt_check() 98 compat_uint_t credit, credit_cap, cost; member
|
/kernel/linux/linux-6.6/net/bridge/netfilter/ |
H A D | ebt_limit.c | 42 info->credit += (now - xchg(&info->prev, now)) * CREDITS_PER_JIFFY; in ebt_limit_mt() 43 if (info->credit > info->credit_cap) in ebt_limit_mt() 44 info->credit = info->credit_cap; in ebt_limit_mt() 46 if (info->credit >= info->cost) { in ebt_limit_mt() 48 info->credit -= info->cost; in ebt_limit_mt() 83 info->credit = user2credits(info->avg * info->burst); in ebt_limit_mt_check() 98 compat_uint_t credit, credit_cap, cost; member
|
/kernel/linux/linux-5.10/drivers/infiniband/sw/rdmavt/ |
H A D | rc.c | 52 * Convert the AETH credit code into the number of credits. 101 * Set the credit field to the invalid value. in rvt_compute_aeth() 133 * Binary search the credit table to find the code to in rvt_compute_aeth() 166 u32 credit = (aeth >> IB_AETH_CREDIT_SHIFT) & IB_AETH_CREDIT_MASK; in rvt_get_credit() local 170 * If the credit is invalid, we can send in rvt_get_credit() 172 * honor the credit field. in rvt_get_credit() 174 if (credit == IB_AETH_CREDIT_INVAL) { in rvt_get_credit() 183 /* Compute new LSN (i.e., MSN + credit) */ in rvt_get_credit() 184 credit = (aeth + credit_table[credit]) in rvt_get_credit() [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/sw/rdmavt/ |
H A D | rc.c | 10 * Convert the AETH credit code into the number of credits. 59 * Set the credit field to the invalid value. in rvt_compute_aeth() 91 * Binary search the credit table to find the code to in rvt_compute_aeth() 124 u32 credit = (aeth >> IB_AETH_CREDIT_SHIFT) & IB_AETH_CREDIT_MASK; in rvt_get_credit() local 128 * If the credit is invalid, we can send in rvt_get_credit() 130 * honor the credit field. in rvt_get_credit() 132 if (credit == IB_AETH_CREDIT_INVAL) { in rvt_get_credit() 141 /* Compute new LSN (i.e., MSN + credit) */ in rvt_get_credit() 142 credit = (aeth + credit_table[credit]) in rvt_get_credit() [all...] |
/kernel/linux/linux-5.10/drivers/perf/ |
H A D | fsl_imx8_ddr_perf.c | 186 IMX8_DDR_PMU_EVENT_ATTR(lp-read-credit-cnt, 0x10), 187 IMX8_DDR_PMU_EVENT_ATTR(hp-read-credit-cnt, 0x11), 188 IMX8_DDR_PMU_EVENT_ATTR(write-credit-cnt, 0x12), 194 IMX8_DDR_PMU_EVENT_ATTR(hp-xact-credit, 0x25), 196 IMX8_DDR_PMU_EVENT_ATTR(lp-xact-credit, 0x27), 197 IMX8_DDR_PMU_EVENT_ATTR(wr-xact-credit, 0x29),
|
/kernel/linux/linux-6.6/drivers/perf/ |
H A D | fsl_imx8_ddr_perf.c | 238 IMX8_DDR_PMU_EVENT_ATTR(lp-read-credit-cnt, 0x10), 239 IMX8_DDR_PMU_EVENT_ATTR(hp-read-credit-cnt, 0x11), 240 IMX8_DDR_PMU_EVENT_ATTR(write-credit-cnt, 0x12), 246 IMX8_DDR_PMU_EVENT_ATTR(hp-xact-credit, 0x25), 248 IMX8_DDR_PMU_EVENT_ATTR(lp-xact-credit, 0x27), 249 IMX8_DDR_PMU_EVENT_ATTR(wr-xact-credit, 0x29),
|
/kernel/linux/linux-5.10/include/uapi/linux/netfilter/ |
H A D | xt_limit.h | 20 __u32 credit; /* moved to xt_limit_priv */ member
|
/kernel/linux/linux-5.10/include/uapi/linux/netfilter_bridge/ |
H A D | ebt_limit.h | 21 __u32 credit; member
|
/kernel/linux/linux-6.6/include/uapi/linux/netfilter/ |
H A D | xt_limit.h | 20 __u32 credit; /* moved to xt_limit_priv */ member
|
/kernel/linux/linux-6.6/include/uapi/linux/netfilter_bridge/ |
H A D | ebt_limit.h | 21 __u32 credit; member
|
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/netfilter_bridge/ |
H A D | ebt_limit.h | 28 __u32 credit; member
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/netfilter/ |
H A D | xt_limit.h | 28 __u32 credit; member
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/netfilter_bridge/ |
H A D | ebt_limit.h | 28 __u32 credit; member
|