]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
net sched actions: change IFE modules alias names
authorRoman Mashak <mrv@mojatatu.com>
Wed, 11 Oct 2017 14:50:29 +0000 (10:50 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Oct 2017 05:13:20 +0000 (22:13 -0700)
Make style of module alias name consistent with other subsystems in kernel,
for example net devices.

Fixes: 084e2f6566d2 ("Support to encoding decoding skb mark on IFE action")
Fixes: 200e10f46936 ("Support to encoding decoding skb prio on IFE action")
Fixes: 408fbc22ef1e ("net sched ife action: Introduce skb tcindex metadata encap decap")
Signed-off-by: Roman Mashak <mrv@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tc_act/tc_ife.h
net/sched/act_ife.c
net/sched/act_meta_mark.c
net/sched/act_meta_skbprio.c
net/sched/act_meta_skbtcindex.c

index 30ba459ddd34c7e8664abeeafcf3926d39efc17d..104578f160623600aff3a34f193e04ed8f363d4e 100644 (file)
@@ -40,7 +40,7 @@ struct tcf_meta_ops {
        struct module   *owner;
 };
 
-#define MODULE_ALIAS_IFE_META(metan)   MODULE_ALIAS("ifemeta" __stringify_1(metan))
+#define MODULE_ALIAS_IFE_META(metan)   MODULE_ALIAS("ife-meta-" metan)
 
 int ife_get_meta_u32(struct sk_buff *skb, struct tcf_meta_info *mi);
 int ife_get_meta_u16(struct sk_buff *skb, struct tcf_meta_info *mi);
index 8ccd35825b6b97f48311c1060f88a41a34f18f9a..791aeee11c7e9c6a4def97d08dbfc62b933ea014 100644 (file)
@@ -263,7 +263,7 @@ static int load_metaops_and_vet(struct tcf_ife_info *ife, u32 metaid,
                if (exists)
                        spin_unlock_bh(&ife->tcf_lock);
                rtnl_unlock();
-               request_module("ifemeta%u", metaid);
+               request_module("ife-meta-%u", metaid);
                rtnl_lock();
                if (exists)
                        spin_lock_bh(&ife->tcf_lock);
index 82892170ce4fcc991214bde2347ef3265396fca9..1e3f10e5da996a868b8315c53cfac964842bbec3 100644 (file)
@@ -76,4 +76,4 @@ module_exit(ifemark_cleanup_module);
 MODULE_AUTHOR("Jamal Hadi Salim(2015)");
 MODULE_DESCRIPTION("Inter-FE skb mark metadata module");
 MODULE_LICENSE("GPL");
-MODULE_ALIAS_IFE_META(IFE_META_SKBMARK);
+MODULE_ALIAS_IFE_META("skbmark");
index 26bf4d86030b9f3d2e5cb5fd6e8cc8a9b6626b77..4033f9fc4d4a5085b27e9c4fd9d51fe83bfce16d 100644 (file)
@@ -73,4 +73,4 @@ module_exit(ifeprio_cleanup_module);
 MODULE_AUTHOR("Jamal Hadi Salim(2015)");
 MODULE_DESCRIPTION("Inter-FE skb prio metadata action");
 MODULE_LICENSE("GPL");
-MODULE_ALIAS_IFE_META(IFE_META_PRIO);
+MODULE_ALIAS_IFE_META("skbprio");
index 3b35774ce890c895208f7da4c30e90a3c3dde8b1..2ea1f26c9e966b26076f48757c5351287d9f0943 100644 (file)
@@ -76,4 +76,4 @@ module_exit(ifetc_index_cleanup_module);
 MODULE_AUTHOR("Jamal Hadi Salim(2016)");
 MODULE_DESCRIPTION("Inter-FE skb tc_index metadata module");
 MODULE_LICENSE("GPL");
-MODULE_ALIAS_IFE_META(IFE_META_SKBTCINDEX);
+MODULE_ALIAS_IFE_META("tcindex");