/linux/tools/testing/selftests/net/ |
H A D | lib.sh | 28 local weight=0 31 weights[$i]=$((weight++))
|
/linux/net/ipv6/ |
H A D | route.c | 4718 static void rt6_upper_bound_set(struct fib6_info *rt, int *weight, int total) in rt6_upper_bound_set() argument 4723 *weight += rt->fib6_nh->fib_nh_weight; in rt6_upper_bound_set() 4724 upper_bound = DIV_ROUND_CLOSEST_ULL((u64) (*weight) << 31, in rt6_upper_bound_set() 4733 int weight = 0; in rt6_multipath_upper_bound_set() local 4735 rt6_upper_bound_set(rt, &weight, total); in rt6_multipath_upper_bound_set() 4738 rt6_upper_bound_set(iter, &weight, total); in rt6_multipath_upper_bound_set()
|
/linux/kernel/sched/ |
H A D | fair.c | 166 lw->weight += inc; in update_load_add() 172 lw->weight -= dec; in update_load_sub() 178 lw->weight = w; in update_load_set() 237 w = scale_load_down(lw->weight); in __update_inv_weight() 248 * delta_exec * weight / lw.weight 250 * (delta_exec * (weight * lw->inv_weight)) >> WMULT_SHIFT 252 * Either weight := NICE_0_LOAD and lw \e sched_prio_to_wmult[], in which case 256 * Or, weight =< lw.weight (becaus 259 __calc_delta(u64 delta_exec,unsigned long weight,struct load_weight * lw) __calc_delta() argument 623 unsigned long weight = scale_load_down(se->load.weight); avg_vruntime_add() local 633 unsigned long weight = scale_load_down(se->load.weight); avg_vruntime_sub() local 660 unsigned long weight = scale_load_down(curr->load.weight); avg_vruntime() local 733 unsigned long weight = scale_load_down(curr->load.weight); vruntime_eligible() local 1961 unsigned int weight; global() member 3679 reweight_eevdf(struct sched_entity * se,u64 avruntime,unsigned long weight) reweight_eevdf() argument 3785 reweight_entity(struct cfs_rq * cfs_rq,struct sched_entity * se,unsigned long weight) reweight_entity() argument 3842 unsigned long weight = scale_load(sched_prio_to_weight[prio]); reweight_task() local 7224 int weight; sched_balance_find_dst_cpu() local [all...] |
H A D | rt.c | 687 int i, weight; in do_balance_runtime() local 690 weight = cpumask_weight(rd->span); in do_balance_runtime() 716 diff = div_u64((u64)diff, weight); in do_balance_runtime()
|
H A D | core.c | 1333 * SCHED_IDLE tasks get minimal weight: in set_load_weight() 1336 load->weight = scale_load(WEIGHT_IDLEPRIO); in set_load_weight() 1343 * weight in set_load_weight() 1348 load->weight = scale_load(sched_prio_to_weight[prio]); in set_load_weight() 10005 * based on each entity's (task or task-group's) weight in sched_init() 10006 * (se->load.weight). in sched_init() 10008 * In other words, if root_task_group has 10 tasks of weight in sched_init() 10009 * 1024) and two child groups A0 and A1 (of weight 1024 each), in sched_init() 11300 u64 weight = scale_load_down(tg->shares); in cpu_weight_read_u64() local 11302 return DIV_ROUND_CLOSEST_ULL(weight * CGROUP_WEIGHT_DF in cpu_weight_read_u64() 11306 cpu_weight_write_u64(struct cgroup_subsys_state * css,struct cftype * cft,u64 weight) cpu_weight_write_u64() argument 11326 unsigned long weight = scale_load_down(css_tg(css)->shares); cpu_weight_nice_read_s64() local 11344 unsigned long weight; cpu_weight_nice_write_s64() local 11911 sched_mm_cid_remote_clear_weight(struct mm_struct * mm,int cpu,int weight) sched_mm_cid_remote_clear_weight() argument 11929 int weight, cpu; task_mm_cid_work() local [all...] |
/linux/drivers/net/ |
H A D | virtio_net.c | 54 * at once, the weight is chosen so that the EWMA will be insensitive to short- 675 if (napi->weight) in skb_xmit_done() 990 bool use_napi = sq->napi.weight; in check_sq_full_and_disable() 2202 if (!napi->weight) in virtnet_napi_tx_enable() 2209 napi->weight = 0; in virtnet_napi_tx_enable() 2218 if (napi->weight) in virtnet_napi_tx_disable() 2305 if (!sq->napi.weight || is_xdp_raw_buffer_queue(vi, index)) in virtnet_poll_cleantx() 2563 bool use_napi = sq->napi.weight; in start_xmit() 4441 static int virtnet_should_update_vq_weight(int dev_flags, int weight, in virtnet_should_update_vq_weight() argument 4444 if (weight in virtnet_should_update_vq_weight() [all...] |
/linux/Documentation/admin-guide/ |
H A D | cgroup-v2.rst | 641 weight against the sum. As only children which can make use of the 650 As long as the weight is in range, all configuration combinations are 654 "cpu.weight" proportionally distributes CPU cycles to active children 775 - If a controller implements weight based resource distribution, its 776 interface file should be named "weight" and have the range [1, 1050 controller implements weight and absolute bandwidth limit models for 1095 cpu.weight 1099 For non idle groups (cpu.idle = 0), the weight is in the 1103 then the weight will show as a 0. 1105 cpu.weight.nice [all …]
|
/linux/arch/powerpc/platforms/pseries/ |
H A D | lparcfg.c | 80 u8 weight; member 128 ppp_data->weight = (retbuf[3] >> 5 * 8) & 0xff; in h_get_ppp() 235 seq_printf(m, "capacity_weight=%d\n", ppp_data.weight); in parse_ppp_data() 591 static ssize_t update_ppp(u64 *entitlement, u8 *weight) in update_ppp() argument 604 new_weight = ppp_data.weight; in update_ppp() 606 } else if (weight) { in update_ppp() 607 new_weight = *weight; in update_ppp() 613 __func__, ppp_data.entitlement, ppp_data.weight); in update_ppp() 629 static ssize_t update_mpp(u64 *entitlement, u8 *weight) in update_mpp() argument 652 } else if (weight) { in update_mpp() [all …]
|
/linux/tools/testing/selftests/cgroup/ |
H A D | test_cpu.c | 260 if (cg_write_numeric(children[i].cgroup, "cpu.weight", in run_cpucg_weight_test() 344 * A/B cpu.weight = 50 345 * A/C cpu.weight = 100 346 * A/D cpu.weight = 150 353 * was given proportional runtime as informed by their cpu.weight. in test_cpucg_weight_overprovisioned() 384 * A/B cpu.weight = 50 385 * A/C cpu.weight = 100 386 * A/D cpu.weight = 150 393 * had roughly the same runtime despite having different cpu.weight. in test_cpucg_weight_underprovisioned() 439 if (cg_write(child, "cpu.weight", "100 in run_cpucg_nested_weight_test() 442 long weight; run_cpucg_nested_weight_test() local [all...] |
/linux/net/sched/ |
H A D | sch_hhf.c | 386 unsigned int weight; in hhf_enqueue() local 394 weight = 1; in hhf_enqueue() 397 weight = q->hhf_non_hh_weight; in hhf_enqueue() 400 bucket->deficit = weight * q->quantum; in hhf_enqueue() 435 int weight = (bucket - q->buckets == WDRR_BUCKET_FOR_HH) ? in hhf_dequeue() local 438 bucket->deficit += weight * q->quantum; in hhf_dequeue()
|
H A D | sch_ets.c | 115 unsigned int weight; in ets_offload_change() local 136 weight = w_psum - w_psum_prev; in ets_offload_change() 140 qopt.replace_params.weights[i] = weight; in ets_offload_change()
|
/linux/net/netfilter/ipvs/ |
H A D | ip_vs_lblcr.c | 173 if ((atomic_read(&least->weight) > 0) in ip_vs_dest_set_min() 189 if (((__s64)loh * atomic_read(&dest->weight) > in ip_vs_dest_set_min() 190 (__s64)doh * atomic_read(&least->weight)) in ip_vs_dest_set_min() 204 atomic_read(&least->weight), loh); in ip_vs_dest_set_min() 222 if (atomic_read(&most->weight) > 0) { in ip_vs_dest_set_max() 235 if (((__s64)moh * atomic_read(&dest->weight) < in ip_vs_dest_set_max() 236 (__s64)doh * atomic_read(&most->weight)) in ip_vs_dest_set_max() 237 && (atomic_read(&dest->weight) > 0)) { in ip_vs_dest_set_max() 249 atomic_read(&most->weight), moh); in ip_vs_dest_set_max() 583 if (atomic_read(&dest->weight) > 0) { in __ip_vs_lblcr_schedule() [all …]
|
H A D | ip_vs_ctl.c | 982 if (add || udest->weight != 0) in __ip_vs_update_dest() 983 atomic_set(&dest->last_weight, udest->weight); in __ip_vs_update_dest() 986 atomic_set(&dest->weight, udest->weight); in __ip_vs_update_dest() 1134 if (udest->weight < 0) { in ip_vs_add_dest() 1204 if (udest->weight < 0) { in ip_vs_edit_dest() 2454 atomic_read(&dest->weight), in ip_vs_info_seq_show() 2465 atomic_read(&dest->weight), in ip_vs_info_seq_show() 2682 udest->weight = udest_compat->weight; in ip_vs_copy_udest_compat() 2949 entry.weight = atomic_read(&dest->weight); in __ip_vs_get_dest_entries() 3545 atomic_read(&dest->weight)) || in ip_vs_genl_fill_dest() [all …]
|
H A D | ip_vs_lblc.c | 419 if (atomic_read(&dest->weight) > 0) { in __ip_vs_lblc_schedule() 436 if ((__s64)loh * atomic_read(&dest->weight) > in __ip_vs_lblc_schedule() 437 (__s64)doh * atomic_read(&least->weight)) { in __ip_vs_lblc_schedule() 449 atomic_read(&least->weight), loh); in __ip_vs_lblc_schedule() 462 if (atomic_read(&dest->activeconns) > atomic_read(&dest->weight)) { in is_overloaded() 467 < atomic_read(&d->weight)) { in is_overloaded() 506 atomic_read(&dest->weight) > 0 && !is_overloaded(dest, svc)) in ip_vs_lblc_schedule()
|
H A D | ip_vs_core.c | 2002 unlikely(!atomic_read(&cp->dest->weight))) { in ip_vs_in_hook()
|
/linux/net/core/ |
H A D | sysctl_net_core.c | 303 int ret, weight; in proc_do_dev_weight() local 308 weight = READ_ONCE(weight_p); in proc_do_dev_weight() 309 WRITE_ONCE(net_hotdata.dev_rx_weight, weight * dev_weight_rx_bias); in proc_do_dev_weight() 310 WRITE_ONCE(net_hotdata.dev_tx_weight, weight * dev_weight_tx_bias); in proc_do_dev_weight()
|
H A D | dev.c | 6061 napi->weight = READ_ONCE(net_hotdata.dev_rx_weight); in process_backlog() 6591 int (*poll)(struct napi_struct *, int), int weight) in netif_napi_add_weight() argument 6605 if (weight > NAPI_POLL_WEIGHT) in netif_napi_add_weight() 6607 weight); in netif_napi_add_weight() 6608 napi->weight = weight; in netif_napi_add_weight() 6709 int work, weight; in __napi_poll() local 6711 weight = n->weight; in __napi_poll() 6721 work = n->poll(n, weight); in __napi_poll() 6722 trace_napi_poll(n, work, weight); in __napi_poll() 6727 if (unlikely(work > weight)) in __napi_poll() [all …]
|
/linux/net/ |
H A D | Kconfig | 429 bool "Network light weight tunnels" 431 This feature provides an infrastructure to support light weight 433 weight tunnel endpoint. Tunnel encapsulation parameters are stored 434 with light weight tunnel state associated with fib routes.
|
/linux/lib/ |
H A D | Kconfig | 745 Run boot-time test of light-weight queuing.
|
/linux/init/ |
H A D | Kconfig | 993 enabling proportional weight division of disk bandwidth in CFQ, set
|
/linux/include/net/ |
H A D | nexthop.h | 108 u8 weight; member 195 u8 weight; member 356 int weight = nhg->nh_entries[i].weight; in nexthop_mpath_fill_node() local 358 if (fib_add_nexthop(skb, nhc, weight, rt_family, 0) < 0) in nexthop_mpath_fill_node()
|
/linux/include/linux/ |
H A D | stmmac.h | 127 u32 weight; member
|
H A D | netdevice.h | 356 int weight; member 2623 int (*poll)(struct napi_struct *, int), int weight); 2645 int weight) in netif_napi_add_tx_weight() argument 2648 netif_napi_add_weight(dev, napi, poll, weight); in netif_napi_add_tx_weight()
|
/linux/drivers/net/wireless/ath/wil6210/ |
H A D | wmi.h | 1801 u8 weight[3]; member
|
/linux/drivers/net/ipa/ |
H A D | ipa_interrupt.c | 199 unsigned long weight; in ipa_interrupt_suspend_control() local 209 weight = bitmap_weight(interrupt->suspend_enabled, ipa->endpoint_count); in ipa_interrupt_suspend_control() 210 if (weight == 1 && !enable) in ipa_interrupt_suspend_control() 225 if (!weight && enable) in ipa_interrupt_suspend_control()
|