-
Notifications
You must be signed in to change notification settings - Fork 532
Open
Description
is there any way to monitor the dev_weight, /proc/net/softnet_stat have no info about dev_weight.
like the kernel code, no way to monitor if dev_weight is to small?
void __qdisc_run(struct Qdisc q){
int quota = dev_tx_weight; // max send package num
int packets;
while (qdisc_restart(q, &packets)) {
/
* Ordered by possible occurrence: Postpone processing if
* 1. we've exceeded packet quota
* 2. another process needs the CPU; */
quota -= packets;
if (quota <= 0 || need_resched()) { //quota is <=0, next softirq and break
__netif_schedule(q);
break;
}
}
}
Metadata
Metadata
Assignees
Labels
No labels