Commit 2eb9d75c authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller

[NET_SCHED]: mark classifier ops __read_mostly

Additionally remove unnecessary NULL initilizations of the next pointer.
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 62e3ba1b
......@@ -31,7 +31,7 @@
/* The list of all installed classifier types */
static struct tcf_proto_ops *tcf_proto_base;
static struct tcf_proto_ops *tcf_proto_base __read_mostly;
/* Protects list of registered TC modules. It is pure SMP lock. */
static DEFINE_RWLOCK(cls_mod_lock);
......
......@@ -271,7 +271,7 @@ static int basic_dump(struct tcf_proto *tp, unsigned long fh,
return -1;
}
static struct tcf_proto_ops cls_basic_ops = {
static struct tcf_proto_ops cls_basic_ops __read_mostly = {
.kind = "basic",
.classify = basic_classify,
.init = basic_init,
......
......@@ -370,8 +370,7 @@ static int fw_dump(struct tcf_proto *tp, unsigned long fh,
return -1;
}
static struct tcf_proto_ops cls_fw_ops = {
.next = NULL,
static struct tcf_proto_ops cls_fw_ops __read_mostly = {
.kind = "fw",
.classify = fw_classify,
.init = fw_init,
......
......@@ -590,8 +590,7 @@ static int route4_dump(struct tcf_proto *tp, unsigned long fh,
return -1;
}
static struct tcf_proto_ops cls_route4_ops = {
.next = NULL,
static struct tcf_proto_ops cls_route4_ops __read_mostly = {
.kind = "route",
.classify = route4_classify,
.init = route4_init,
......
......@@ -485,8 +485,7 @@ static int tcindex_dump(struct tcf_proto *tp, unsigned long fh,
return -1;
}
static struct tcf_proto_ops cls_tcindex_ops = {
.next = NULL,
static struct tcf_proto_ops cls_tcindex_ops __read_mostly = {
.kind = "tcindex",
.classify = tcindex_classify,
.init = tcindex_init,
......
......@@ -751,8 +751,7 @@ static int u32_dump(struct tcf_proto *tp, unsigned long fh,
return -1;
}
static struct tcf_proto_ops cls_u32_ops = {
.next = NULL,
static struct tcf_proto_ops cls_u32_ops __read_mostly = {
.kind = "u32",
.classify = u32_classify,
.init = u32_init,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment