2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-16 01:04:08 +08:00

[NET_SCHED]: mark classifier ops __read_mostly

Additionally remove unnecessary NULL initilizations of the next pointer.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Patrick McHardy 2008-01-22 22:10:42 -08:00 committed by David S. Miller
parent 62e3ba1b55
commit 2eb9d75c72
6 changed files with 6 additions and 10 deletions

View File

@ -31,7 +31,7 @@
/* The list of all installed classifier types */ /* 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. */ /* Protects list of registered TC modules. It is pure SMP lock. */
static DEFINE_RWLOCK(cls_mod_lock); static DEFINE_RWLOCK(cls_mod_lock);

View File

@ -271,7 +271,7 @@ rtattr_failure:
return -1; return -1;
} }
static struct tcf_proto_ops cls_basic_ops = { static struct tcf_proto_ops cls_basic_ops __read_mostly = {
.kind = "basic", .kind = "basic",
.classify = basic_classify, .classify = basic_classify,
.init = basic_init, .init = basic_init,

View File

@ -370,8 +370,7 @@ rtattr_failure:
return -1; return -1;
} }
static struct tcf_proto_ops cls_fw_ops = { static struct tcf_proto_ops cls_fw_ops __read_mostly = {
.next = NULL,
.kind = "fw", .kind = "fw",
.classify = fw_classify, .classify = fw_classify,
.init = fw_init, .init = fw_init,

View File

@ -590,8 +590,7 @@ rtattr_failure:
return -1; return -1;
} }
static struct tcf_proto_ops cls_route4_ops = { static struct tcf_proto_ops cls_route4_ops __read_mostly = {
.next = NULL,
.kind = "route", .kind = "route",
.classify = route4_classify, .classify = route4_classify,
.init = route4_init, .init = route4_init,

View File

@ -485,8 +485,7 @@ rtattr_failure:
return -1; return -1;
} }
static struct tcf_proto_ops cls_tcindex_ops = { static struct tcf_proto_ops cls_tcindex_ops __read_mostly = {
.next = NULL,
.kind = "tcindex", .kind = "tcindex",
.classify = tcindex_classify, .classify = tcindex_classify,
.init = tcindex_init, .init = tcindex_init,

View File

@ -751,8 +751,7 @@ rtattr_failure:
return -1; return -1;
} }
static struct tcf_proto_ops cls_u32_ops = { static struct tcf_proto_ops cls_u32_ops __read_mostly = {
.next = NULL,
.kind = "u32", .kind = "u32",
.classify = u32_classify, .classify = u32_classify,
.init = u32_init, .init = u32_init,