/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | ioam6.sh | 11 # and INPUT tests only use a two-node topology (alpha and beta), while GLOBAL 12 # tests use the entire three-node topology (alpha, beta, gamma). Each test is 269 ip netns del ioam-node-beta || true 281 ip netns add ioam-node-beta 285 peer name ioam-veth-betaL netns ioam-node-beta 286 ip link add name ioam-veth-betaR netns ioam-node-beta type veth \ 290 ip -netns ioam-node-beta link set ioam-veth-betaL name veth0 291 ip -netns ioam-node-beta link set ioam-veth-betaR name veth1 301 ip -netns ioam-node-beta addr add db01::1/64 dev veth0 302 ip -netns ioam-node-beta add [all...] |
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | tcp_htcp.c | 28 u8 beta; /* Fixed point arith, << 7 */ member 155 ca->beta = BETA_MIN; in htcp_beta_update() 162 ca->beta = (minRTT << 7) / maxRTT; in htcp_beta_update() 163 if (ca->beta < BETA_MIN) in htcp_beta_update() 164 ca->beta = BETA_MIN; in htcp_beta_update() 165 else if (ca->beta > BETA_MAX) in htcp_beta_update() 166 ca->beta = BETA_MAX; in htcp_beta_update() 168 ca->beta = BETA_MIN; in htcp_beta_update() 194 ca->alpha = 2 * factor * ((1 << 7) - ca->beta); in htcp_alpha_update() 200 * After we have the rtt data to calculate beta, w [all...] |
H A D | tcp_illinois.c | 51 u32 beta; /* Muliplicative decrease */ member 74 ca->beta = BETA_BASE; in tcp_illinois_init() 188 * If delay is small (10% of max) then beta = 1/8 189 * If delay is up to 80% of max then beta = 1/2 192 static u32 beta(u32 da, u32 dm) in beta() function 221 /* Update alpha and beta values once per RTT */ 229 ca->beta = BETA_BASE; in update_params() 235 ca->beta = beta(da, dm); in update_params() 250 ca->beta in tcp_illinois_state() [all...] |
H A D | tcp_bic.c | 21 #define BICTCP_BETA_SCALE 1024 /* Scale factor beta calculation 22 * max_cwnd = snd_cwnd * beta 32 static int beta = 819; /* = 819/1024 (BICTCP_BETA_SCALE) */ variable 42 module_param(beta, int, 0644); 43 MODULE_PARM_DESC(beta, "beta for multiplicative increase"); 170 ca->last_max_cwnd = (tp->snd_cwnd * (BICTCP_BETA_SCALE + beta)) in bictcp_recalc_ssthresh() 178 return max((tp->snd_cwnd * beta) / BICTCP_BETA_SCALE, 2U); in bictcp_recalc_ssthresh()
|
H A D | tcp_vegas.c | 45 static int beta = 4; variable 50 module_param(beta, int, 0644); 51 MODULE_PARM_DESC(beta, "upper bound of packets in network"); 253 if (diff > beta) { in tcp_vegas_cong_avoid()
|
H A D | tcp_cubic.c | 32 #define BICTCP_BETA_SCALE 1024 /* Scale factor beta calculation 33 * max_cwnd = snd_cwnd * beta 48 static int beta __read_mostly = 717; /* = 717/1024 (BICTCP_BETA_SCALE) */ 65 module_param(beta, int, 0644); 66 MODULE_PARM_DESC(beta, "beta for multiplicative increase"); 357 ca->last_max_cwnd = (tp->snd_cwnd * (BICTCP_BETA_SCALE + beta)) in bictcp_recalc_ssthresh() 362 return max((tp->snd_cwnd * beta) / BICTCP_BETA_SCALE, 2U); in bictcp_recalc_ssthresh() 503 beta_scale = 8*(BICTCP_BETA_SCALE+beta) / 3 in cubictcp_register() 504 / (BICTCP_BETA_SCALE - beta); in cubictcp_register() [all...] |
H A D | tcp_veno.c | 24 static const int beta = 3 << V_PARAM_SHIFT; variable 163 if (veno->diff < beta) { in tcp_veno_cong_avoid() 200 if (veno->diff < beta) in tcp_veno_ssthresh()
|
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | tcp_htcp.c | 28 u8 beta; /* Fixed point arith, << 7 */ member 155 ca->beta = BETA_MIN; in htcp_beta_update() 162 ca->beta = (minRTT << 7) / maxRTT; in htcp_beta_update() 163 if (ca->beta < BETA_MIN) in htcp_beta_update() 164 ca->beta = BETA_MIN; in htcp_beta_update() 165 else if (ca->beta > BETA_MAX) in htcp_beta_update() 166 ca->beta = BETA_MAX; in htcp_beta_update() 168 ca->beta = BETA_MIN; in htcp_beta_update() 194 ca->alpha = 2 * factor * ((1 << 7) - ca->beta); in htcp_alpha_update() 200 * After we have the rtt data to calculate beta, w [all...] |
H A D | tcp_illinois.c | 51 u32 beta; /* Muliplicative decrease */ member 74 ca->beta = BETA_BASE; in tcp_illinois_init() 188 * If delay is small (10% of max) then beta = 1/8 189 * If delay is up to 80% of max then beta = 1/2 192 static u32 beta(u32 da, u32 dm) in beta() function 221 /* Update alpha and beta values once per RTT */ 229 ca->beta = BETA_BASE; in update_params() 235 ca->beta = beta(da, dm); in update_params() 250 ca->beta in tcp_illinois_state() [all...] |
H A D | tcp_bic.c | 21 #define BICTCP_BETA_SCALE 1024 /* Scale factor beta calculation 22 * max_cwnd = snd_cwnd * beta 32 static int beta = 819; /* = 819/1024 (BICTCP_BETA_SCALE) */ variable 42 module_param(beta, int, 0644); 43 MODULE_PARM_DESC(beta, "beta for multiplicative increase"); 170 ca->last_max_cwnd = (tcp_snd_cwnd(tp) * (BICTCP_BETA_SCALE + beta)) in bictcp_recalc_ssthresh() 178 return max((tcp_snd_cwnd(tp) * beta) / BICTCP_BETA_SCALE, 2U); in bictcp_recalc_ssthresh()
|
H A D | tcp_vegas.c | 45 static int beta = 4; variable 50 module_param(beta, int, 0644); 51 MODULE_PARM_DESC(beta, "upper bound of packets in network"); 254 if (diff > beta) { in tcp_vegas_cong_avoid()
|
H A D | tcp_cubic.c | 34 #define BICTCP_BETA_SCALE 1024 /* Scale factor beta calculation 35 * max_cwnd = snd_cwnd * beta 50 static int beta __read_mostly = 717; /* = 717/1024 (BICTCP_BETA_SCALE) */ 67 module_param(beta, int, 0644); 68 MODULE_PARM_DESC(beta, "beta for multiplicative increase"); 350 ca->last_max_cwnd = (tcp_snd_cwnd(tp) * (BICTCP_BETA_SCALE + beta)) in cubictcp_recalc_ssthresh() 355 return max((tcp_snd_cwnd(tp) * beta) / BICTCP_BETA_SCALE, 2U); in cubictcp_recalc_ssthresh() 516 beta_scale = 8*(BICTCP_BETA_SCALE+beta) / 3 in cubictcp_register() 517 / (BICTCP_BETA_SCALE - beta); in cubictcp_register() [all...] |
H A D | tcp_veno.c | 24 static const int beta = 3 << V_PARAM_SHIFT; variable 163 if (veno->diff < beta) { in tcp_veno_cong_avoid() 200 if (veno->diff < beta) in tcp_veno_ssthresh()
|
/kernel/linux/linux-5.10/kernel/bpf/ |
H A D | tnum.c | 76 u64 dv, alpha, beta, chi, mu; in tnum_sub() local 80 beta = dv - b.mask; in tnum_sub() 81 chi = alpha ^ beta; in tnum_sub() 88 u64 alpha, beta, v; in tnum_and() local 91 beta = b.value | b.mask; in tnum_and() 93 return TNUM(v, alpha & beta & ~v); in tnum_and()
|
/kernel/linux/linux-6.6/kernel/bpf/ |
H A D | tnum.c | 76 u64 dv, alpha, beta, chi, mu; in tnum_sub() local 80 beta = dv - b.mask; in tnum_sub() 81 chi = alpha ^ beta; in tnum_sub() 88 u64 alpha, beta, v; in tnum_and() local 91 beta = b.value | b.mask; in tnum_and() 93 return TNUM(v, alpha & beta & ~v); in tnum_and()
|
/kernel/linux/linux-5.10/net/sched/ |
H A D | sch_pie.c | 181 q->params.beta = nla_get_u32(tb[TCA_PIE_BETA]); in pie_change() 307 u64 alpha, beta; in pie_calculate_probability() local 330 /* In the algorithm, alpha and beta are between 0 and 2 with typical in pie_calculate_probability() 332 * passed from user space to represent this. Also, alpha and beta have in pie_calculate_probability() 334 * probability. alpha/beta are updated locally below by scaling down in pie_calculate_probability() 338 beta = ((u64)params->beta * (MAX_PROB / PSCHED_TICKS_PER_SEC)) >> 4; in pie_calculate_probability() 340 /* We scale alpha and beta differently depending on how heavy the in pie_calculate_probability() 345 beta >>= 1; in pie_calculate_probability() 351 beta >> in pie_calculate_probability() [all...] |
/kernel/linux/linux-6.6/net/sched/ |
H A D | sch_pie.c | 178 q->params.beta = nla_get_u32(tb[TCA_PIE_BETA]); in pie_change() 304 u64 alpha, beta; in pie_calculate_probability() local 327 /* In the algorithm, alpha and beta are between 0 and 2 with typical in pie_calculate_probability() 329 * passed from user space to represent this. Also, alpha and beta have in pie_calculate_probability() 331 * probability. alpha/beta are updated locally below by scaling down in pie_calculate_probability() 335 beta = ((u64)params->beta * (MAX_PROB / PSCHED_TICKS_PER_SEC)) >> 4; in pie_calculate_probability() 337 /* We scale alpha and beta differently depending on how heavy the in pie_calculate_probability() 342 beta >>= 1; in pie_calculate_probability() 348 beta >> in pie_calculate_probability() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | bpf_cubic.c | 26 #define BICTCP_BETA_SCALE 1024 /* Scale factor beta calculation 27 * max_cwnd = snd_cwnd * beta 42 static const int beta = 717; /* = 717/1024 (BICTCP_BETA_SCALE) */ variable 53 static const __u32 beta_scale = 8*(BICTCP_BETA_SCALE+beta) / 3 54 / (BICTCP_BETA_SCALE - beta); 415 ca->last_max_cwnd = (tp->snd_cwnd * (BICTCP_BETA_SCALE + beta)) in BPF_STRUCT_OPS() 420 return max((tp->snd_cwnd * beta) / BICTCP_BETA_SCALE, 2U); in BPF_STRUCT_OPS()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | bpf_cubic.c | 26 #define BICTCP_BETA_SCALE 1024 /* Scale factor beta calculation 27 * max_cwnd = snd_cwnd * beta 42 static const int beta = 717; /* = 717/1024 (BICTCP_BETA_SCALE) */ variable 53 static const __u32 beta_scale = 8*(BICTCP_BETA_SCALE+beta) / 3 54 / (BICTCP_BETA_SCALE - beta); 409 ca->last_max_cwnd = (tp->snd_cwnd * (BICTCP_BETA_SCALE + beta)) in BPF_STRUCT_OPS() 414 return max((tp->snd_cwnd * beta) / BICTCP_BETA_SCALE, 2U); in BPF_STRUCT_OPS()
|
/kernel/linux/linux-5.10/include/net/ |
H A D | pie.h | 23 * @beta: parameter to control drop probability 33 u32 beta; member 95 params->beta = 20; in pie_params_init()
|
/kernel/linux/linux-6.6/include/net/ |
H A D | pie.h | 23 * @beta: parameter to control drop probability 33 u32 beta; member 95 params->beta = 20; in pie_params_init()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/ |
H A D | ar9003_paprd.c | 432 int Q_scale_B, Q_beta, Q_alpha, alpha, beta, order_1, order_2; in create_pa_curve() local 637 beta = (beta_raw << 10) / scale_B; in create_pa_curve() 647 y5 = ((beta * tmp) >> 6) >> order1_5x; in create_pa_curve() 690 beta = (beta_raw << 10) / scale_B; in create_pa_curve() 706 if (beta > 0) in create_pa_curve() 707 y5 = (((beta * tmp - 64) >> 6) - in create_pa_curve() 710 y5 = ((((beta * tmp - 64) >> 6) + in create_pa_curve() 719 if (beta > 0) in create_pa_curve()
|
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath9k/ |
H A D | ar9003_paprd.c | 432 int Q_scale_B, Q_beta, Q_alpha, alpha, beta, order_1, order_2; in create_pa_curve() local 637 beta = (beta_raw << 10) / scale_B; in create_pa_curve() 647 y5 = ((beta * tmp) >> 6) >> order1_5x; in create_pa_curve() 690 beta = (beta_raw << 10) / scale_B; in create_pa_curve() 706 if (beta > 0) in create_pa_curve() 707 y5 = (((beta * tmp - 64) >> 6) - in create_pa_curve() 710 y5 = ((((beta * tmp - 64) >> 6) + in create_pa_curve() 719 if (beta > 0) in create_pa_curve()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
H A D | ctxgf117.c | 249 const u32 beta = grctx->attrib_nr; in gf117_grctx_generate_attrib() local 261 mmio_wr32(info, 0x405830, (beta << 16) | alpha); in gf117_grctx_generate_attrib() 267 const u32 b = beta * gr->ppc_tpc_nr[gpc][ppc]; in gf117_grctx_generate_attrib()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
H A D | ctxgf117.c | 249 const u32 beta = grctx->attrib_nr; in gf117_grctx_generate_attrib() local 256 gf100_grctx_patch_wr32(chan, 0x405830, (beta << 16) | alpha); in gf117_grctx_generate_attrib() 262 const u32 b = beta * gr->ppc_tpc_nr[gpc][ppc]; in gf117_grctx_generate_attrib()
|