aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux
diff options
context:
space:
mode:
authorHangbin Liu <liuhangbin@gmail.com>2019-10-23 23:58:07 -0400
committerDmitry Vyukov <dvyukov@google.com>2019-10-24 09:30:50 +0200
commitcf14803361697f4ae440f9898a5c3766236941d6 (patch)
tree60d3727e1fe92f79e34b7977d851d394a0390cf6 /sys/linux
parent40b82bef55ced40729c897417ea766c028e7f56a (diff)
sys/linux/socket_netlink_route_sched: add some new classes
Update #533 In this patch I added new classes: cake, cbs, fq_codel, mq, mqprio, multiq, netem, prio, red, sfb, sfq, skbprio, taprio, tbf, ingress, clsact. These classes has Qdisc_class_ops in kernel, but no netlink parameters. So we can testing them by just calling them directly. Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Diffstat (limited to 'sys/linux')
-rw-r--r--sys/linux/gen/386.go18
-rw-r--r--sys/linux/gen/amd64.go18
-rw-r--r--sys/linux/gen/arm.go18
-rw-r--r--sys/linux/gen/arm64.go18
-rw-r--r--sys/linux/gen/ppc64le.go18
-rw-r--r--sys/linux/socket_netlink_route_sched.txt16
6 files changed, 101 insertions, 5 deletions
diff --git a/sys/linux/gen/386.go b/sys/linux/gen/386.go
index 83a36e282..faba505a5 100644
--- a/sys/linux/gen/386.go
+++ b/sys/linux/gen/386.go
@@ -23982,6 +23982,22 @@ var structDescs_386 = []*KeyedStruct{
&StructType{Key: StructKey{Name: "tca_kind_options_t[\"hfsc\", array[c_hfsc_options]]"}, FldName: "c_hfsc"},
&StructType{Key: StructKey{Name: "tca_kind_options_t[\"htb\", array[c_htb_options]]"}, FldName: "c_htb"},
&StructType{Key: StructKey{Name: "tca_kind_options_t[\"qfq\", array[c_qfq_options]]"}, FldName: "c_qfq"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"cake\"]]"}, FldName: "c_cake"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"cbs\"]]"}, FldName: "c_cbs"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"fq_codel\"]]"}, FldName: "c_fq_codel"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"mq\"]]"}, FldName: "c_mq"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"mqprio\"]]"}, FldName: "c_mqprio"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"multiq\"]]"}, FldName: "c_multiq"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"netem\"]]"}, FldName: "c_netem"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"prio\"]]"}, FldName: "c_prio"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"red\"]]"}, FldName: "c_red"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"sfb\"]]"}, FldName: "c_sfb"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"sfq\"]]"}, FldName: "c_sfq"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"skbprio\"]]"}, FldName: "c_skbprio"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"taprio\"]]"}, FldName: "c_taprio"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"tbf\"]]"}, FldName: "c_tbf"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"ingress\"]]"}, FldName: "c_ingress"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"clsact\"]]"}, FldName: "c_clsact"},
}}},
{Key: StructKey{Name: "tclass_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "tclass_policy", IsVarlen: true}, Fields: []Type{
&UnionType{Key: StructKey{Name: "tclass_kind_options"}, FldName: "tclass_kind_options"},
@@ -53939,4 +53955,4 @@ var consts_386 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_386 = "e813d4faeb83d143f6d3662db646d358210c28bb"
+const revision_386 = "8d137a84791c4ef4be5ac9e511fcb176d8049961"
diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go
index a8a7bf065..e5ff1bc8a 100644
--- a/sys/linux/gen/amd64.go
+++ b/sys/linux/gen/amd64.go
@@ -24305,6 +24305,22 @@ var structDescs_amd64 = []*KeyedStruct{
&StructType{Key: StructKey{Name: "tca_kind_options_t[\"hfsc\", array[c_hfsc_options]]"}, FldName: "c_hfsc"},
&StructType{Key: StructKey{Name: "tca_kind_options_t[\"htb\", array[c_htb_options]]"}, FldName: "c_htb"},
&StructType{Key: StructKey{Name: "tca_kind_options_t[\"qfq\", array[c_qfq_options]]"}, FldName: "c_qfq"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"cake\"]]"}, FldName: "c_cake"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"cbs\"]]"}, FldName: "c_cbs"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"fq_codel\"]]"}, FldName: "c_fq_codel"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"mq\"]]"}, FldName: "c_mq"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"mqprio\"]]"}, FldName: "c_mqprio"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"multiq\"]]"}, FldName: "c_multiq"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"netem\"]]"}, FldName: "c_netem"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"prio\"]]"}, FldName: "c_prio"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"red\"]]"}, FldName: "c_red"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"sfb\"]]"}, FldName: "c_sfb"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"sfq\"]]"}, FldName: "c_sfq"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"skbprio\"]]"}, FldName: "c_skbprio"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"taprio\"]]"}, FldName: "c_taprio"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"tbf\"]]"}, FldName: "c_tbf"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"ingress\"]]"}, FldName: "c_ingress"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"clsact\"]]"}, FldName: "c_clsact"},
}}},
{Key: StructKey{Name: "tclass_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "tclass_policy", IsVarlen: true}, Fields: []Type{
&UnionType{Key: StructKey{Name: "tclass_kind_options"}, FldName: "tclass_kind_options"},
@@ -54484,4 +54500,4 @@ var consts_amd64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_amd64 = "ade0c5ba483c7265eaa66afe85ec770a38a8bc9c"
+const revision_amd64 = "8e4605c1f25aa73800589afa1e231dca67b1a930"
diff --git a/sys/linux/gen/arm.go b/sys/linux/gen/arm.go
index 2fcee533b..0327cb472 100644
--- a/sys/linux/gen/arm.go
+++ b/sys/linux/gen/arm.go
@@ -23804,6 +23804,22 @@ var structDescs_arm = []*KeyedStruct{
&StructType{Key: StructKey{Name: "tca_kind_options_t[\"hfsc\", array[c_hfsc_options]]"}, FldName: "c_hfsc"},
&StructType{Key: StructKey{Name: "tca_kind_options_t[\"htb\", array[c_htb_options]]"}, FldName: "c_htb"},
&StructType{Key: StructKey{Name: "tca_kind_options_t[\"qfq\", array[c_qfq_options]]"}, FldName: "c_qfq"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"cake\"]]"}, FldName: "c_cake"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"cbs\"]]"}, FldName: "c_cbs"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"fq_codel\"]]"}, FldName: "c_fq_codel"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"mq\"]]"}, FldName: "c_mq"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"mqprio\"]]"}, FldName: "c_mqprio"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"multiq\"]]"}, FldName: "c_multiq"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"netem\"]]"}, FldName: "c_netem"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"prio\"]]"}, FldName: "c_prio"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"red\"]]"}, FldName: "c_red"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"sfb\"]]"}, FldName: "c_sfb"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"sfq\"]]"}, FldName: "c_sfq"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"skbprio\"]]"}, FldName: "c_skbprio"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"taprio\"]]"}, FldName: "c_taprio"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"tbf\"]]"}, FldName: "c_tbf"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"ingress\"]]"}, FldName: "c_ingress"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"clsact\"]]"}, FldName: "c_clsact"},
}}},
{Key: StructKey{Name: "tclass_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "tclass_policy", IsVarlen: true}, Fields: []Type{
&UnionType{Key: StructKey{Name: "tclass_kind_options"}, FldName: "tclass_kind_options"},
@@ -53516,4 +53532,4 @@ var consts_arm = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_arm = "93e5e6ada3c60270ebef335876251b764dd4da4c"
+const revision_arm = "65cf10a48ff9f8285172939ec0f3d2d68eb70fa9"
diff --git a/sys/linux/gen/arm64.go b/sys/linux/gen/arm64.go
index d411ab87e..b6a1ffe2e 100644
--- a/sys/linux/gen/arm64.go
+++ b/sys/linux/gen/arm64.go
@@ -24122,6 +24122,22 @@ var structDescs_arm64 = []*KeyedStruct{
&StructType{Key: StructKey{Name: "tca_kind_options_t[\"hfsc\", array[c_hfsc_options]]"}, FldName: "c_hfsc"},
&StructType{Key: StructKey{Name: "tca_kind_options_t[\"htb\", array[c_htb_options]]"}, FldName: "c_htb"},
&StructType{Key: StructKey{Name: "tca_kind_options_t[\"qfq\", array[c_qfq_options]]"}, FldName: "c_qfq"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"cake\"]]"}, FldName: "c_cake"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"cbs\"]]"}, FldName: "c_cbs"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"fq_codel\"]]"}, FldName: "c_fq_codel"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"mq\"]]"}, FldName: "c_mq"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"mqprio\"]]"}, FldName: "c_mqprio"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"multiq\"]]"}, FldName: "c_multiq"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"netem\"]]"}, FldName: "c_netem"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"prio\"]]"}, FldName: "c_prio"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"red\"]]"}, FldName: "c_red"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"sfb\"]]"}, FldName: "c_sfb"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"sfq\"]]"}, FldName: "c_sfq"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"skbprio\"]]"}, FldName: "c_skbprio"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"taprio\"]]"}, FldName: "c_taprio"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"tbf\"]]"}, FldName: "c_tbf"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"ingress\"]]"}, FldName: "c_ingress"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"clsact\"]]"}, FldName: "c_clsact"},
}}},
{Key: StructKey{Name: "tclass_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "tclass_policy", IsVarlen: true}, Fields: []Type{
&UnionType{Key: StructKey{Name: "tclass_kind_options"}, FldName: "tclass_kind_options"},
@@ -53836,4 +53852,4 @@ var consts_arm64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_arm64 = "cc4ade5187a15bdb886152e515c761361a7578fb"
+const revision_arm64 = "917350390d9d7dfd40c6080224e81d1c7dd13733"
diff --git a/sys/linux/gen/ppc64le.go b/sys/linux/gen/ppc64le.go
index c37a52968..9148150c2 100644
--- a/sys/linux/gen/ppc64le.go
+++ b/sys/linux/gen/ppc64le.go
@@ -24074,6 +24074,22 @@ var structDescs_ppc64le = []*KeyedStruct{
&StructType{Key: StructKey{Name: "tca_kind_options_t[\"hfsc\", array[c_hfsc_options]]"}, FldName: "c_hfsc"},
&StructType{Key: StructKey{Name: "tca_kind_options_t[\"htb\", array[c_htb_options]]"}, FldName: "c_htb"},
&StructType{Key: StructKey{Name: "tca_kind_options_t[\"qfq\", array[c_qfq_options]]"}, FldName: "c_qfq"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"cake\"]]"}, FldName: "c_cake"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"cbs\"]]"}, FldName: "c_cbs"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"fq_codel\"]]"}, FldName: "c_fq_codel"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"mq\"]]"}, FldName: "c_mq"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"mqprio\"]]"}, FldName: "c_mqprio"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"multiq\"]]"}, FldName: "c_multiq"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"netem\"]]"}, FldName: "c_netem"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"prio\"]]"}, FldName: "c_prio"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"red\"]]"}, FldName: "c_red"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"sfb\"]]"}, FldName: "c_sfb"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"sfq\"]]"}, FldName: "c_sfq"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"skbprio\"]]"}, FldName: "c_skbprio"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"taprio\"]]"}, FldName: "c_taprio"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"tbf\"]]"}, FldName: "c_tbf"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"ingress\"]]"}, FldName: "c_ingress"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_KIND, int16], string[\"clsact\"]]"}, FldName: "c_clsact"},
}}},
{Key: StructKey{Name: "tclass_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "tclass_policy", IsVarlen: true}, Fields: []Type{
&UnionType{Key: StructKey{Name: "tclass_kind_options"}, FldName: "tclass_kind_options"},
@@ -53801,4 +53817,4 @@ var consts_ppc64le = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_ppc64le = "8b13accd297e812e5774805cc2fd63377e25e494"
+const revision_ppc64le = "e740a6050bd8868a857fe07181a69683c9cd1bd2"
diff --git a/sys/linux/socket_netlink_route_sched.txt b/sys/linux/socket_netlink_route_sched.txt
index b40a741bf..4df59e21f 100644
--- a/sys/linux/socket_netlink_route_sched.txt
+++ b/sys/linux/socket_netlink_route_sched.txt
@@ -553,6 +553,22 @@ tclass_kind_options [
c_hfsc tca_kind_options_t["hfsc", array[c_hfsc_options]]
c_htb tca_kind_options_t["htb", array[c_htb_options]]
c_qfq tca_kind_options_t["qfq", array[c_qfq_options]]
+ c_cake nlattr[TCA_KIND, string["cake"]]
+ c_cbs nlattr[TCA_KIND, string["cbs"]]
+ c_fq_codel nlattr[TCA_KIND, string["fq_codel"]]
+ c_mq nlattr[TCA_KIND, string["mq"]]
+ c_mqprio nlattr[TCA_KIND, string["mqprio"]]
+ c_multiq nlattr[TCA_KIND, string["multiq"]]
+ c_netem nlattr[TCA_KIND, string["netem"]]
+ c_prio nlattr[TCA_KIND, string["prio"]]
+ c_red nlattr[TCA_KIND, string["red"]]
+ c_sfb nlattr[TCA_KIND, string["sfb"]]
+ c_sfq nlattr[TCA_KIND, string["sfq"]]
+ c_skbprio nlattr[TCA_KIND, string["skbprio"]]
+ c_taprio nlattr[TCA_KIND, string["taprio"]]
+ c_tbf nlattr[TCA_KIND, string["tbf"]]
+ c_ingress nlattr[TCA_KIND, string["ingress"]]
+ c_clsact nlattr[TCA_KIND, string["clsact"]]
] [varlen]
c_atm_options [