[NET_SCHED]: mark classifier ops __read_mostly
authorPatrick McHardy <kaber@trash.net>
Wed, 23 Jan 2008 06:10:42 +0000 (22:10 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:11:08 +0000 (15:11 -0800)
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>
net/sched/cls_api.c
net/sched/cls_basic.c
net/sched/cls_fw.c
net/sched/cls_route.c
net/sched/cls_tcindex.c
net/sched/cls_u32.c

index e53773612bc76c39b13949cf76d09266089708d8..9eeb3c6c82f4e4aa557689aa23734f0467edaa0e 100644 (file)
@@ -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);
index 8dbcf2771a4611e921fdb37d75f05a2ccea63f4b..b31f9f971987dc4a63914fe02103c1349c7719f7 100644 (file)
@@ -271,7 +271,7 @@ rtattr_failure:
        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,
index 8adbd6a37d1475cbee48622b0cbbc230725be13e..b45038770e79cd1672a784d4366ea2b1ab9e7277 100644 (file)
@@ -370,8 +370,7 @@ rtattr_failure:
        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,
index 0a8409c1d28ae4d3c4cdeeb346625a8ef01beee1..e70edd0f7bc80ad1aa7c424a28cec9a4e8444ddf 100644 (file)
@@ -590,8 +590,7 @@ rtattr_failure:
        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,
index 471909e54807e1508db78e5e0115fedff3cb934d..e36977b17fa6842dfd30b200945d601e40ded89c 100644 (file)
@@ -485,8 +485,7 @@ rtattr_failure:
        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,
index c3900820916425f23fbbcc93db63151a9b81305b..7bf3cd4e73186f0b1c1b5757d9d3743f325490d7 100644 (file)
@@ -751,8 +751,7 @@ rtattr_failure:
        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,