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>
This commit is contained in:
Hangbin Liu 2019-10-23 23:58:07 -04:00 committed by Dmitry Vyukov
parent 40b82bef55
commit cf14803361
7 changed files with 106 additions and 10 deletions

View File

@ -70,7 +70,7 @@
#if GOARCH_386
#define GOARCH "386"
#define SYZ_REVISION "e813d4faeb83d143f6d3662db646d358210c28bb"
#define SYZ_REVISION "8d137a84791c4ef4be5ac9e511fcb176d8049961"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@ -80,7 +80,7 @@
#if GOARCH_amd64
#define GOARCH "amd64"
#define SYZ_REVISION "ade0c5ba483c7265eaa66afe85ec770a38a8bc9c"
#define SYZ_REVISION "8e4605c1f25aa73800589afa1e231dca67b1a930"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@ -90,7 +90,7 @@
#if GOARCH_arm
#define GOARCH "arm"
#define SYZ_REVISION "93e5e6ada3c60270ebef335876251b764dd4da4c"
#define SYZ_REVISION "65cf10a48ff9f8285172939ec0f3d2d68eb70fa9"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@ -100,7 +100,7 @@
#if GOARCH_arm64
#define GOARCH "arm64"
#define SYZ_REVISION "cc4ade5187a15bdb886152e515c761361a7578fb"
#define SYZ_REVISION "917350390d9d7dfd40c6080224e81d1c7dd13733"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@ -110,7 +110,7 @@
#if GOARCH_ppc64le
#define GOARCH "ppc64le"
#define SYZ_REVISION "8b13accd297e812e5774805cc2fd63377e25e494"
#define SYZ_REVISION "e740a6050bd8868a857fe07181a69683c9cd1bd2"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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 [