History

net_sched: sch_fq: add TCA_FQ_WEIGHTS attribute

This attribute can be used to tune the per band weight and report them in "tc qdisc show" output: qdisc fq 802f: parent 1:9 limit 100000p flow_limit 500p buckets 1024 orphan_mask 1023 quantum 8364b initial_quantum 41820b low_rate_threshold 550Kbit refill_delay 40ms timer_slack 10us horizon 10s horizon_drop bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1 weights 589824 196608 65536 Sent 236460814 bytes 792991 pkt (dropped 0, overlimits 0 requeues 0) rate 25816bit 10pps backlog 0b 0p requeues 0 flows 4 (inactive 4 throttled 0) gc 0 throttled 19 latency 17.6us fastpath 773882

Eric Dumazet committed 3 years ago

Commit 49e72651 parent 29f834a2 files · +36 −0Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/pkt_sched.h+3−0
@@ -943,12 +943,15 @@ enum { · 942 unmodified lines
943 943
944 TCA_FQ_PRIOMAP, /* prio2band */944 TCA_FQ_PRIOMAP, /* prio2band */
945 945
946 TCA_FQ_WEIGHTS, /* Weights for each band */
947
946 __TCA_FQ_MAX948 __TCA_FQ_MAX
947};949};
948 950
949#define TCA_FQ_MAX (__TCA_FQ_MAX - 1)951#define TCA_FQ_MAX (__TCA_FQ_MAX - 1)
950 952
951#define FQ_BANDS 3953#define FQ_BANDS 3
954#define FQ_MIN_WEIGHT 16384
952 955
953struct tc_fq_qd_stats {956struct tc_fq_qd_stats {
954 __u64 gc_flows;957 __u64 gc_flows;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t