net/sched: Add module aliases for cls_,sch_,act_ modules
authorMichal Koutný <mkoutny@suse.com>
Thu, 1 Feb 2024 13:09:41 +0000 (14:09 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 2 Feb 2024 18:57:55 +0000 (10:57 -0800)
No functional change intended, aliases will be used in followup commits.
Note for backporters: you may need to add aliases also for modules that
are already removed in mainline kernel but still in your version.

Patches were generated with the help of Coccinelle scripts like:

cat >scripts/coccinelle/misc/tcf_alias.cocci <<EOD
virtual patch
virtual report

@ haskernel @
@@

@ tcf_has_kind depends on report && haskernel @
identifier ops;
constant K;
@@

  static struct tcf_proto_ops ops = {
    .kind = K,
    ...
  };
+char module_alias = K;
EOD

/usr/bin/spatch -D report --cocci-file scripts/coccinelle/misc/tcf_alias.cocci \
        --dir . \
        -I ./arch/x86/include -I ./arch/x86/include/generated -I ./include \
        -I ./arch/x86/include/uapi -I ./arch/x86/include/generated/uapi \
        -I ./include/uapi -I ./include/generated/uapi \
        --include ./include/linux/compiler-version.h --include ./include/linux/kconfig.h \
        --jobs 8 --chunksize 1 2>/dev/null | \
        sed 's/char module_alias = "\([^"]*\)";/MODULE_ALIAS_NET_CLS("\1");/'

And analogously for:

  static struct tc_action_ops ops = {
    .kind = K,

  static struct Qdisc_ops ops = {
    .id = K,

(Someone familiar would be able to fit those into one .cocci file
without sed post processing.)

Signed-off-by: Michal Koutný <mkoutny@suse.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20240201130943.19536-3-mkoutny@suse.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
55 files changed:
net/sched/act_bpf.c
net/sched/act_connmark.c
net/sched/act_csum.c
net/sched/act_ct.c
net/sched/act_ctinfo.c
net/sched/act_gact.c
net/sched/act_gate.c
net/sched/act_ife.c
net/sched/act_mirred.c
net/sched/act_mpls.c
net/sched/act_nat.c
net/sched/act_pedit.c
net/sched/act_police.c
net/sched/act_sample.c
net/sched/act_simple.c
net/sched/act_skbedit.c
net/sched/act_skbmod.c
net/sched/act_tunnel_key.c
net/sched/act_vlan.c
net/sched/cls_basic.c
net/sched/cls_bpf.c
net/sched/cls_cgroup.c
net/sched/cls_flow.c
net/sched/cls_flower.c
net/sched/cls_fw.c
net/sched/cls_matchall.c
net/sched/cls_route.c
net/sched/cls_u32.c
net/sched/sch_cake.c
net/sched/sch_cbs.c
net/sched/sch_choke.c
net/sched/sch_codel.c
net/sched/sch_drr.c
net/sched/sch_etf.c
net/sched/sch_ets.c
net/sched/sch_fq.c
net/sched/sch_fq_codel.c
net/sched/sch_gred.c
net/sched/sch_hfsc.c
net/sched/sch_hhf.c
net/sched/sch_htb.c
net/sched/sch_ingress.c
net/sched/sch_mqprio.c
net/sched/sch_multiq.c
net/sched/sch_netem.c
net/sched/sch_pie.c
net/sched/sch_plug.c
net/sched/sch_prio.c
net/sched/sch_qfq.c
net/sched/sch_red.c
net/sched/sch_sfb.c
net/sched/sch_sfq.c
net/sched/sch_skbprio.c
net/sched/sch_taprio.c
net/sched/sch_tbf.c

index 6cfee6658103df8996197699c984af27f5eb77cb..0e3cf11ae5fc042f1e6f960fb5159153cc67fb27 100644 (file)
@@ -401,6 +401,7 @@ static struct tc_action_ops act_bpf_ops __read_mostly = {
        .init           =       tcf_bpf_init,
        .size           =       sizeof(struct tcf_bpf),
 };
+MODULE_ALIAS_NET_ACT("bpf");
 
 static __net_init int bpf_init_net(struct net *net)
 {
index f8762756657d3cdf3644e89344eadf046cc68ed1..0fce631e7c91113e5559d12ddc4d0ebeef1237e4 100644 (file)
@@ -242,6 +242,7 @@ static struct tc_action_ops act_connmark_ops = {
        .cleanup        =       tcf_connmark_cleanup,
        .size           =       sizeof(struct tcf_connmark_info),
 };
+MODULE_ALIAS_NET_ACT("connmark");
 
 static __net_init int connmark_init_net(struct net *net)
 {
index 7f8b1f2f2ed927ad27e47c757c202549227f764a..5cc8e407e7911c6c9f252d58b458728174913317 100644 (file)
@@ -709,6 +709,7 @@ static struct tc_action_ops act_csum_ops = {
        .offload_act_setup = tcf_csum_offload_act_setup,
        .size           = sizeof(struct tcf_csum),
 };
+MODULE_ALIAS_NET_ACT("csum");
 
 static __net_init int csum_init_net(struct net *net)
 {
index 6124d8b128d16c5fa7546bf4a15dd17bfb880bba..baac083fd8f1096eb717a5ae6cd744ae15d6d17d 100644 (file)
@@ -1600,6 +1600,7 @@ static struct tc_action_ops act_ct_ops = {
        .offload_act_setup =    tcf_ct_offload_act_setup,
        .size           =       sizeof(struct tcf_ct),
 };
+MODULE_ALIAS_NET_ACT("ct");
 
 static __net_init int ct_init_net(struct net *net)
 {
index e620f9a84afe503c74d4f34b0bf5bc021b4ce3e8..5dd41a012110e04d4e7b199367a84fa1905156b3 100644 (file)
@@ -363,6 +363,7 @@ static struct tc_action_ops act_ctinfo_ops = {
        .cleanup= tcf_ctinfo_cleanup,
        .size   = sizeof(struct tcf_ctinfo),
 };
+MODULE_ALIAS_NET_ACT("ctinfo");
 
 static __net_init int ctinfo_init_net(struct net *net)
 {
index 4af3b7ec249fa388d5c90773ea323d2fca538664..e949280eb800d9558cf101ced8f0d9742926c5f7 100644 (file)
@@ -296,6 +296,7 @@ static struct tc_action_ops act_gact_ops = {
        .offload_act_setup =    tcf_gact_offload_act_setup,
        .size           =       sizeof(struct tcf_gact),
 };
+MODULE_ALIAS_NET_ACT("gact");
 
 static __net_init int gact_init_net(struct net *net)
 {
index c681cd011afd0f837c604a5b02c5a8c18c96cdf4..1dd74125398a0f41751fab72397f006b2c63d1db 100644 (file)
@@ -645,6 +645,7 @@ static struct tc_action_ops act_gate_ops = {
        .offload_act_setup =    tcf_gate_offload_act_setup,
        .size           =       sizeof(struct tcf_gate),
 };
+MODULE_ALIAS_NET_ACT("gate");
 
 static __net_init int gate_init_net(struct net *net)
 {
index 0e867d13beb5d3a4732ee45dbf2c2c02ae129898..107c6d83dc5c4b586b534bacd7b185bcf891812a 100644 (file)
@@ -889,6 +889,7 @@ static struct tc_action_ops act_ife_ops = {
        .init = tcf_ife_init,
        .size = sizeof(struct tcf_ife_info),
 };
+MODULE_ALIAS_NET_ACT("ife");
 
 static __net_init int ife_init_net(struct net *net)
 {
index 12386f590b0f61f45e4ff40c9ec3605326671a2d..93a96e9d8d900c238c9a84d75201b6edf01ba198 100644 (file)
@@ -643,6 +643,7 @@ static struct tc_action_ops act_mirred_ops = {
        .size           =       sizeof(struct tcf_mirred),
        .get_dev        =       tcf_mirred_get_dev,
 };
+MODULE_ALIAS_NET_ACT("mirred");
 
 static __net_init int mirred_init_net(struct net *net)
 {
index 34b8edb6cc77a0fa9e8d9a1c23bf83575b316731..44a37a71ae9236cc1967239d6db8aba74d77355c 100644 (file)
@@ -452,6 +452,7 @@ static struct tc_action_ops act_mpls_ops = {
        .offload_act_setup =    tcf_mpls_offload_act_setup,
        .size           =       sizeof(struct tcf_mpls),
 };
+MODULE_ALIAS_NET_ACT("mpls");
 
 static __net_init int mpls_init_net(struct net *net)
 {
index a180e724634edf4d45bbb9e8ee08bcef11ecfa15..d541f553805face5a0d444659c17e0b720aeb843 100644 (file)
@@ -324,6 +324,7 @@ static struct tc_action_ops act_nat_ops = {
        .cleanup        =       tcf_nat_cleanup,
        .size           =       sizeof(struct tcf_nat),
 };
+MODULE_ALIAS_NET_ACT("nat");
 
 static __net_init int nat_init_net(struct net *net)
 {
index 2ef22969f274d1fd1e2b293c3366626f778425e1..df5a02d5f919c3e8b26308f5128ee35f63e5401a 100644 (file)
@@ -620,6 +620,7 @@ static struct tc_action_ops act_pedit_ops = {
        .offload_act_setup =    tcf_pedit_offload_act_setup,
        .size           =       sizeof(struct tcf_pedit),
 };
+MODULE_ALIAS_NET_ACT("pedit");
 
 static __net_init int pedit_init_net(struct net *net)
 {
index e119b4a3db9ffb5b73bd2f5327b17cc15ee8a8b7..8555125ed34d83eaadd36391da869bd46f2372fe 100644 (file)
@@ -502,6 +502,7 @@ static struct tc_action_ops act_police_ops = {
        .offload_act_setup =    tcf_police_offload_act_setup,
        .size           =       sizeof(struct tcf_police),
 };
+MODULE_ALIAS_NET_ACT("police");
 
 static __net_init int police_init_net(struct net *net)
 {
index c5c61efe6db425fce7646986792ef2a92d9421bf..a69b53d54039eda131bea4d4022ce1b86506c275 100644 (file)
@@ -316,6 +316,7 @@ static struct tc_action_ops act_sample_ops = {
        .offload_act_setup    = tcf_sample_offload_act_setup,
        .size     = sizeof(struct tcf_sample),
 };
+MODULE_ALIAS_NET_ACT("sample");
 
 static __net_init int sample_init_net(struct net *net)
 {
index 0a3e92888295519b54735f6e050eeafa50890336..f3abe05459895661d9600f719379773a55a1c456 100644 (file)
@@ -209,6 +209,7 @@ static struct tc_action_ops act_simp_ops = {
        .init           =       tcf_simp_init,
        .size           =       sizeof(struct tcf_defact),
 };
+MODULE_ALIAS_NET_ACT("simple");
 
 static __net_init int simp_init_net(struct net *net)
 {
index 754f78b35bb81384f215c4b7ea837997cd42c746..1f1d9ce3e968a2342a524c068d15912623de058f 100644 (file)
@@ -426,6 +426,7 @@ static struct tc_action_ops act_skbedit_ops = {
        .offload_act_setup =    tcf_skbedit_offload_act_setup,
        .size           =       sizeof(struct tcf_skbedit),
 };
+MODULE_ALIAS_NET_ACT("skbedit");
 
 static __net_init int skbedit_init_net(struct net *net)
 {
index bcb673ab0008dae8a7c4016bd23d6d2665f326ad..39945b139c4817584fb9803b9e65c89fef68eca0 100644 (file)
@@ -287,6 +287,7 @@ static struct tc_action_ops act_skbmod_ops = {
        .cleanup        =       tcf_skbmod_cleanup,
        .size           =       sizeof(struct tcf_skbmod),
 };
+MODULE_ALIAS_NET_ACT("skbmod");
 
 static __net_init int skbmod_init_net(struct net *net)
 {
index 300b08aa82831dd622c1956eec3ef67f89d831e9..1536f8b16f1b250eb62ae5530f01cbc6f7ea632a 100644 (file)
@@ -842,6 +842,7 @@ static struct tc_action_ops act_tunnel_key_ops = {
        .offload_act_setup =    tcf_tunnel_key_offload_act_setup,
        .size           =       sizeof(struct tcf_tunnel_key),
 };
+MODULE_ALIAS_NET_ACT("tunnel_key");
 
 static __net_init int tunnel_key_init_net(struct net *net)
 {
index 836183011a7c9f91b8719bdbfcfcfb2f81946071..22f4b1e8ade9f5a5bb5ece4c2fc600f94d8053fd 100644 (file)
@@ -427,6 +427,7 @@ static struct tc_action_ops act_vlan_ops = {
        .offload_act_setup =    tcf_vlan_offload_act_setup,
        .size           =       sizeof(struct tcf_vlan),
 };
+MODULE_ALIAS_NET_ACT("vlan");
 
 static __net_init int vlan_init_net(struct net *net)
 {
index a1f56931330cabdc197b741ab4999e8ffff0fe0d..ecfaa4f9a04ea12ea1601d7f2f8e9de59d25f42a 100644 (file)
@@ -328,6 +328,7 @@ static struct tcf_proto_ops cls_basic_ops __read_mostly = {
        .bind_class     =       basic_bind_class,
        .owner          =       THIS_MODULE,
 };
+MODULE_ALIAS_NET_CLS("basic");
 
 static int __init init_basic(void)
 {
index 382c7a71f81f2d4ce63d3321e584e7ea3cd9218e..5e83e890f6a4b74a449a2f3eb06864efc24b38ba 100644 (file)
@@ -693,6 +693,7 @@ static struct tcf_proto_ops cls_bpf_ops __read_mostly = {
        .dump           =       cls_bpf_dump,
        .bind_class     =       cls_bpf_bind_class,
 };
+MODULE_ALIAS_NET_CLS("bpf");
 
 static int __init cls_bpf_init_mod(void)
 {
index 7ee8dbf49ed0d39208290e48f519e031ef8497db..424252982d6ae8526e7d82f4a843356324342eb0 100644 (file)
@@ -209,6 +209,7 @@ static struct tcf_proto_ops cls_cgroup_ops __read_mostly = {
        .dump           =       cls_cgroup_dump,
        .owner          =       THIS_MODULE,
 };
+MODULE_ALIAS_NET_CLS("cgroup");
 
 static int __init init_cgroup_cls(void)
 {
index 6ab317b48d6c397855fb8d9ebb6328b7f1933f78..5502998aace74157320efed71faf40afd196fac4 100644 (file)
@@ -702,6 +702,7 @@ static struct tcf_proto_ops cls_flow_ops __read_mostly = {
        .walk           = flow_walk,
        .owner          = THIS_MODULE,
 };
+MODULE_ALIAS_NET_CLS("flow");
 
 static int __init cls_flow_init(void)
 {
index efb9d2811b73d18862f824b0b7a8b4e6b905271d..bfedc3d4423d75fcfffd4fb66feae215b3b63294 100644 (file)
@@ -3656,6 +3656,7 @@ static struct tcf_proto_ops cls_fl_ops __read_mostly = {
        .owner          = THIS_MODULE,
        .flags          = TCF_PROTO_OPS_DOIT_UNLOCKED,
 };
+MODULE_ALIAS_NET_CLS("flower");
 
 static int __init cls_fl_init(void)
 {
index afc534ee0a18671f1cc49a08e3ad021aa024f88e..cdddc8695228484a2847695df0ef69bfce707b31 100644 (file)
@@ -433,6 +433,7 @@ static struct tcf_proto_ops cls_fw_ops __read_mostly = {
        .bind_class     =       fw_bind_class,
        .owner          =       THIS_MODULE,
 };
+MODULE_ALIAS_NET_CLS("fw");
 
 static int __init init_fw(void)
 {
index c4ed11df62548cc51ae641e4bc09898a349a6545..9f1e62ca508d048df7049ee3f4a1338359648f6d 100644 (file)
@@ -398,6 +398,7 @@ static struct tcf_proto_ops cls_mall_ops __read_mostly = {
        .bind_class     = mall_bind_class,
        .owner          = THIS_MODULE,
 };
+MODULE_ALIAS_NET_CLS("matchall");
 
 static int __init cls_mall_init(void)
 {
index 12a505db4183233b8ae30a5d03a0c4a5fd363676..b9c58c040c30579eb8ea0ab49f4394f456c5d3c6 100644 (file)
@@ -671,6 +671,7 @@ static struct tcf_proto_ops cls_route4_ops __read_mostly = {
        .bind_class     =       route4_bind_class,
        .owner          =       THIS_MODULE,
 };
+MODULE_ALIAS_NET_CLS("route");
 
 static int __init init_route4(void)
 {
index 289e1755c26beba1087d71ade0f048d4b170e3a0..9412d88a99bc1225bdc0a655f3dbd5c5f159615a 100644 (file)
@@ -1453,6 +1453,7 @@ static struct tcf_proto_ops cls_u32_ops __read_mostly = {
        .bind_class     =       u32_bind_class,
        .owner          =       THIS_MODULE,
 };
+MODULE_ALIAS_NET_CLS("u32");
 
 static int __init init_u32(void)
 {
index 9cff99558694dc47c4d5f3aeff0bb465461558a3..edee926ccde8b321c97321f6e0b61ee1df8347cc 100644 (file)
@@ -3103,6 +3103,7 @@ static struct Qdisc_ops cake_qdisc_ops __read_mostly = {
        .dump_stats     =       cake_dump_stats,
        .owner          =       THIS_MODULE,
 };
+MODULE_ALIAS_NET_SCH("cake");
 
 static int __init cake_module_init(void)
 {
index beece8e82c2333c8dc50c59b5e8b57829fafa63a..69001eff0315584df23a24f81ae3b4cf7bf5fd79 100644 (file)
@@ -546,6 +546,7 @@ static struct Qdisc_ops cbs_qdisc_ops __read_mostly = {
        .dump           =       cbs_dump,
        .owner          =       THIS_MODULE,
 };
+MODULE_ALIAS_NET_SCH("cbs");
 
 static struct notifier_block cbs_device_notifier = {
        .notifier_call = cbs_dev_notifier,
index ae1da08e268f1a5396f3cb204d768b5add6d8054..ea108030c6b410418f0b58ba7ea51e1b524d4df9 100644 (file)
@@ -498,6 +498,7 @@ static struct Qdisc_ops choke_qdisc_ops __read_mostly = {
        .dump_stats     =       choke_dump_stats,
        .owner          =       THIS_MODULE,
 };
+MODULE_ALIAS_NET_SCH("choke");
 
 static int __init choke_module_init(void)
 {
index d7a4874543de5d49796a353645e685d1e2e49e0a..61904d3a593b75202b39258b181ac59136e41c02 100644 (file)
@@ -287,6 +287,7 @@ static struct Qdisc_ops codel_qdisc_ops __read_mostly = {
        .dump_stats     =       codel_dump_stats,
        .owner          =       THIS_MODULE,
 };
+MODULE_ALIAS_NET_SCH("codel");
 
 static int __init codel_module_init(void)
 {
index 097740a9afeafc421d6c05028dbb56a9ba878bc6..c69b999fae171cd67369de1b820ca13796a9d748 100644 (file)
@@ -481,6 +481,7 @@ static struct Qdisc_ops drr_qdisc_ops __read_mostly = {
        .destroy        = drr_destroy_qdisc,
        .owner          = THIS_MODULE,
 };
+MODULE_ALIAS_NET_SCH("drr");
 
 static int __init drr_init(void)
 {
index 4808159a5466085eb4bdda228b49e085eb993d75..2e4bef713b6abc4aad836bc9248796c20a22e476 100644 (file)
@@ -500,6 +500,7 @@ static struct Qdisc_ops etf_qdisc_ops __read_mostly = {
        .dump           =       etf_dump,
        .owner          =       THIS_MODULE,
 };
+MODULE_ALIAS_NET_SCH("etf");
 
 static int __init etf_module_init(void)
 {
index f7c88495946b0bb6a0c51192673cfbe91898728f..835b4460b44854a803d3054e744702022b7551f4 100644 (file)
@@ -812,6 +812,7 @@ static struct Qdisc_ops ets_qdisc_ops __read_mostly = {
        .dump           = ets_qdisc_dump,
        .owner          = THIS_MODULE,
 };
+MODULE_ALIAS_NET_SCH("ets");
 
 static int __init ets_init(void)
 {
index 3a31c47fea9bd97d815f2624d926bf7be62387cd..cdf23ff16f40bf244bb822e76016fde44e0c439b 100644 (file)
@@ -1264,6 +1264,7 @@ static struct Qdisc_ops fq_qdisc_ops __read_mostly = {
        .dump_stats     =       fq_dump_stats,
        .owner          =       THIS_MODULE,
 };
+MODULE_ALIAS_NET_SCH("fq");
 
 static int __init fq_module_init(void)
 {
index 8c4fee0634366eaf8b20c6af42aaf552b9329540..79f9d6de6c852268fa293f8067d029d385b54976 100644 (file)
@@ -717,6 +717,7 @@ static struct Qdisc_ops fq_codel_qdisc_ops __read_mostly = {
        .dump_stats =   fq_codel_dump_stats,
        .owner          =       THIS_MODULE,
 };
+MODULE_ALIAS_NET_SCH("fq_codel");
 
 static int __init fq_codel_module_init(void)
 {
index 8c61eb3dc943195f7a3fb6265a9c5cf87aeddfcf..79ba9dc702541e95b9df2eee9ed6fe048b4330b2 100644 (file)
@@ -930,6 +930,7 @@ static struct Qdisc_ops gred_qdisc_ops __read_mostly = {
        .dump           =       gred_dump,
        .owner          =       THIS_MODULE,
 };
+MODULE_ALIAS_NET_SCH("gred");
 
 static int __init gred_module_init(void)
 {
index 16c45da4036a7e3e6e07d8ba7f4ad2bb53c8a072..4e626df742d7a937c219ae9755816f099b6f0680 100644 (file)
@@ -1679,6 +1679,7 @@ static struct Qdisc_ops hfsc_qdisc_ops __read_mostly = {
        .priv_size      = sizeof(struct hfsc_sched),
        .owner          = THIS_MODULE
 };
+MODULE_ALIAS_NET_SCH("hfsc");
 
 static int __init
 hfsc_init(void)
index d26cd436cbe31bd37b1b651e0760845ae7ea2616..3f906df1435b2edea4286ba56bab68066be238b1 100644 (file)
@@ -702,6 +702,7 @@ static struct Qdisc_ops hhf_qdisc_ops __read_mostly = {
        .dump_stats     =       hhf_dump_stats,
        .owner          =       THIS_MODULE,
 };
+MODULE_ALIAS_NET_SCH("hhf");
 
 static int __init hhf_module_init(void)
 {
index 7349233eaa9b652a96e04f45674a66f3f4bc0f47..93e6fb56f3b58f88dcf426d32676a084dc0f96ca 100644 (file)
@@ -2166,6 +2166,7 @@ static struct Qdisc_ops htb_qdisc_ops __read_mostly = {
        .dump           =       htb_dump,
        .owner          =       THIS_MODULE,
 };
+MODULE_ALIAS_NET_SCH("htb");
 
 static int __init htb_module_init(void)
 {
index 5fa9eaa79bfc9e5ac86287c96e8fdd1aa5fbf0c4..48a800131e99da5453acab76629e30f19401cedc 100644 (file)
@@ -168,6 +168,7 @@ static struct Qdisc_ops ingress_qdisc_ops __read_mostly = {
        .ingress_block_get      =       ingress_ingress_block_get,
        .owner                  =       THIS_MODULE,
 };
+MODULE_ALIAS_NET_SCH("ingress");
 
 struct clsact_sched_data {
        struct tcf_block *ingress_block;
@@ -344,6 +345,7 @@ static struct Qdisc_ops clsact_qdisc_ops __read_mostly = {
        .egress_block_get       =       clsact_egress_block_get,
        .owner                  =       THIS_MODULE,
 };
+MODULE_ALIAS_NET_SCH("clsact");
 
 static int __init ingress_module_init(void)
 {
index 43e53ee00a56a755f37aa20e4837542be5bcf8bf..225353fbb3f1510a1d74eb12859afb62f811d2f9 100644 (file)
@@ -774,6 +774,7 @@ static struct Qdisc_ops mqprio_qdisc_ops __read_mostly = {
        .dump           = mqprio_dump,
        .owner          = THIS_MODULE,
 };
+MODULE_ALIAS_NET_SCH("mqprio");
 
 static int __init mqprio_module_init(void)
 {
index d66d5f0ec0805331c4b814e88910965a98bf2d23..79e93a19d5fabeb5ee91e20388d67ef019064064 100644 (file)
@@ -395,6 +395,7 @@ static struct Qdisc_ops multiq_qdisc_ops __read_mostly = {
        .dump           =       multiq_dump,
        .owner          =       THIS_MODULE,
 };
+MODULE_ALIAS_NET_SCH("multiq");
 
 static int __init multiq_module_init(void)
 {
index fa678eb8852841776cf34c33088bdc3bf1a010ad..edc72962ae63a71bd0fb8bc625ed9509391cd6ac 100644 (file)
@@ -1293,6 +1293,7 @@ static struct Qdisc_ops netem_qdisc_ops __read_mostly = {
        .dump           =       netem_dump,
        .owner          =       THIS_MODULE,
 };
+MODULE_ALIAS_NET_SCH("netem");
 
 
 static int __init netem_module_init(void)
index 2da6250ec3463686a1d588da224314befcc1478b..1764059b063536f619fb4a32b53adfe8c639a8e5 100644 (file)
@@ -556,6 +556,7 @@ static struct Qdisc_ops pie_qdisc_ops __read_mostly = {
        .dump_stats     = pie_dump_stats,
        .owner          = THIS_MODULE,
 };
+MODULE_ALIAS_NET_SCH("pie");
 
 static int __init pie_module_init(void)
 {
index 992f0c8d79886cbf9b944d626fb5c30c28fecebf..cefb65201e178c37ad7c9af82987039d57c23eea 100644 (file)
@@ -213,6 +213,7 @@ static struct Qdisc_ops plug_qdisc_ops __read_mostly = {
        .reset       =       qdisc_reset_queue,
        .owner       =       THIS_MODULE,
 };
+MODULE_ALIAS_NET_SCH("plug");
 
 static int __init plug_module_init(void)
 {
index 8ecdd3ef6f8ea05eea06fba5c7a9233fb09f2cb9..cc30f7a32f1a786fa1c3937a1b9d5c96a52e56e7 100644 (file)
@@ -418,6 +418,7 @@ static struct Qdisc_ops prio_qdisc_ops __read_mostly = {
        .dump           =       prio_dump,
        .owner          =       THIS_MODULE,
 };
+MODULE_ALIAS_NET_SCH("prio");
 
 static int __init prio_module_init(void)
 {
index 48a604c320c76d043c2d98b29143e80dc2242fb8..d584c0c25899cc9837a5a7880ea13cf2787937af 100644 (file)
@@ -1521,6 +1521,7 @@ static struct Qdisc_ops qfq_qdisc_ops __read_mostly = {
        .destroy        = qfq_destroy_qdisc,
        .owner          = THIS_MODULE,
 };
+MODULE_ALIAS_NET_SCH("qfq");
 
 static int __init qfq_init(void)
 {
index 607b6c8b3a9bf234200be75c726d8899aa6530fa..b5f096588fae6ead0743bf1c811bfd3b7b7430b1 100644 (file)
@@ -548,6 +548,7 @@ static struct Qdisc_ops red_qdisc_ops __read_mostly = {
        .dump_stats     =       red_dump_stats,
        .owner          =       THIS_MODULE,
 };
+MODULE_ALIAS_NET_SCH("red");
 
 static int __init red_module_init(void)
 {
index 1871a1c0224d46f6b32a76f392b549a24ba9ee8e..b717e15a3a17bc2e166308a74dbfc4a75c0bb2a2 100644 (file)
@@ -709,6 +709,7 @@ static struct Qdisc_ops sfb_qdisc_ops __read_mostly = {
        .dump_stats     =       sfb_dump_stats,
        .owner          =       THIS_MODULE,
 };
+MODULE_ALIAS_NET_SCH("sfb");
 
 static int __init sfb_module_init(void)
 {
index eb77558fa367eba7d26dd913f76e59762440840c..e66f4afb920d28b2fcca1e15634b61ca41ee1bcc 100644 (file)
@@ -925,6 +925,7 @@ static struct Qdisc_ops sfq_qdisc_ops __read_mostly = {
        .dump           =       sfq_dump,
        .owner          =       THIS_MODULE,
 };
+MODULE_ALIAS_NET_SCH("sfq");
 
 static int __init sfq_module_init(void)
 {
index 28beb11762d8a37565136ad873fab526ff80580e..b4dd626c309c36725e6030a338d21d1fabcb6704 100644 (file)
@@ -292,6 +292,7 @@ static struct Qdisc_ops skbprio_qdisc_ops __read_mostly = {
        .destroy        =       skbprio_destroy,
        .owner          =       THIS_MODULE,
 };
+MODULE_ALIAS_NET_SCH("skbprio");
 
 static int __init skbprio_module_init(void)
 {
index 827cb683efbff9cd1161aa6dc6e494bdba515356..c5de70efdc866fb1b8ef50a3019962a8e11beeca 100644 (file)
@@ -2528,6 +2528,7 @@ static struct Qdisc_ops taprio_qdisc_ops __read_mostly = {
        .dump_stats     = taprio_dump_stats,
        .owner          = THIS_MODULE,
 };
+MODULE_ALIAS_NET_SCH("taprio");
 
 static struct notifier_block taprio_device_notifier = {
        .notifier_call = taprio_dev_notifier,
index dd6b1a723bf7275ffcb195d4265d243e3e6de214..f1d09183ae632d2e950608877fcbdb9e86d0ec8e 100644 (file)
@@ -608,6 +608,7 @@ static struct Qdisc_ops tbf_qdisc_ops __read_mostly = {
        .dump           =       tbf_dump,
        .owner          =       THIS_MODULE,
 };
+MODULE_ALIAS_NET_SCH("tbf");
 
 static int __init tbf_module_init(void)
 {